@charset "UTF-8";
#returns-view{min-width:0}.ret-heading{margin-bottom:25px}.ret-heading>.ret-add-batch{background:var(--accent);border-color:var(--accent)}.ret-hero{display:grid;grid-template-columns:1.1fr 1fr;background:#1d4438;border:1px solid #355d49;border-radius:13px;padding:29px 31px;gap:35px;color:#d9e6d3;overflow:hidden;position:relative;margin-bottom:19px;box-shadow:0 5px 18px #173c3210}.ret-hero::after{content:"";position:absolute;width:320px;height:320px;right:-220px;top:-210px;border:50px solid #6f946521;border-radius:50%;pointer-events:none}.ret-hero-kicker{font-size:11px;display:flex;gap:8px;align-items:center;color:#b6ceab}.ret-hero-kicker .icon{width:15px;height:15px}.ret-hero-number{display:flex;align-items:baseline;gap:13px;margin:12px 0 8px}.ret-hero-number strong{font-size:49px;font-weight:550;letter-spacing:-1.6px;line-height:1.15;color:#f0f3df;font-variant-numeric:tabular-nums}.ret-hero-number>span{font-size:12px;color:#a8c49b}.ret-hero-main>p{font-size:10px;color:#9eb68e;line-height:1.9;margin:0}.ret-hero-foot{display:flex;gap:13px;align-items:center;font-size:9px;color:#90ad7e;margin-top:20px;flex-wrap:wrap}.ret-hero-foot>span:first-child{display:flex;gap:6px;align-items:center}.ret-hero-foot i{width:4px;height:4px;background:#b9d397;display:inline-block;border-radius:50%}.ret-hero-foot>span:last-child{border:1px solid #547247;border-radius:4px;padding:3px 7px;color:#c2d4b1}.ret-spotlight{border-left:1px solid #52724880;padding-left:32px;display:flex;flex-direction:column;min-width:0}.ret-spotlight-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#a6c092;font-size:10px}.ret-today{font-size:8px;border:1px solid #527147;border-radius:3px;padding:2px 5px;white-space:nowrap;color:#a0b68b}.ret-spotlight>strong{font-size:13px;color:#e1eace;font-weight:500;margin:13px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ret-nearest-countdown{font-size:27px;color:#e9c58d;font-weight:500;letter-spacing:.8px;line-height:1.5;font-variant-numeric:tabular-nums}.ret-nearest-countdown.ret-imminent{color:#f2b694}.ret-nearest-info{display:flex;justify-content:space-between;gap:12px;color:#a0b58b;font-size:9px;line-height:1.7;flex-wrap:wrap;margin-top:3px}.ret-spotlight>button{align-self:flex-start;padding:0;background:none;color:#d9c395;border:0;display:flex;gap:7px;align-items:center;font-size:10px;margin-top:15px}.ret-spotlight>button .icon{width:14px;height:14px}.ret-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.ret-metrics>article{display:flex;align-items:flex-start;gap:12px;background:white;border:1px solid #e4e9df;border-radius:9px;padding:18px 17px;min-width:0}.ret-metrics>article>div{display:flex;flex-direction:column;min-width:0}.ret-metrics>article>div>span{font-size:10px;color:#7d8e6f}.ret-metrics strong{font-size:26px;font-weight:550;color:#3b5a34;line-height:1.4;margin:3px 0 2px;font-variant-numeric:tabular-nums}.ret-metrics small{font-size:8px;color:#9ca991;line-height:1.7}.ret-mini-icon{width:31px;height:31px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.ret-mini-icon .icon{width:16px;height:16px}.ret-orange{color:#be9460;background:#fbf0df}.ret-rose{color:#b17e6c;background:#faf0eb}.ret-green{color:#7f9f6a;background:#f0f6e9}.ret-sage{color:#92a777;background:#f1f4e9}.ret-rules{border:1px solid #e3eadb;background:#fff;border-radius:9px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 19px;margin-bottom:20px;flex-wrap:wrap}.ret-rules-label{display:flex;align-items:center;gap:10px}.ret-rules-label>.icon{color:#96a87e;width:20px;height:20px}.ret-rules-label strong{font-size:12px;font-weight:550;color:#5c7b49}.ret-rules-label small{display:block;font-size:9px;color:#9aaa8a;margin-top:3px}.ret-rules>form{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.ret-rules>form>.ret-setting-field{display:flex;align-items:center;gap:8px;color:#81956e;font-size:10px}.ret-preset-group{display:flex;gap:4px}.ret-preset-group button{background:#f8faf4;border:1px solid #e5ecd9;color:#99aa86;border-radius:4px;padding:5px 7px;font-size:9px;white-space:nowrap}.ret-preset-group button.active{color:#5f8544;border-color:#bacaab;background:#eff5e5}.ret-inline-number{display:flex;align-items:center;width:68px;border:1px solid #e0e8d6;border-radius:5px;background:#fff;padding-right:7px;gap:0}.ret-inline-number input{border:0;outline:0!important;box-shadow:none!important;background:transparent;width:47px;min-width:0;padding:5px 0 5px 7px;font-size:11px;color:#69854f;-moz-appearance:textfield}.ret-inline-number input::-webkit-inner-spin-button{display:none}.ret-inline-number>span{font-size:9px;color:#a2b28f}.ret-inline-number:focus-within{border-color:#8ba777}.ret-narrow{width:54px}.ret-narrow input{width:33px}.ret-rules>.form-error{flex-basis:100%;margin:0}.ret-untracked-notice{background:#f5f8ed;border:1px solid #e1e9d4;border-radius:8px;display:flex;gap:10px;padding:13px 17px;align-items:center;margin-bottom:21px}.ret-untracked-notice>.icon{width:18px;height:18px;color:#91a874}.ret-untracked-notice p{display:flex;flex-direction:column;gap:3px;margin:0;flex:1}.ret-untracked-notice strong{font-size:10px;font-weight:500;color:#7e975f}.ret-untracked-notice p>span{font-size:9px;color:#9aaa86;line-height:1.8}.ret-untracked-notice>button{display:flex;gap:6px;align-items:center;white-space:nowrap;background:none;border:0;padding:5px 0;color:#87a267;font-size:10px}.ret-untracked-notice>button .icon{width:14px;height:14px}.ret-list-panel .panel-heading p{font-size:10px}.ret-list-panel .panel-heading h2{font-size:15px}.ret-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:space-between;padding:0 23px 19px}.ret-tabs{background:#f5f7f1;border:1px solid #eef1e6;border-radius:6px;padding:3px;display:flex;gap:2px;white-space:nowrap}.ret-tabs>button{border:0;background:none;color:#93a281;padding:7px 10px;font-size:10px;border-radius:4px;display:flex;align-items:center;gap:5px}.ret-tabs>button.active{color:#5e7c49;background:white;box-shadow:0 1px 3px #344e2b14}.ret-tabs>button[data-ret-filter="expiring"]{color:#b39363}.ret-tabs>button.active[data-ret-filter="expiring"]{background:#fffaf0}.ret-tabs button>span{font-size:8px;padding:0 4px;border-radius:3px;color:#b29364;background:#f5ead7}.ret-search{width:250px;margin-left:auto}.ret-error-banner{color:#ad7e5b;background:#fff3e8;border-top:1px solid #f4e4d5;border-bottom:1px solid #f4e4d5;font-size:10px;padding:11px 23px}.ret-table{min-width:1030px}.ret-table th,.ret-table td{padding-right:13px}.ret-table th.ret-product-col{width:23%}.ret-table th.ret-date-col{width:12%}.ret-table th.ret-deadline-col{width:15%}.ret-table th.ret-countdown-col{width:15%}.ret-table th.ret-arrival-col{width:9%;text-align:center}.ret-table th.ret-quantity-col{width:12%;text-align:left}.ret-table th.ret-action-col{width:14%;text-align:left}.ret-table td{height:117px;padding-top:17px;padding-bottom:17px}.ret-table td:first-child{padding-left:23px}.ret-table .product-cell{gap:10px}.ret-table .thumbnail{width:43px;height:43px;cursor:default}.ret-table .product-name{font-size:11px;color:#49653a;line-height:1.6}.ret-table .product-text .sku{font-size:8px;padding:2px 4px;margin-top:4px}.ret-order-label{display:block;font-size:8px;color:#9aad89;max-width:100%;overflow-wrap:anywhere;margin-top:4px}.ret-date-value{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;color:#7a9164;display:block}.ret-location-pill{display:inline-flex;padding:2px 5px;border-radius:3px;font-size:8px;background:#f0f5e9;color:#91a676;margin-top:7px}.ret-window-label{display:block;color:#a4b193;font-size:8px;margin-top:6px}.ret-expiry-time{font-size:8px;color:#9eae8b;display:block;margin-top:4px}.ret-countdown{font-size:12px;font-weight:550;color:#889d70;font-variant-numeric:tabular-nums;display:block;line-height:1.5}.ret-countdown-caption{font-size:8px;color:#abb69a;display:block;margin-top:5px}.ret-row-expiring{background:#fffcf5}.ret-row-expiring:hover{background:#fff9ee}.ret-row-expiring .ret-countdown{color:#b88b53}.ret-row-expired .ret-countdown{color:#b08a73}.ret-row-expired{background:#fdfbf8}.ret-row-expired:hover{background:#faf5ef}.ret-row-imminent .ret-countdown{color:#c4805b}.ret-arrival-quantity{font-size:12px;color:#89a071;text-align:center;font-variant-numeric:tabular-nums}.ret-available-quantity{font-size:24px;color:#64884c;font-weight:550;line-height:1.25;font-variant-numeric:tabular-nums}.ret-row-expiring .ret-available-quantity{color:#b7935d}.ret-row-expired .ret-available-quantity{color:#b5bca7}.ret-quantity-caption{display:block;color:#a5b395;font-size:8px;margin-top:5px;line-height:1.7}.ret-batch-actions{display:flex;gap:5px;flex-wrap:wrap}.ret-batch-actions>button{background:#f1f6e9;border:1px solid #dce7ce;color:#82a165;border-radius:5px;padding:6px 8px;font-size:9px;white-space:nowrap}.ret-batch-actions>button:hover:not(:disabled){background:#e5efd9;color:#608543}.ret-batch-actions>button[data-ret-action="consume"]{background:#fff;border-color:#e6ebdf;color:#9dab8a}.ret-edit-batch{display:flex;align-items:center;gap:4px;font-size:8px;color:#9bad87;border:0;background:none;padding:7px 0 0}.ret-edit-batch .icon{width:11px;height:11px}.ret-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:45px 20px;min-height:270px;text-align:center}.ret-empty-symbol{display:grid;place-items:center;background:#f0f5e9;color:#94ab7d;border-radius:17px;width:58px;height:58px;margin-bottom:16px}.ret-empty-symbol .icon{width:29px;height:29px;stroke-width:1.3}.ret-empty h3{font-size:14px;font-weight:500;color:#76905f;margin:0 0 8px}.ret-empty p{max-width:410px;font-size:10px;color:#a2af93;margin:0 0 18px;line-height:1.9}.ret-empty>.button{font-size:10px;padding:8px 13px}.ret-module-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:8px;color:#a2af94;line-height:1.8;margin:17px 0 0}.ret-form-note{font-size:10px;line-height:1.9;color:#93a57e;background:#f3f7eb;border:1px solid #e6eddc;padding:11px 13px;border-radius:6px;margin:0 0 20px}.ret-batch-modal{width:575px}.ret-batch-modal .form-grid{gap:15px}.ret-allocation-info{grid-column:1/-1;font-size:9px;color:#8ea275;margin-top:-6px}.ret-allocation-info.ret-no-stock{color:#b48b62}.ret-batch-modal .field textarea{min-height:65px}.ret-action-deadline{font-size:10px;color:#ad916c;line-height:1.8;margin:-8px 0 17px}.ret-action-deadline.expired{color:#bd805e}.ret-batch-modal .field input,.ret-batch-modal .field select{font-size:12px}.ret-batch-modal .field.full .required{position:static}.ret-batch-modal .receipt-preview{margin-top:17px}.ret-batch-actions>button:disabled{opacity:.4}.ret-list-panel .table-footer{font-size:9px}.ret-table .thumbnail img{width:100%;height:100%;object-fit:contain}
@media(max-width:1250px){.ret-rules>form{flex-basis:100%;justify-content:flex-end}.ret-toolbar{padding-left:18px;padding-right:18px}.ret-search{flex:1;min-width:200px}.ret-metrics{gap:11px}.ret-metrics>article{padding:16px 12px;gap:9px}.ret-metrics small{font-size:8px}.ret-mini-icon{width:27px;height:27px}.ret-hero{gap:25px;padding:26px}.ret-spotlight{padding-left:25px}.ret-nearest-countdown{font-size:23px}.ret-metrics strong{font-size:25px}}
@media(max-width:950px){.ret-hero{grid-template-columns:1fr 1fr;gap:22px;padding:22px}.ret-hero-number strong{font-size:42px}.ret-hero-number>span{font-size:10px}.ret-hero-main>p{font-size:9px}.ret-hero-foot{gap:7px;font-size:8px;margin-top:17px}.ret-nearest-countdown{font-size:19px}.ret-spotlight>strong{font-size:12px}.ret-spotlight{padding-left:22px}.ret-nearest-info{font-size:8px}.ret-metrics{grid-template-columns:repeat(2,1fr)}.ret-metrics>article{padding:16px}.ret-mini-icon{width:31px;height:31px}.ret-toolbar{gap:12px}.ret-tabs{width:100%;justify-content:space-between}.ret-tabs>button{flex:1;justify-content:center}.ret-search{width:100%;margin:0}.ret-rules>form{justify-content:flex-start}.ret-rules>form>.ret-setting-field:first-child{flex-wrap:wrap}}
@media(max-width:720px){.ret-heading{gap:12px;margin-bottom:20px}.ret-heading h1{font-size:24px}.ret-heading p{font-size:9px;max-width:220px}.ret-heading>.ret-add-batch{font-size:10px;padding:9px 11px;gap:5px}.ret-heading>.ret-add-batch .icon{width:14px;height:14px}.ret-hero{grid-template-columns:1fr;gap:22px;padding:23px 21px}.ret-hero-number strong{font-size:45px}.ret-hero-number>span{font-size:11px}.ret-hero-main>p{font-size:9px}.ret-hero-foot{margin-top:16px;font-size:8px}.ret-spotlight{padding:20px 0 0;border:0;border-top:1px solid #52724880}.ret-spotlight-head{font-size:9px}.ret-spotlight>strong{font-size:12px;margin-top:11px}.ret-nearest-countdown{font-size:24px}.ret-nearest-info{font-size:8px}.ret-spotlight>button{font-size:9px;margin-top:12px}.ret-metrics{gap:9px;margin-bottom:17px}.ret-metrics>article{padding:14px 12px;gap:8px}.ret-metrics>article>div>span{font-size:9px}.ret-metrics strong{font-size:24px}.ret-metrics small{font-size:7px}.ret-mini-icon{width:27px;height:27px}.ret-mini-icon .icon{width:14px;height:14px}.ret-rules{padding:16px 14px;gap:15px;margin-bottom:17px}.ret-rules-label small{font-size:8px}.ret-rules>form{gap:10px 12px}.ret-rules>form>.ret-setting-field{font-size:9px;gap:6px}.ret-rules>form>.ret-setting-field:first-child{flex-basis:100%;gap:7px}.ret-rules .button{margin-left:auto;font-size:9px;padding:6px 9px}.ret-preset-group button{font-size:8px;padding:5px 6px}.ret-inline-number{width:61px}.ret-inline-number input{width:41px;font-size:10px}.ret-narrow{width:53px}.ret-narrow input{width:33px}.ret-untracked-notice{padding:12px;gap:8px;margin-bottom:17px}.ret-untracked-notice>.icon{width:15px}.ret-untracked-notice strong{font-size:9px}.ret-untracked-notice p>span{font-size:8px}.ret-untracked-notice>button{font-size:9px;gap:2px}.ret-untracked-notice>button .icon{width:11px}.ret-list-panel .panel-heading h2{font-size:13px}.ret-list-panel .panel-heading p{font-size:8px;max-width:220px}.ret-list-panel .panel-actions .button{font-size:9px;padding:6px 7px}.ret-list-panel .panel-actions .icon{width:12px;height:12px}.ret-toolbar{padding:0 14px 16px}.ret-tabs>button{font-size:8px;padding:6px 5px;gap:3px}.ret-tabs button>span{font-size:7px}.ret-search{height:33px}.ret-search input{font-size:10px}.ret-module-footer{font-size:7px;gap:5px;margin-top:13px}.ret-batch-modal .form-grid{gap:13px}.ret-form-note{font-size:9px;padding:10px;margin-bottom:17px}.ret-action-deadline{font-size:9px}.ret-allocation-info{font-size:8px}.ret-batch-modal .field input,.ret-batch-modal .field select{font-size:11px}}
/* Supplier returns disclose the physical origin before inventory is deducted. */
.ret-pickup-sources{margin:0 0 16px;padding:17px;border:1px solid var(--theme-ui-border);border-radius:13px;background:linear-gradient(120deg,var(--theme-ui-raised),var(--theme-ui-panel));color:var(--theme-ui-text)}.ret-pickup-sources[hidden]{display:none!important}.ret-pickup-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;color:var(--theme-dense-text)}.ret-pickup-heading strong{color:var(--theme-ui-text);font-size:13px;font-variant-numeric:tabular-nums}.ret-pickup-summary{margin:10px 0 15px;font-size:14px;font-weight:600;line-height:1.8;color:var(--theme-ui-accent)}.ret-pickup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ret-pickup-card{min-width:0;padding:14px;border:1px solid var(--theme-ui-border);border-radius:10px;background:var(--theme-ui-panel);display:flex;flex-direction:column;gap:7px}.ret-pickup-card.is-unused{opacity:.58}.ret-pickup-kind{font-size:12px;font-weight:600;color:var(--theme-ui-text)}.ret-pickup-amount{display:flex;align-items:baseline;gap:6px;margin:2px 0 1px;color:var(--theme-ui-accent)}.ret-pickup-amount strong{font-size:28px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2}.ret-pickup-amount span{font-size:11px;color:var(--theme-dense-text)}.ret-pickup-location{font-size:11px;color:var(--theme-ui-text)}.ret-pickup-card small{display:block;font-size:10px;line-height:1.75;color:var(--theme-dense-text);overflow-wrap:anywhere}.ret-pickup-invalid{margin:10px 0 0;font-size:12px;line-height:1.85;color:var(--theme-dense-text)}.ret-returned-source{font-weight:500;color:var(--theme-ui-accent)}
@media(max-width:480px){.ret-pickup-sources{padding:13px}.ret-pickup-grid{grid-template-columns:1fr}.ret-pickup-card{padding:13px}.ret-pickup-summary{font-size:13px}.ret-pickup-amount strong{font-size:25px}}

/* Default company rules remain visible to members without editable controls. */
.ret-rule-permission{display:block;margin-top:4px;font-size:11px;line-height:1.7;color:var(--theme-dense-text)}.ret-rule-permission[hidden],#ret-save-settings[hidden]{display:none!important}#ret-settings-form[data-rule-access="readonly"] input,#ret-settings-form[data-rule-access="readonly"] [data-ret-preset]{cursor:default;opacity:.7}#ret-settings-form input:disabled{color:var(--theme-ui-text);-webkit-text-fill-color:var(--theme-ui-text)}

/* Carry product photos into deadline and supplier-return dialogs. */
.ret-dialog-photo{display:inline-flex;align-items:center;justify-content:center;flex:0 0 64px;width:64px;height:64px;overflow:hidden;border:1px solid var(--theme-ui-border);border-radius:10px;background:var(--theme-ui-panel);color:var(--theme-dense-text)}
.ret-dialog-photo img{display:block;width:100%;height:100%;padding:4px;object-fit:contain}.ret-dialog-photo>.icon{width:25px;height:25px;opacity:.55}.ret-action-product-heading{display:flex;gap:14px;align-items:center;margin-bottom:20px}.ret-action-product-heading .adjust-product{margin:0;line-height:1.8}.ret-action-product-heading>span{flex-shrink:0}#ret-batch-product-photo{display:block;margin-top:10px}

#ret-nearest-product-photo{float:left;margin:13px 12px 8px 0}#ret-nearest-product-photo:empty{display:none}.ret-spotlight>#ret-nearest-product-photo:not(:empty)+strong{display:flex;align-items:center;min-height:64px;white-space:normal;overflow-wrap:anywhere}
