.delivery-dialog{position:fixed;inset:0;background:#eef4fb;z-index:11000;overflow:auto;padding:16px}.delivery-dialog>section{max-width:700px;margin:auto;font:inherit}.delivery-dialog fieldset{border:1px solid #c6d8ed;border-radius:12px;background:white;margin:16px 0;padding:14px}.delivery-dialog label{display:block;margin:12px 0;line-height:1.8}.delivery-dialog textarea{display:block;width:100%;min-height:70px}.delivery-dialog img,.delivery-archive-stop img{max-width:100%;max-height:400px;object-fit:contain;border-radius:8px;margin:6px}.delivery-camera{border:1px solid #1765cf;padding:12px;border-radius:8px}.delivery-stop button,.delivery-dialog button{min-height:44px;padding:10px 16px}.delivery-dialog figcaption{font-size:13px;line-height:1.8}#deliveryAdmin label{display:block;margin:12px 0}#deliveryAdmin select{display:block;width:100%}.delivery-archive-stop{border:1px solid #cbd9eb;margin:12px 0;padding:12px;border-radius:10px}
.delivery-filters{background:#fff;border:1px solid #dbe5ef;border-radius:16px;padding:16px;margin:14px 0;display:grid;grid-template-columns:1fr 2fr;gap:12px}.delivery-filters label,.delivery-group-search{display:block;font-weight:600}.delivery-filters input,.delivery-group-search input{display:block;box-sizing:border-box;width:100%;min-height:46px;margin-top:7px;border:1px solid #ccd9e8;border-radius:10px;padding:10px;font:inherit}.delivery-filters p{grid-column:1/-1;margin:0;color:#62748b}.delivery-output{background:#fff;border:1px solid #cdddec;border-radius:16px;margin:12px 0;overflow:hidden}.delivery-output[hidden]{display:none}.delivery-output>summary{cursor:pointer;padding:18px;background:#eaf2fc;display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#163b66}.delivery-output>summary:before{content:'▸'}.delivery-output[open]>summary:before{content:'▾'}.delivery-output summary strong{font-size:18px}.delivery-output summary small{margin-inline-start:auto}.delivery-output-body{padding:14px}.delivery-group-search{margin-bottom:14px}.delivery-stop{border:1px solid #e1e8f1;border-radius:12px;padding:16px;margin:10px 0;background:#fff}.delivery-stop-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.delivery-stop h3{margin:0;font-size:16px}.delivery-code{color:#60758c;font-size:13px}.delivery-badge{border-radius:20px;padding:5px 10px;background:#edf5f2;color:#176c52;font-size:12px;white-space:nowrap}.delivery-photo-count{display:flex;gap:8px;margin:12px 0}.delivery-photo-count span{background:#f2f6fb;padding:6px 10px;border-radius:8px;font-size:13px}.delivery-stop button,.delivery-dialog button{border:0;border-radius:10px;background:#096b56;color:white;font:inherit;cursor:pointer}.delivery-stop button{width:100%}.delivery-dialog{box-sizing:border-box;direction:rtl;font-family:Vazirmatn,Tahoma,sans-serif;color:#16304e}.delivery-dialog *{box-sizing:border-box}.delivery-dialog>section{max-width:760px;padding-bottom:24px}.delivery-editor-header{background:#fff;border:1px solid #d5e1ee;border-radius:16px;padding:18px}.delivery-editor-header h2{font-size:21px;line-height:1.7;margin:16px 0 8px}.delivery-editor-header p{line-height:1.9;margin:6px 0}.delivery-editor-header button{background:#e7eff8;color:#244463}.delivery-editor-meta{color:#63758c;font-size:13px;line-height:1.8}.delivery-dialog legend{font-weight:700;padding:0 8px}.delivery-dialog fieldset{margin:14px 0;padding:16px}.delivery-dialog .delivery-camera{display:inline-flex;align-items:center;padding:10px 14px;margin:8px;border:1px solid #ccd9e8;cursor:pointer;background:#f7faff;color:#244463;font-size:14px}.delivery-camera input[type=file]{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.delivery-dialog .delivery-choice{display:flex!important;align-items:center;gap:12px;padding:14px;margin:8px 0;border:1px solid #d7e2ed;border-radius:10px;background:#f7faff;cursor:pointer}.delivery-dialog .delivery-choice:has(input:checked){background:#e5f5ed;border-color:#10805e;color:#086746}.delivery-dialog .delivery-choice input{width:20px!important;height:20px!important;margin:0!important;flex:0 0 20px;accent-color:#087957}.delivery-dialog textarea{border:1px solid #cad9e8;border-radius:10px;padding:12px;font:inherit;background:#fff}.delivery-dialog [data-complete]{width:100%;min-height:52px;font-weight:700}.delivery-dialog [data-progress]{line-height:1.9;color:#096b56}.delivery-dialog [data-photos]{display:flex;gap:8px;flex-wrap:wrap}.delivery-dialog figure{margin:0;width:calc(50% - 4px);background:#f4f7fb;border-radius:10px;padding:8px}.delivery-dialog figure img{width:100%;height:160px;margin:0}.delivery-dialog small{display:block;color:#62748a;line-height:1.9}.delivery-empty{padding:20px;text-align:center;color:#60758c}@media(max-width:560px){.delivery-filters{grid-template-columns:1fr}.delivery-dialog{padding:10px}.delivery-editor-header h2{font-size:18px}.delivery-output>summary{gap:8px}.delivery-output summary small{width:100%;margin:0}.delivery-stop-heading{align-items:flex-start}.delivery-dialog .delivery-camera{margin:8px 0;display:flex;justify-content:center}.delivery-dialog [data-camera]{width:100%}.delivery-dialog fieldset{padding:12px}}
.delivery-summary-stats{flex-basis:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.delivery-summary-stats span{font-size:12px;text-align:center;background:#fff8;border-radius:8px;padding:8px 4px}.delivery-summary-stats b{display:block;font-size:18px}.delivery-output[open] .delivery-summary-stats{display:none}.delivery-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}.delivery-tabs button{font:inherit;font-size:12px;min-height:64px;border:1px solid #cddceb;background:#f2f6fb;color:#244463;border-radius:10px;cursor:pointer;padding:8px 3px}.delivery-tabs b{display:block;font-size:20px;margin-bottom:3px}.delivery-tabs button[aria-selected=true]{background:#086b55;border-color:#086b55;color:white}.delivery-tabs button:focus-visible{outline:3px solid #6eadeb;outline-offset:1px}.delivery-group-result{color:#60758c;font-size:13px;margin:8px 0}.delivery-output [data-group-cards]{max-height:60vh;overflow-y:auto;overscroll-behavior:contain;padding:0 3px}.delivery-dialog .delivery-delete-photo{background:#fff0f0;color:#a32020;border:1px solid #e6bcbc;min-height:38px;width:100%;padding:7px;margin-top:7px;font-size:13px}.delivery-delete-photo:disabled{opacity:.55}@media(max-width:420px){.delivery-tabs{gap:4px}.delivery-tabs button{font-size:11px}.delivery-summary-stats span{font-size:11px}}

.delivery-return-panel{border:1px solid #d5b46f;background:#fffaf0;border-radius:12px;padding:14px;margin:14px 0}.delivery-return-panel summary{font-weight:bold;cursor:pointer}.delivery-return-choice{display:flex!important;flex-direction:row!important;gap:10px;align-items:center;padding:12px;border:1px solid #dcc99d;border-radius:9px;margin:8px 0;background:white}.delivery-return-choice input,.delivery-return-item>input[type=checkbox]{width:23px!important;height:23px!important;flex:none}.delivery-return-item{display:grid!important;grid-template-columns:24px 1fr 85px;gap:10px;align-items:center;background:white;padding:10px;border-bottom:1px solid #e3d9c2}.delivery-return-item span{display:flex;flex-direction:column;gap:7px}.delivery-return-item input[type=number]{width:85px!important;box-sizing:border-box;min-height:44px;padding:8px;border:1px solid #c4ae7e;border-radius:8px}.delivery-return-panel small{font-size:.85rem;line-height:1.8;color:#635f53}.delivery-prior-returns article{border-top:1px solid #ddd0b2;margin-top:12px;padding-top:10px}.delivery-return-archive{border:1px solid #dbc183;padding:12px;border-radius:10px;background:#fffbf2}.delivery-return-panel [hidden],.delivery-dialog fieldset[hidden]{display:none!important}

.delivery-calc-line{background:#fff;padding:12px;margin:8px 0;border:1px solid #cbd9eb;border-radius:12px}.delivery-calc-line p{margin:6px 0;font-size:15px}.delivery-payable{background:#e4f5ec;color:#075d3b;padding:16px;border-radius:12px;font-size:20px}.delivery-payable small{display:block;font-size:12px;margin-top:8px}

.delivery-guide-link{display:block;text-align:center;background:#e4f5ec;color:#075d3b;padding:12px 16px;border:1px solid #bcded0;border-radius:12px;text-decoration:none;font-weight:bold;margin:12px 0}

[data-delivery-check-capture]{margin:18px 0;padding:18px;border:1px solid #bbd6ce;border-radius:14px;background:#fff}
[data-delivery-check-capture] h3{margin:0 0 10px;font-size:19px}
[data-delivery-check-capture] p{line-height:1.9}
[data-delivery-check-capture] input,[data-delivery-check-capture] select{display:block;width:100%;padding:12px;border:1px solid #c5d6df;border-radius:9px;font:inherit;margin-top:6px;min-height:46px}
[data-delivery-check-capture] button{margin:6px 0 6px 8px}
[data-check-captures]>p{padding:10px;background:#edf7f3;border-radius:9px;overflow-wrap:anywhere}

[data-delivery-sync-panel]{margin:12px 0;padding:12px;background:#f0f8fa;border:1px solid #b8d9de;border-radius:12px;overflow-wrap:anywhere}.delivery-sync-counts{display:flex;flex-wrap:wrap;gap:8px}.delivery-sync-counts strong{flex-basis:100%;color:#123e54}.delivery-sync-counts span{background:white;border:1px solid #d5e2eb;border-radius:8px;padding:7px 10px}.delivery-sync-details{margin-top:10px;border-top:1px solid #c7dce1;padding-top:10px}.delivery-sync-details summary{cursor:pointer;font-weight:bold}.delivery-sync-details article{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #d5e2eb}.delivery-sync-details article p{flex-basis:100%;margin:3px 0}.delivery-sync-details button{min-height:42px}.delivery-sync-details span{flex:1;min-width:160px}[data-delivery-refresh]{min-height:46px;width:100%}

#savarRefresh{display:inline-flex;align-items:center;gap:6px;border:1px solid #5b738f;background:#203e60;color:#fff;border-radius:10px;padding:7px 10px;font:inherit;cursor:pointer;margin:6px 0 0;min-height:40px}#savarRefresh span{font-size:23px;line-height:1}#savarRefresh small{font-size:11px}@media(max-width:440px){#savarRefresh{padding:6px 8px}#savarRefresh small{font-size:10px}}
