/* Рейсы → Доставка. Карточки и колонки берутся из Planning (core-app.css), здесь только добавки. */
.delivery-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin:0 0 14px}
.delivery-title h2{margin:0;font-size:20px;color:#152239}
.delivery-title span{display:block;margin-top:4px;color:#67758a;font-size:12px}
.delivery-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.delivery-tools input[type=date]{min-height:38px;border:1px solid #d8e1ec;border-radius:9px;padding:0 10px;font:inherit;font-size:13px;color:#152239;background:#fff}
.delivery-hint{margin:0 0 12px;padding:10px 14px;border:1px dashed #c9d4e2;border-radius:10px;color:#526176;font-size:13px;background:#fff}
.delivery-lane.hub{background:#f3f8f4;border-color:#cfe3d4}
.delivery-lane.off{opacity:.6}
.delivery-lane-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.delivery-state{min-height:26px;padding:0 9px;border:0;border-radius:999px;font-size:11px;font-weight:700;cursor:pointer}
.delivery-state.s-ok{background:#e3f2e8;color:#1e6b3a}
.delivery-state.s-reserve{background:#eef1f5;color:#3d4a5c}
.delivery-state.s-stop{background:#fdecec;color:#9b1c1c}
.delivery-state.s-service{background:#fff1e0;color:#8a4200}
.delivery-warn{margin-top:8px;padding:6px 8px;border-radius:8px;font-size:11px;font-weight:700}
.delivery-warn.bad{background:#fdecec;color:#9b1c1c}
.delivery-warn.warn{background:#fff1e0;color:#8a4200}
.delivery-warn.good{background:#e3f2e8;color:#1e6b3a}
.delivery-address{margin-top:4px;font-size:11px;color:#152239}
.delivery-address.missing{color:#9b1c1c;font-weight:600}
/* Чем выгружать — маленькая пометка, только когда нужна (17.11.2026) */
.planning-meta .delivery-eq{font-weight:700}
.planning-meta .delivery-eq.eq-forklift{background:#fff1e0;color:#8a4200}
.planning-meta .delivery-eq.eq-ramp{background:#e3f2e8;color:#1e6b3a}
.planning-meta .delivery-eq.eq-tail_lift{background:#fdecec;color:#9b1c1c}
.delivery-wrap .planning-card-actions .delivery-eq-btn{margin-right:auto}
.delivery-card-note{margin-top:6px;padding:3px 8px;border-radius:6px;background:#fff1e0;color:#8a4200;font-size:11px;font-weight:600}

/* Кнопка «Доставлен» на карточке (16.11.2026) */
.delivery-wrap .delivery-done{margin-top:6px;width:100%;padding:5px 8px;border:1px solid #16a34a;border-radius:6px;background:#f0fdf4;color:#15803d;font-weight:600;cursor:pointer}
.delivery-wrap .delivery-done:hover:not(:disabled){background:#dcfce7}
.delivery-wrap .delivery-done:disabled{opacity:.5;cursor:default}

/* Водитель машины и кнопка WhatsApp (17.11.2026) */
.delivery-driver{display:flex;gap:6px;margin-top:8px}
.delivery-driver select{flex:1;min-width:0;min-height:30px;border:1px solid #d8e1ec;border-radius:8px;padding:0 8px;font:inherit;font-size:12px;color:#152239;background:#fff}
.delivery-wa{min-height:30px;padding:0 10px;border:1px solid #25d366;border-radius:8px;background:#f0fdf4;color:#15803d;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.delivery-wa:disabled{opacity:.45;cursor:default}
.delivery-modal-back{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.45)}
.delivery-modal{width:min(560px,100%);max-height:100%;display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:14px;background:#fff;box-shadow:0 20px 50px rgba(15,23,42,.25)}
.delivery-modal-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.delivery-modal-head h3{margin:0;font-size:16px;color:#152239}
.delivery-modal-x{border:0;background:none;font-size:24px;line-height:1;color:#67758a;cursor:pointer}
.delivery-modal textarea{flex:1;min-height:240px;width:100%;box-sizing:border-box;border:1px solid #d8e1ec;border-radius:10px;padding:10px;font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;color:#152239;resize:vertical}
.delivery-modal-btns{display:flex;flex-wrap:wrap;gap:8px}
.delivery-modal-status{min-height:16px;font-size:12px;color:#526176}
.delivery-modal .access-button.primary{background:#175fae;border-color:#175fae;color:#fff}
.delivery-modal .access-button:disabled{opacity:.45;cursor:default}
.delivery-driver select,.delivery-driver .delivery-wa{height:32px;min-height:32px}
.delivery-modal-btns{align-items:center}
.delivery-modal-btns button{width:auto;height:36px;min-height:36px;padding:0 14px;font-size:12px;box-shadow:none}
