.ab-filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.ab-filter-row button,.ab-batch-bar button{min-height:38px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:800}.ab-filter-row button.active{color:#fff;border-color:var(--green);background:var(--green)}.ab-campaign-select{display:grid;gap:5px;color:var(--muted);font-size:12px;font-weight:800}.pending-group-note{color:#a25a13!important;font-weight:800}.ab-batch-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:11px 13px;border-radius:12px;background:#f2f7f3}.ab-batch-bar>div{display:flex;gap:7px;flex-wrap:wrap}.ab-batch-bar .danger-lite{color:#9e2929;border-color:#efc6c6;background:#fff7f7}.ab-batch-actions button[data-batch-active="true"]{color:#075a3e;border-color:#abd9bf;background:#f4fbf6}.ab-product-table{min-width:920px}.shared-stock{display:inline-flex;margin-top:7px;padding:4px 7px;border-radius:999px;color:#76520e;background:#fff2d2;font-size:11px;font-weight:800}.group-state-button{min-width:112px;padding:8px 10px;border-radius:10px;font-weight:900}.group-state-button.on{color:#075a3e;border:1px solid #abd9bf;background:#e6f6ec}.group-state-button.off{color:#68736d;border:1px solid #d9dfdb;background:#f1f3f2}.route-editor-panel{padding:18px}.route-editor-head{display:grid;grid-template-columns:minmax(260px,1fr) minmax(240px,320px) auto;align-items:end;gap:14px}.route-editor-head h2{margin:0}.route-editor-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.route-editor-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.route-version-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:14px 0;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#f7faf8;color:var(--muted);font-size:12px}.route-editor-grid{display:grid;grid-template-columns:260px minmax(420px,1fr) 190px;gap:12px;align-items:start}.route-unassigned,.route-column,.route-check{min-height:180px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfcfb}.route-unassigned>header,.route-column>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.route-unassigned>p{margin:7px 0 12px;color:var(--muted);font-size:11px;line-height:1.5}.route-columns{display:grid;grid-template-columns:repeat(2,minmax(230px,1fr));gap:12px}.route-column.drag-over,.route-unassigned.drag-over{outline:3px solid rgba(8,122,80,.28);background:#edf8f1}.route-column input{min-width:0;width:100%;height:38px;padding:0 9px;border:1px solid var(--line);border-radius:9px;font-weight:900}.route-delete{border:0;color:#a03939;background:transparent;font-size:12px;font-weight:800}.route-summary{margin:8px 0;color:var(--muted);font-size:11px}.route-card-list{display:grid;gap:8px;min-height:48px}.route-leader-card{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px;border:1px solid #d8e4dc;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(35,68,49,.05)}.route-leader-card[draggable=true]{cursor:grab}.route-leader-card strong{font-size:13px}.route-leader-card small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.business-group-badge{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:999px;font-size:10px;font-weight:900}.business-group-badge.group-A{color:#075a3e;background:#dff4e7}.business-group-badge.group-B{color:#234f75;background:#e3f0fb}.route-card-actions{display:flex;gap:3px}.route-card-actions button{width:28px;height:28px;border:1px solid var(--line);border-radius:7px;background:#f8faf8}.route-empty{display:grid;min-height:48px;place-items:center;border:1px dashed #cbd8d0;border-radius:10px;color:var(--muted);font-size:11px}.no-delivery{margin-top:13px}.no-delivery summary{padding:8px 0;cursor:pointer;color:var(--muted);font-size:12px;font-weight:800}.route-check{position:sticky;top:14px}.route-check>strong{display:block;margin-bottom:10px}.check-item{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #e7ede9}.check-item.bad{color:#a23d3d}.check-item.good{color:#087a50}.route-check p{color:var(--muted);font-size:11px;line-height:1.6}
.community-assignment-table{min-width:1040px}.leader-community-list{display:grid;gap:8px;min-width:390px}.leader-community-row{display:grid;grid-template-columns:minmax(130px,1fr) 150px auto;align-items:center;gap:10px;padding:10px;border:1px solid #d9e6de;border-radius:11px;background:#f7fbf8}.leader-community-row strong,.leader-community-row small{display:block}.leader-community-row small{margin-top:3px;color:var(--muted);font-size:10px}.leader-community-row .field{width:100%}.community-empty{padding:12px;border:1px dashed #e2b5aa;border-radius:10px;color:#9a402c;background:#fff8f5;font-weight:700}
.leader-community-row.needs-assignment{border:2px solid #dfa91c;background:#fff6d8;box-shadow:0 0 0 3px rgba(223,169,28,.1)}.leader-community-row.needs-assignment strong{color:#694b00}.leader-community-row.needs-assignment small{color:#8a6210}.leader-community-row.needs-assignment .field{border-color:#d9a51d;background:#fffdf5}.leader-community-row.pending-change{border-color:#e5c36c;background:#fffaf0}.delivery-execution.needs-action{border:2px solid #dfa91c;background:#fff9e8}.attention-copy{margin:8px 0 0;padding:10px 12px;border-radius:10px;color:#79550a;background:#fff1bf;font-weight:800}.driver-route-group.unassigned-driver{border-color:#dfa91c;background:#fff9e8}.driver-login-state.missing{display:inline-block;margin-top:5px!important;padding:4px 7px;border-radius:7px;color:#79550a!important;background:#fff1bf;font-weight:850}.route-empty{border-color:#e4c66d;color:#79550a;background:#fffaf0}
.leader-filter-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:8px}.leader-filter-toolbar .ab-filter-row{margin-bottom:0}.leader-list-search{display:grid;gap:5px;min-width:360px;color:var(--muted);font-size:11px;font-weight:800}.leader-list-search input{width:100%;height:40px;padding:0 12px;border:1px solid #bfd4c7;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:13px}.leader-list-search input:focus{outline:3px solid rgba(8,122,80,.15);border-color:var(--green)}.leader-search-result{min-height:20px;margin-bottom:6px;color:var(--muted);font-size:11px}.leader-search-empty td{padding:28px!important;color:var(--muted);text-align:center}.community-assignment-table tr[hidden]{display:none}
@media(max-width:900px){.leader-filter-toolbar{align-items:stretch;flex-direction:column}.leader-list-search{min-width:0}}
.group-sort-actions{display:flex;align-items:center;gap:4px;margin-top:6px;color:var(--muted);font-size:10px}.group-sort-actions button{width:27px;height:25px;border:1px solid var(--line);border-radius:7px;background:white}.route-card-actions{align-items:center;flex-wrap:wrap;justify-content:flex-end}.route-card-actions select{max-width:92px;height:28px;border:1px solid var(--line);border-radius:7px;background:white;font-size:10px}.fixed-route-badge{display:inline-flex;padding:4px 7px;border-radius:999px;color:#087a50;background:#e4f5ea;font-size:10px;font-weight:900;white-space:nowrap}.route-template-list{display:grid;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}.route-template-item{padding:8px;border-radius:9px;background:#eef7f1}.route-template-item.inactive{opacity:.65;background:#f1f2f1}.route-template-item>span{display:block;font-size:11px;font-weight:800}.route-template-item small{display:block;margin-top:2px;color:var(--muted);font-size:9px}.route-template-item>div{display:flex;gap:3px;margin-top:6px}.route-template-item button{padding:3px 5px;border:1px solid var(--line);border-radius:6px;background:white;font-size:9px}
@media(max-width:1100px){.route-editor-head{grid-template-columns:1fr 260px}.route-editor-actions{grid-column:1/-1;justify-content:flex-start}.route-editor-grid{grid-template-columns:230px minmax(0,1fr)}.route-check{position:static;grid-column:1/-1}.route-columns{grid-template-columns:1fr}}
@media(max-width:720px){.ab-batch-bar,.route-editor-head{display:flex;align-items:stretch;flex-direction:column}.route-editor-actions{justify-content:stretch}.route-editor-actions button{flex:1}.route-editor-grid{grid-template-columns:1fr}.route-columns{grid-template-columns:1fr}.route-check{grid-column:auto}}
.route-editor-grid{grid-template-columns:260px minmax(520px,1fr) 210px}.driver-roster{margin-bottom:14px}.driver-roster-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:9px}.driver-roster-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto auto;align-items:center;gap:7px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#f7fbf8}.driver-roster-card.disabled{opacity:.68;background:#f4f4f4}.driver-roster-card small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.driver-roster-card button{padding:5px 7px;border:1px solid var(--line);border-radius:7px;background:white;font-size:10px;font-weight:800}.driver-login-state.ready{color:#14704c}.driver-login-state.missing{color:#b34c2b}.driver-route-groups{display:grid;gap:13px}.driver-route-group{padding:12px;border:2px solid #d5e7dc;border-radius:16px;background:#f5faf6}.driver-route-group>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #dce9e0}.driver-route-group>header strong{display:block;font-size:16px}.driver-route-group>header small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.driver-route-group>header>b{color:var(--green)}.driver-kicker{display:block;color:#b07816;font-size:9px;font-weight:900;letter-spacing:.12em}.driver-route-group.unassigned-driver{border-color:#efb7b7;background:#fff7f7}.driver-route-empty{grid-column:1/-1}.route-driver-select{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;margin:8px 0;color:var(--muted);font-size:10px;font-weight:800}.route-driver-select select{min-width:0;height:32px;border:1px solid var(--line);border-radius:8px;background:white;font-size:11px}
.delivery-execution{margin-bottom:14px}.delivery-progress-grid{display:grid;grid-template-columns:repeat(6,minmax(100px,1fr));gap:8px;margin:14px 0}.delivery-progress-grid>div{padding:12px;border-radius:12px;background:#f3f7f4}.delivery-progress-grid small,.delivery-progress-grid strong{display:block}.delivery-progress-grid small{color:var(--muted);font-size:10px}.delivery-progress-grid strong{margin-top:4px;font-size:18px}.delivery-progress-grid .has-exception{background:#fff0ed;color:#a8402c}.delivery-execution-actions{display:flex;gap:8px;flex-wrap:wrap}.delivery-route-progress{display:grid;gap:6px;margin-top:12px}.delivery-route-progress article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--line);border-radius:10px}.delivery-route-progress small{display:block;margin-top:3px;color:var(--muted)}.delivery-route-progress span{font-size:11px;color:#5a6a61}
@media(max-width:1100px){.route-editor-grid{grid-template-columns:230px minmax(0,1fr)}.driver-route-groups{min-width:0}}
@media(max-width:720px){.route-editor-grid{grid-template-columns:1fr}.driver-roster-card{grid-template-columns:minmax(0,1fr) repeat(2,auto)}.driver-roster-card .status{grid-column:1/-1}.delivery-progress-grid{grid-template-columns:repeat(2,1fr)}.delivery-route-progress article{align-items:flex-start;flex-direction:column}.driver-route-group{padding:9px}.route-driver-select{grid-template-columns:1fr}.route-driver-select select{width:100%}}
.driver-route-group.unassigned-driver{border-color:#dfa91c!important;background:#fff9e8!important}.driver-login-state.missing{display:inline-block;margin-top:5px!important;padding:4px 7px;border-radius:7px;color:#79550a!important;background:#fff1bf;font-weight:850}
.driver-order-actions,.route-order-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.driver-order-actions button,.route-order-actions button{min-height:32px;padding:0 9px;border:1px solid #b8d2c2;border-radius:8px;color:#075a3e;background:#fff;font-size:11px;font-weight:850}.driver-order-actions button:disabled,.route-order-actions button:disabled{opacity:.38;cursor:not-allowed}.driver-order-actions>b{margin-left:4px;color:var(--green)}.route-title-order{min-width:0;display:flex;align-items:center;gap:8px;flex:1}.route-title-order input{flex:1}.route-sequence{flex:0 0 auto;padding:4px 7px;border-radius:7px;color:#76520e;background:#fff2d2;font-size:10px;font-weight:900}.route-column>header{align-items:flex-start}.driver-route-group>header>div:first-child{min-width:0}@media(max-width:720px){.driver-order-actions,.route-order-actions{justify-content:flex-start}.driver-order-actions button,.route-order-actions button{min-height:40px}.route-column>header{align-items:stretch;flex-direction:column}.route-title-order{width:100%}}
.community-assignment-table tr.leader-action-return>td{background:#fff8dc;transition:background-color .35s ease;box-shadow:inset 0 2px #e6b12e,inset 0 -2px #e6b12e}
.community-assignment-table tr.leader-action-return>td:first-child{box-shadow:inset 4px 0 #e6a817,inset 0 2px #e6b12e,inset 0 -2px #e6b12e}
@media (prefers-reduced-motion:reduce){.community-assignment-table tr.leader-action-return>td{transition:none}}
.route-groups-stack{display:grid;gap:18px}.route-business-section{padding:14px;border:2px solid #cfe2d6;border-radius:16px;background:#f8fbf9}.route-business-section.group-B{border-color:#cddfec;background:#f7fafd}.route-business-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.route-business-head h3{margin:2px 0 0;font-size:20px}.route-business-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.route-business-head span{color:#a67519;font-size:9px;font-weight:900;letter-spacing:.14em}.route-business-section>.route-editor-grid{grid-template-columns:250px minmax(520px,1fr)}.route-community-card strong{font-size:14px}.route-check-wide{position:static;display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:0 18px;margin-top:14px;min-height:0}.route-check-wide>strong,.route-check-wide>p{grid-column:1/-1}.route-check-wide>p{margin-bottom:0}
.route-check-detail{grid-column:1/-1;margin-top:12px;padding:12px;border:1px solid #efc7c7;border-radius:12px;background:#fff7f7}.route-check-detail>strong{display:block;color:#8f2f2f;font-size:13px}.route-check-detail>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.route-check-detail button{min-width:170px;padding:9px 11px;display:grid;grid-template-columns:auto 1fr;gap:2px 7px;text-align:left;border:1px solid #e9bcbc;border-radius:10px;color:var(--text);background:#fff}.route-check-detail button>span{grid-row:1/3;padding:3px 6px;align-self:center;border-radius:999px;color:#8b3333;background:#fde4e4;font-size:10px;font-weight:900}.route-check-detail button>b{font-size:12px}.route-check-detail button>small{color:var(--muted);font-size:10px}.route-check-detail>p{margin:8px 0 0;color:#8d5656;font-size:11px}.directory-community-row.route-focus-target{border-color:#d83939!important;box-shadow:0 0 0 4px rgba(216,57,57,.14);animation:route-focus-pulse .7s ease 2}.simulation-end-panel{grid-column:1/-1;margin-top:14px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e5e9e6;background:#fafbfa}.simulation-end-panel>div{display:grid;gap:3px}.simulation-end-panel>div>strong{font-size:13px}.simulation-end-panel small{color:var(--muted);font-size:11px}.simulation-end-panel .danger-lite{min-height:38px;padding:0 13px;border:1px solid #dc9f9f;border-radius:10px;color:#972f2f;background:#fff5f5;font-weight:900;white-space:nowrap}@keyframes route-focus-pulse{50%{box-shadow:0 0 0 7px rgba(216,57,57,.22)}}
@media(max-width:1100px){.route-business-section>.route-editor-grid{grid-template-columns:220px minmax(0,1fr)}.route-check-wide{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.route-business-head{align-items:stretch;flex-direction:column}.route-business-section>.route-editor-grid{grid-template-columns:1fr}.route-check-wide{grid-template-columns:1fr}.route-check-detail button{width:100%}.simulation-end-panel{align-items:stretch;flex-direction:column}.simulation-end-panel button{width:100%}}
.community-directory{margin:16px 0;border:1px solid var(--line);border-radius:16px;background:#f7faf8;overflow:hidden}.community-directory-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;cursor:pointer;list-style:none}.community-directory-summary::-webkit-details-marker{display:none}.community-directory-summary h3{margin:0;font-size:18px}.community-directory-summary p{margin:5px 0 0;color:var(--muted);font-size:11px}.community-directory-summary-meta{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.community-directory-summary-meta span,.community-directory-summary-meta strong{padding:7px 10px;border:1px solid #d6e3db;border-radius:999px;background:#fff;font-size:11px;white-space:nowrap}.community-directory-summary-meta strong{color:#087a50}.community-directory[open] .community-directory-summary{border-bottom:1px solid #dce7e0}.community-directory-content{padding:14px}.community-directory-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.community-directory-head h3{margin:0;font-size:18px}.community-directory-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.route-search{display:grid;gap:5px;min-width:340px;color:var(--muted);font-size:11px;font-weight:800}.route-search input{height:40px;padding:0 12px;border:1px solid #bfd4c7;border-radius:10px;background:#fff;font:inherit;font-size:13px}.route-search input:focus{outline:3px solid rgba(8,122,80,.15);border-color:var(--green)}.route-directory-filters{display:flex;gap:7px;flex-wrap:wrap;margin:13px 0}.route-directory-filters button{min-height:34px;padding:0 11px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:11px;font-weight:800}.route-directory-filters button.active{color:#fff;border-color:var(--green);background:var(--green)}.leader-community-modules{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:9px}.leader-community-module{min-width:0;border:1px solid #d5e3da;border-radius:12px;background:#fff;overflow:hidden}.leader-community-module>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;cursor:pointer;list-style-position:inside}.leader-community-module>summary strong,.leader-community-module>summary small{display:block}.leader-community-module>summary small{margin-top:3px;color:var(--muted);font-size:10px}.leader-group-counts{display:flex;gap:5px}.leader-group-counts b{padding:4px 7px;border-radius:999px;font-size:10px;white-space:nowrap}.leader-group-counts .group-A{color:#075a3e;background:#dff4e7}.leader-group-counts .group-B{color:#234f75;background:#e3f0fb}.leader-community-children{display:grid;gap:6px;padding:0 9px 9px}.directory-community-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:9px;border:1px solid #e0e8e3;border-radius:9px;background:#fbfcfb}.directory-community-row strong,.directory-community-row small{display:block}.directory-community-row strong{font-size:12px}.directory-community-row small{margin-top:3px;color:var(--muted);font-size:9px}.directory-community-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}.directory-community-actions select{max-width:116px;height:30px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:10px}.route-unassign{width:auto!important;min-height:28px;padding:0 7px!important;border-color:#e5b7b7!important;color:#9e2929;background:#fff8f8!important;font-size:10px;font-weight:800;white-space:nowrap}.directory-empty{padding:18px;border:1px dashed #cad8cf;border-radius:10px;color:var(--muted);text-align:center}.route-community-card.search-hidden{display:none}.route-business-section>.driver-route-groups{min-width:0}.route-community-card:focus-within,.directory-community-row:focus-within{outline:3px solid rgba(8,122,80,.13)}
@media(max-width:900px){.community-directory-summary{align-items:flex-start;flex-direction:column}.community-directory-summary-meta{justify-content:flex-start}.community-directory-head{align-items:stretch;flex-direction:column}.route-search{min-width:0}.leader-community-modules{grid-template-columns:1fr}}
@media(max-width:560px){.directory-community-row{align-items:flex-start;flex-direction:column}.directory-community-actions{width:100%;justify-content:space-between}.directory-community-actions select{max-width:none;flex:1}}
.route-community-adder{position:relative;margin:9px 0 11px;padding:10px;border:1px solid #d6e6dc;border-radius:11px;background:#f8fbf9}.route-community-adder>label{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:800}.route-community-adder input{width:100%;height:36px;padding:0 10px;border:1px solid #bfd4c7;border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.route-community-adder input:focus{outline:3px solid rgba(8,122,80,.15);border-color:var(--green)}.route-community-adder input:disabled{background:#f0f3f1;color:#849088}.route-community-search-results{position:absolute;z-index:12;top:67px;right:10px;left:10px;max-height:230px;padding:5px;border:1px solid #bfd4c7;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(25,65,43,.18);overflow:auto}.route-community-search-results>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;width:100%;padding:9px;border:0;border-bottom:1px solid #e7eee9;background:#fff;color:var(--ink);text-align:left}.route-community-search-results>button:hover,.route-community-search-results>button:focus{outline:none;background:#eef8f2}.route-community-search-results>button strong{font-size:12px}.route-community-search-results>button small{grid-column:1;color:var(--muted);font-size:9px}.route-community-search-results>button span{grid-column:2;grid-row:1/3;align-self:center;color:var(--green);font-size:11px;font-weight:900}.route-community-search-empty,.route-community-adder-empty{display:block;margin:0;padding:10px;color:var(--muted);font-size:10px;text-align:center}.route-community-search-results>[hidden]{display:none}.route-summary{font-weight:700}
.leader-phone-reveal{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 9px;border:1px solid #dbe6df;border-radius:9px;color:#20382d;background:#fff;font:inherit;white-space:nowrap;cursor:pointer}
.leader-phone-reveal:hover{border-color:#8fb6a2;background:#f5faf7}
.leader-phone-reveal:focus-visible{outline:3px solid rgba(8,122,80,.18);outline-offset:2px}
.leader-phone-reveal:disabled{cursor:wait;opacity:.68}
.leader-phone-value{font-variant-numeric:tabular-nums;letter-spacing:.02em}
.leader-phone-action{color:var(--green);font-size:11px;font-weight:850}
.delete-leader{color:#a23d3d!important}.delete-leader:hover{color:#7c2424!important;background:#fff3f1}
