.delivery-shell{display:grid;gap:14px}
.delivery-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.delivery-tabs{display:flex;gap:6px;flex-wrap:wrap}
.delivery-tabs button{border:1px solid var(--line);background:#0c1014;color:#aeb6c0;border-radius:12px;padding:9px 12px}
.delivery-tabs button.active{background:#171d24;color:#fff;border-color:#46515e}
.delivery-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.delivery-summary article{padding:12px;border:1px solid var(--line);border-radius:14px;background:#0c1014;display:grid;gap:5px}
.delivery-summary span{font-size:10px;color:var(--muted);text-transform:uppercase}
.delivery-summary strong{font-size:20px}
.delivery-list{display:grid;gap:10px}
.delivery-card{border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,#11161c,#0c1014);padding:14px;display:grid;gap:12px}
.delivery-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.delivery-head h3{margin:0;font-size:15px}
.delivery-status{white-space:nowrap;border:1px solid #303944;background:#151b22;padding:6px 9px;border-radius:999px;font-size:10px}
.delivery-status.pending{color:#e7bd65}.delivery-status.accepted{color:#76a9ef}.delivery-status.in_transit{color:#71c5e8}
.delivery-status.delivered{color:#7dd69b}.delivery-status.failed,.delivery-status.cancelled{color:#ee8f8f}
.delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.delivery-field{padding:9px 10px;border:1px solid #252d36;border-radius:12px;background:#0a0e12;min-width:0}
.delivery-field span{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}
.delivery-field strong,.delivery-field a{font-size:12px;color:#e6ebf0;word-break:break-word}
.delivery-actions{display:flex;gap:7px;flex-wrap:wrap}
.delivery-actions button,.delivery-actions a{min-height:40px;border-radius:11px;padding:9px 12px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.delivery-manager{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#0d1217}
.delivery-manager-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.delivery-manager label{display:grid;gap:6px;color:#9da7b1;font-size:11px}
.delivery-empty{padding:24px;border:1px dashed #303945;border-radius:16px;color:var(--muted);text-align:center}
body[data-role="courier"] .sidebar .side-status{display:none}
body[data-role="courier"] #page-kicker{display:none}
body[data-role="courier"] .delivery-actions button,body[data-role="courier"] .delivery-actions a{flex:1 1 45%;min-height:48px}
@media(max-width:820px){
  .delivery-summary{grid-template-columns:1fr 1fr}
  .delivery-grid{grid-template-columns:1fr 1fr}
  .delivery-manager-grid{grid-template-columns:1fr}
}
@media(max-width:520px){.delivery-grid{grid-template-columns:1fr}}

/* NOZZHIK_V0585_DIRECT_DELIVERY_UI */
#delivery-create-form input,
#delivery-create-form select,
#delivery-create-form textarea{
  width:100%;
  min-width:0;
}
@media(max-width:820px){
  #delivery-create-form{
    padding:14px;
  }
  #delivery-create-form .delivery-manager-grid{
    grid-template-columns:1fr;
  }
}

