/* Administrator layout 1: shortcut, accounting summary, types, status list. */
body.manager-view .workspace-heading{display:none!important}
body.manager-view #adminDriverView{order:0;display:block!important;margin:0 0 10px;padding:0}
body.manager-view #adminDriverView[hidden]{display:none!important}
body.manager-view #openDriverManager{width:100%;min-height:44px;padding:10px 14px;background:#e0eddf;color:#234f38;border:0;border-radius:10px;font-size:15px;font-weight:700}
body.manager-view #openDriverManager:after{content:'›';float:right;font-size:20px;line-height:1}
body.manager-view #profile{order:1;padding:0!important;background:#fff;border:1px solid #dbe3df;border-radius:12px;box-shadow:none;color:#244a36}
body.manager-view #profile .settlement-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:0}
body.manager-view #profile .settlement-stats button{padding:12px;color:#224b37;border-color:#dfe6e1}
body.manager-view #profile .settlement-stats button span{font-size:12px;color:#274536}
body.manager-view #profile .settlement-stats button b{font-size:clamp(20px,5.6vw,27px);letter-spacing:-.6px;line-height:1.5;white-space:nowrap;color:#234d38}
body.manager-view #profile .settlement-stats button small{font-size:11px;color:#75857b}
body.manager-view #profile button[data-fees="unpaid"] :is(span,b){color:#91570d}
body.manager-view #profile .settlement-hint{font-size:10px;color:#718077;padding:7px 10px;margin:0;border-top:1px solid #e2e8e4}
body.manager-view #deliveryTypes{order:2;margin:10px 0}
body.manager-view #filters{order:3;display:grid;grid-template-columns:1fr;gap:7px;padding:0;margin:0;border:0;background:transparent;overflow:visible}
body.manager-view #filters button{display:grid;grid-template-columns:30px minmax(0,1fr) auto 12px;gap:9px;align-items:center;min-height:54px;padding:9px 12px;border:1px solid #dce4de;border-radius:10px;background:#fff;color:#234837;box-shadow:none;text-align:left}
body.manager-view #filters button span{font-size:14px;font-weight:700}
body.manager-view #filters button b{display:flex;align-items:baseline;gap:3px;font-size:20px}
body.manager-view #filters button small{font-size:12px}
body.manager-view #filters button:before{content:'□';display:grid;place-items:center;width:29px;height:29px;background:#edf2ed;border-radius:7px;color:#2d674a;font-size:20px}
body.manager-view #filters button.status-1:before{content:'≡'}
body.manager-view #filters button.status-2:before{content:'◇';background:#eaf1fb;color:#315f92}
body.manager-view #filters button.status-3:before{content:'➜';background:#eaf1fb;color:#315f92}
body.manager-view #filters button.status-4:before{content:'✓'}
body.manager-view #filters button:after{content:'›';position:static;font-size:21px;background:none;box-shadow:none;color:#698074;width:auto;height:auto}
body.manager-view #filters button:focus-visible{outline:3px solid #5e9476;outline-offset:2px}
body.manager-view #deliveryListHeading,body.manager-view #jobsHome{display:none!important}
body.manager-view #driverJobsBody #assignmentPanel{margin-bottom:12px}
body.manager-view #driverJobsDialog #dispatchFooter{position:static;flex:0 0 auto;padding:10px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #dce4df;background:#f6f8f5}
body.manager-view #driverJobsDialog #dispatchFooter[hidden]{display:none}
body.manager-view #driverJobsBody #jobs:empty{display:none}
body.manager-view #driverJobsBody #jobs{padding:0 10px}
body.manager-view footer{margin:14px 0;font-size:10px}
/* Match the approved mockup: real line icons, compact outlined rows, colored amounts. */
body.manager-view>main{padding:10px 12px 12px!important}
body.manager-view #adminDriverView{margin:0 0 10px!important}
body.manager-view #openDriverManager{display:grid;grid-template-columns:24px auto 16px;align-items:center;justify-content:center;gap:8px;position:relative;background:#dcebdc;border-radius:10px;min-height:42px;padding:8px 14px;font-size:16px}
body.manager-view #openDriverManager i{position:absolute;right:16px;font-size:24px;font-style:normal}
body.manager-view #openDriverManager:after{display:none}
body.manager-view .dashboard-icon{display:block;width:24px;height:24px;fill:none;stroke:#214e38;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.manager-view #profile{border-radius:15px;overflow:hidden}
body.manager-view #profile .settlement-stats button{padding:10px 14px;text-align:left;min-width:0}
body.manager-view #profile .settlement-stats button span{font-size:12px;font-weight:650;color:#263d30}
body.manager-view #profile .settlement-stats button b{font-size:clamp(21px,6vw,28px);font-weight:800;line-height:1.35;margin:3px 0}
body.manager-view #profile .settlement-stats button[data-fees="today"] b{color:#245f9e}
body.manager-view #profile .settlement-stats button[data-fees="total"] b{color:#234c39}
body.manager-view #profile .settlement-stats button[data-fees="paid"] b{color:#24784a}
body.manager-view #profile .settlement-stats button[data-fees="unpaid"] b{color:#b36417}
body.manager-view #profile .settlement-stats button span i{font-size:14px;color:#6a8073}
body.manager-view #profile .settlement-hint{padding:5px 8px;font-size:9px;line-height:1.4}
body.manager-view #deliveryTypes{gap:8px;margin:10px 0}
body.manager-view #deliveryTypes button{min-height:43px;border-radius:10px;font-size:14px;box-shadow:none}
body.manager-view #deliveryTypes button[aria-pressed="true"]{background:#1f4d35;color:white;border-color:#1f4d35;box-shadow:none}
body.manager-view #filters{gap:6px}
body.manager-view #filters button{grid-template-columns:25px minmax(0,1fr) auto 13px;gap:12px;min-height:48px;padding:8px 12px;color:#202e26;border-radius:10px}
body.manager-view #filters button:before{display:none}
body.manager-view #filters button.selected{background:white;color:#202e26;box-shadow:none}
body.manager-view #filters button b{font-size:17px;gap:1px;color:#202e26}
body.manager-view #filters button span{font-size:15px}
body.manager-view #filters button small{font-size:13px}
body.manager-view #adminDashboardHint{order:4;display:flex;justify-content:center;align-items:center;background:#e1f1f8;color:#31596c;border-radius:10px;font-size:12px;font-weight:600;min-height:40px;margin:10px 0 0;padding:8px}
body.manager-view main>footer{display:none}

/* Remove empty status space and restore the mockup's visible summary dividers. */
body.manager-view #message:empty{display:none;margin:0;padding:0}
body.manager-view #adminDriverView{padding:0!important;min-height:0}
body.manager-view #profile .settlement-stats button:nth-child(odd){border-right:1px solid #dfe6e1}
body.manager-view #profile .settlement-stats button:nth-child(-n+2){border-bottom:1px solid #dfe6e1}
body.manager-view #deliveryTypes.with-pickup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#deliveryTypes.with-pickup button{min-width:0;padding:10px 4px;font-size:14px;gap:4px;flex-wrap:wrap}
#openPickupOrders{background:#fff4da;color:#795a20;border:1px solid #d9be7c}
#openPickupOrders b{border-radius:20px;background:#fff;padding:2px 7px;font-size:13px}
.pickup-orders-modal[open]{display:flex;flex-direction:column;overflow:hidden}
.pickup-orders-modal iframe{border:0;width:100%;flex:1;min-height:0;background:#f5f8f5}
.pickup-orders-modal.pickup-inner-open>.fee-dialog-head{display:none}

body.manager-view #pickupFilters{order:3;display:grid;grid-template-columns:1fr;gap:7px;padding:0;margin:0;border:0;background:transparent;overflow:visible}
body.manager-view #pickupFilters button{display:grid;grid-template-columns:30px minmax(0,1fr) auto 12px;gap:9px;align-items:center;min-height:54px;padding:9px 12px;border:1px solid #dce4de;border-radius:10px;background:#fff;color:#234837;box-shadow:none;text-align:left}
body.manager-view #pickupFilters button span{font-size:14px;font-weight:700}
body.manager-view #pickupFilters button b{display:flex;align-items:baseline;gap:3px;font-size:20px}
body.manager-view #pickupFilters button small{font-size:12px}
body.manager-view #pickupFilters button:before{content:'□';display:grid;place-items:center;width:29px;height:29px;background:#edf2ed;border-radius:7px;color:#2d674a;font-size:20px}
body.manager-view #pickupFilters button.status-1:before{content:'≡'}
body.manager-view #pickupFilters button.status-2:before{content:'◇';background:#eaf1fb;color:#315f92}
body.manager-view #pickupFilters button.status-3:before{content:'➜';background:#eaf1fb;color:#315f92}
body.manager-view #pickupFilters button.status-4:before{content:'✓'}
body.manager-view #pickupFilters button:after{content:'›';position:static;font-size:21px;background:none;box-shadow:none;color:#698074;width:auto;height:auto}
body.manager-view #pickupFilters button:focus-visible{outline:3px solid #5e9476;outline-offset:2px}
body.manager-view #pickupFilters{gap:6px}
body.manager-view #pickupFilters button{grid-template-columns:25px minmax(0,1fr) auto 13px;gap:12px;min-height:48px;padding:8px 12px;color:#202e26;border-radius:10px}
body.manager-view #pickupFilters button:before{display:none}
body.manager-view #pickupFilters button.selected{background:white;color:#202e26;box-shadow:none}
body.manager-view #pickupFilters button b{font-size:17px;gap:1px;color:#202e26}
body.manager-view #pickupFilters button span{font-size:15px}
body.manager-view #pickupFilters button small{font-size:13px}
body.manager-view.pickup-selected #filters{display:none!important}
body.manager-view #pickupFilters[hidden]{display:none!important}
#pickupFilters svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#openPickupOrders[aria-pressed=true]{background:#214d38;color:white;border-color:#214d38}
#openPickupOrders[aria-pressed=true] b{color:#214d38}

/* Same zero-hidden red count badges as the main admin menu. */
body.manager-view :is(#deliveryTypes,#filters,#pickupFilters) button{position:relative;overflow:visible}
body.manager-view :is(#filters,#pickupFilters) button{grid-template-columns:25px minmax(0,1fr) 13px}
body.manager-view #profile .settlement-stats button{position:relative}
body.manager-view :is(#deliveryTypes,#filters,#pickupFilters,#profile) button .delivery-count-badge{position:absolute;top:-7px;right:-5px;display:flex!important;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 5px;margin:0!important;box-sizing:border-box;border:2px solid #fff;border-radius:20px;background:#d83232!important;color:#fff!important;font-size:12px!important;font-weight:800;line-height:1!important;box-shadow:0 1px 4px #0002;pointer-events:none;text-decoration:none!important;z-index:2}
body.manager-view #profile .settlement-stats button .delivery-count-badge{top:5px;right:5px}
body.manager-view :is(#deliveryTypes,#filters,#pickupFilters,#profile) button .delivery-count-badge[hidden]{display:none!important}
