
/* Dispatches / Sales & Buys — medium-priority presentation pass only */
body:has(#dispatchesTab.active) .top-company-bar{display:none!important}
body:has(#dispatchesTab.active) .main-content{background:#f3f7fb!important}

/* Register panel/table consistency */
#dispatchesTab .table-container{
  background:#fff!important;border:1px solid #dfe7f0!important;border-radius:10px!important;
  box-shadow:0 3px 12px rgba(15,23,42,.035)!important;overflow-x:auto!important;
}
#dispatchesTab table{font-size:10.5px!important}
#dispatchesTab th{
  padding:9px 7px!important;background:#dfe9f4!important;color:#172554!important;
  font-size:9.8px!important;font-weight:650!important;border-bottom:1px solid #cbd8e6!important;white-space:nowrap!important;
}
#dispatchesTab td{
  padding:8px 7px!important;color:#334155!important;border-bottom:1px solid #edf2f7!important;
  vertical-align:middle!important;white-space:nowrap!important;
}
#dispatchesTab tbody tr:hover{background:#f8fbff!important}

/* Type/status readability */
#dispatchesTab .badge{
  padding:4px 8px!important;border-radius:999px!important;font-size:9.3px!important;font-weight:600!important;
}

/* Actions stay on one line */
#dispatchesTab td:last-child{min-width:135px!important;white-space:nowrap!important}
#dispatchesTab td:last-child .btn,#dispatchesTab td:last-child button{
  height:29px!important;min-height:29px!important;padding:0 8px!important;margin:0 3px 0 0!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border-radius:6px!important;font-size:9.3px!important;font-weight:600!important;white-space:nowrap!important;
}
#dispatchesTab td:last-child .btn-primary{background:#eff6ff!important;color:#2563eb!important;border:1px solid #bfdbfe!important}
#dispatchesTab td:last-child .btn-warning{background:#fff7e6!important;color:#b66b00!important;border:1px solid #fde3a7!important}
#dispatchesTab td:last-child .btn-danger{background:#fff1f2!important;color:#dc2626!important;border:1px solid #fecdd3!important}

/* Pricing / dispatch sub-screen modal finishing, without changing handlers */
#dispatchModal .modal-content,#pricingModal .modal-content{
  border:1px solid #dce6f0!important;border-radius:13px!important;
  box-shadow:0 18px 55px rgba(15,23,42,.18)!important;
}
#dispatchModal label,#pricingModal label{
  color:#334155!important;font-size:10.5px!important;font-weight:600!important;
}
#dispatchModal .form-control,#pricingModal .form-control{
  min-height:36px!important;border:1px solid #d8e2ee!important;border-radius:7px!important;
  font-size:11px!important;box-shadow:none!important;
}
#dispatchModal .btn,#pricingModal .btn{
  min-height:36px!important;border-radius:7px!important;font-size:10.5px!important;font-weight:600!important;
}
