.ddm-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.ddm-nav a{background:#fff;border:1px solid #dfe5ea;border-radius:8px;padding:8px 12px;text-decoration:none}.ddm-cards .ddm-card{background:#fff;border-radius:12px;padding:18px;margin-bottom:15px;border:1px solid #edf0f2}.ddm-card strong{display:block;font-size:28px;margin-top:8px}.ddm-driver-row{padding:10px;border-bottom:1px solid #eee}.ddm-map-fallback{display:flex;align-items:center;justify-content:center;height:100%;padding:20px}.ddm-order-picker{max-height:260px;overflow:auto;border:1px solid #ddd;padding:10px;border-radius:8px}.ddm-order-picker label{display:block;padding:6px}.ddm-driver-head{display:flex;justify-content:space-between;align-items:center}.ddm-route-summary{background:#eef5ff;padding:12px;border-radius:10px;margin-bottom:15px;display:flex;gap:20px;flex-wrap:wrap}.ddm-stop-list{display:flex;flex-direction:column;gap:10px}.ddm-stop-card{position:relative;display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid #e3e8ec;border-radius:12px;padding:14px;color:#263238;text-decoration:none!important}.ddm-stop-seq{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#e8eef5;font-weight:700}.ddm-status{font-size:12px;padding:4px 8px;border-radius:20px;background:#eef2f5}.status-moving{border-right:4px solid #ff9800}.status-arrived{border-right:4px solid #2196f3}.status-delivered{border-right:4px solid #4caf50;opacity:.8}.status-failed{border-right:4px solid #f44336;opacity:.8}.ddm-hold-action,.ddm-hold-submit{position:relative;overflow:hidden;isolation:isolate}.ddm-hold-action:before,.ddm-hold-submit:before{content:"";position:absolute;z-index:-1;inset:0 auto 0 0;width:var(--ddm-progress,0%);background:rgba(255,255,255,.25);transition:width 3s linear}.ddm-hold-action.ddm-holding:before,.ddm-hold-submit.ddm-holding:before{width:100%}.ddm-signature-wrap{background:#fff;border:2px dashed #adb5bd;border-radius:10px;overflow:hidden}.ddm-signature-wrap canvas{width:100%;height:220px;touch-action:none;display:block}.ddm-order-status-row{padding:6px 0;border-bottom:1px solid #eee}.ddm-map-links{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:768px){.ddm-stop-card{grid-template-columns:38px 1fr}.ddm-status{grid-column:2}.ddm-driver-head{display:block}}
.ddm-live-map{height:480px;border-radius:12px;background:#eef2f5;overflow:hidden}.ddm-map-filters{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin-top:14px;padding:12px 14px;border:1px solid #e3e8ec;border-radius:10px;background:#fff}.ddm-map-filters label{margin:0;font-weight:600;cursor:pointer}.ddm-map-filters input{margin-left:5px}.ddm-filter-icon{font-size:19px;vertical-align:middle}.ddm-map-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:12px}.ddm-map-legend span{display:flex;align-items:center;gap:5px}.ddm-dot,.ddm-mini-status{display:inline-block;width:10px;height:10px;border-radius:50%}.ddm-dot-delivered,.ddm-mini-status.status-delivered{background:#2e7d32}.ddm-dot-active,.ddm-mini-status.status-active{background:#1976d2}.ddm-dot-pending,.ddm-mini-status.status-pending{background:#f9a825}.ddm-dot-failed,.ddm-mini-status.status-failed{background:#c62828}.ddm-dot-none,.ddm-mini-status.status-none{background:#78909c}.ddm-leaflet-icon-wrap{background:transparent;border:0}.ddm-map-icon{width:38px;height:38px;border-radius:50% 50% 50% 8px;transform:rotate(-45deg);display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid #78909c;box-shadow:0 2px 7px rgba(0,0,0,.28)}.ddm-map-icon span{font-size:20px;line-height:1;transform:rotate(45deg)}.ddm-map-icon.status-delivered{border-color:#2e7d32}.ddm-map-icon.status-active{border-color:#1976d2}.ddm-map-icon.status-pending{border-color:#f9a825}.ddm-map-icon.status-failed{border-color:#c62828}.ddm-map-icon.status-none{border-color:#78909c}.ddm-map-icon-vehicle{width:44px;height:44px}.ddm-map-icon-vehicle span{font-size:24px}.ddm-map-popup{min-width:210px;line-height:1.8}.ddm-popup-stops{margin-top:8px;border-top:1px solid #eee;padding-top:6px;max-height:180px;overflow:auto}.ddm-popup-stops>div{white-space:nowrap}.ddm-mini-status{margin-left:6px}@media(max-width:768px){.ddm-live-map{height:390px}.ddm-map-filters{gap:12px}.ddm-map-filters label{width:calc(50% - 8px)}}


.ddm-location-picker-map{height:480px;border:1px solid #dfe5ea;border-radius:10px;background:#eef2f5;overflow:hidden}.ddm-picked-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.ddm-picked-coordinates>div{background:#f7f9fb;border:1px solid #e4e9ed;border-radius:8px;padding:10px 12px;direction:ltr;text-align:left}.ddm-picked-coordinates span{display:block;color:#78909c;font-size:11px}.ddm-picked-coordinates strong{display:block;font-size:16px;margin-top:3px}.ddm-map-picker-btn i{margin-left:5px}@media(max-width:768px){.ddm-location-picker-map{height:370px}.ddm-picked-coordinates{grid-template-columns:1fr}.modal-dialog.modal-lg{margin:10px}}

/* v0.1.4 standalone operational mobile portal */
.ddm-operational-body{margin:0;background:#f3f6f9;color:#263238;font-family:Tahoma,Arial,sans-serif;direction:rtl}.ddm-operational-body *{box-sizing:border-box}.ddm-operational-main{width:min(100%,980px);margin:0 auto;padding:16px}.ddm-operational-topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e2e8ee;padding:10px 16px;box-shadow:0 2px 10px rgba(0,0,0,.04)}.ddm-operational-topbar strong,.ddm-operational-topbar small{display:block}.ddm-operational-topbar small{color:#78909c;margin-top:3px;direction:ltr;text-align:right}.ddm-auth-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px}.ddm-auth-card{width:min(100%,430px);background:#fff;border:1px solid #e1e7ec;border-radius:16px;padding:24px;box-shadow:0 14px 40px rgba(38,50,56,.09)}.ddm-auth-brand{text-align:center;margin-bottom:18px}.ddm-auth-brand strong{display:block;font-size:22px}.ddm-auth-brand span{display:block;color:#78909c;margin-top:6px}.ddm-company-chip{background:#eef5ff;border:1px solid #d8e8ff;border-radius:10px;padding:10px 12px;margin-bottom:14px;text-align:center;font-weight:700}.ddm-auth-note{margin-top:16px;color:#78909c;font-size:12px;line-height:1.8;text-align:center}.ddm-small{font-size:12px}.ddm-operational-body .form-group{margin-bottom:14px}.ddm-operational-body label{display:block;font-weight:700;margin-bottom:6px}.ddm-operational-body .form-control{display:block;width:100%;min-height:42px;border:1px solid #cfd8dc;border-radius:8px;background:#fff;padding:9px 11px;font:inherit;color:#263238;outline:none}.ddm-operational-body textarea.form-control{min-height:88px}.ddm-operational-body .form-control:focus{border-color:#78909c;box-shadow:0 0 0 3px rgba(120,144,156,.12)}.ddm-operational-body .input-lg{min-height:50px;font-size:16px}.ddm-operational-body .btn{display:inline-block;border:1px solid transparent;border-radius:8px;padding:9px 14px;text-decoration:none;cursor:pointer;font:inherit;text-align:center;background:#eceff1;color:#263238}.ddm-operational-body .btn-primary{background:#1565c0;color:#fff;border-color:#1565c0}.ddm-operational-body .btn-info{background:#0277bd;color:#fff;border-color:#0277bd}.ddm-operational-body .btn-warning{background:#f9a825;color:#fff;border-color:#f9a825}.ddm-operational-body .btn-danger{background:#c62828;color:#fff;border-color:#c62828}.ddm-operational-body .btn-default{background:#fff;border-color:#cfd8dc;color:#455a64}.ddm-operational-body .btn-lg{padding:12px 16px;font-size:16px}.ddm-operational-body .btn-sm{padding:6px 10px;font-size:12px}.ddm-operational-body .btn-block{display:block;width:100%}.ddm-operational-body .alert{padding:11px 13px;border-radius:9px;margin:0 0 14px;border:1px solid transparent;line-height:1.8}.ddm-operational-body .alert-success{background:#e8f5e9;border-color:#c8e6c9}.ddm-operational-body .alert-danger{background:#ffebee;border-color:#ffcdd2}.ddm-operational-body .alert-warning{background:#fff8e1;border-color:#ffecb3}.ddm-operational-body .alert-info{background:#e3f2fd;border-color:#bbdefb}.ddm-operational-body .panel_s{background:#fff;border:1px solid #e1e7ec;border-radius:12px;margin:14px 0}.ddm-operational-body .panel-body{padding:16px}.ddm-operational-body .row{display:flex;flex-wrap:wrap;margin:0 -6px}.ddm-operational-body [class*="col-"]{padding:0 6px;min-width:0}.ddm-operational-body .col-xs-6{width:50%}.ddm-operational-body .col-sm-2{width:16.666%}.ddm-operational-body .col-sm-3{width:25%}.ddm-operational-body .col-sm-4{width:33.333%}.ddm-operational-body .text-muted{color:#78909c}.ddm-operational-body .text-success{color:#2e7d32}.ddm-operational-body .text-danger{color:#c62828}.ddm-operational-body .label{display:inline-block;border-radius:20px;padding:3px 7px;font-size:11px;background:#eceff1}.ddm-operational-body .label-info{background:#e3f2fd}.ddm-operational-body .m-top10{margin-top:10px}.ddm-operational-body .m-top15{margin-top:15px}.ddm-operational-body .m-top20{margin-top:20px}.ddm-operational-body .m-bottom15{margin-bottom:15px}.ddm-operational-body .pull-left{float:left}.ddm-operational-body .clearfix:after{content:"";display:block;clear:both}.ddm-history-card,.ddm-wizard-card,.ddm-store-summary,.ddm-order-box{background:#fff;border:1px solid #e1e7ec;border-radius:12px;padding:14px;margin-bottom:12px}.ddm-history-times,.ddm-line-result,.ddm-total-strip{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;margin-top:8px}.ddm-stepper{display:flex;gap:6px;overflow:auto;padding:8px 0 12px}.ddm-stepper span{white-space:nowrap;background:#eceff1;border-radius:20px;padding:6px 10px;font-size:11px}.ddm-stepper span.active{background:#1565c0;color:#fff}.ddm-order-line{border:1px solid #e1e7ec;border-radius:10px;padding:12px;margin-bottom:10px}.ddm-order-line-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}@media(max-width:700px){.ddm-operational-main{padding:10px}.ddm-auth-card{padding:18px}.ddm-operational-body .col-sm-2,.ddm-operational-body .col-sm-3,.ddm-operational-body .col-sm-4{width:100%}.ddm-operational-body .ddm-driver-head{display:flex;gap:8px;align-items:flex-start}.ddm-operational-body .ddm-driver-head h3{margin:0}.ddm-operational-body .ddm-stop-card{grid-template-columns:38px 1fr}.ddm-operational-body .ddm-status{grid-column:2}.ddm-operational-topbar{padding:9px 12px}}

/* v0.2.0 Persian date picker, order summary and read-only preview */
.ddm-jalali-date{cursor:pointer;background:#fff!important}
.ddm-jalali-picker{position:absolute;z-index:99999;width:292px;background:#fff;border:1px solid #d9e1ea;border-radius:14px;box-shadow:0 14px 40px rgba(15,23,42,.18);padding:12px;direction:rtl}
.ddm-jp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.ddm-jp-head button{border:0;background:#f1f5f9;border-radius:8px;width:34px;height:34px;font-size:22px;line-height:28px}.ddm-jp-week,.ddm-jp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}.ddm-jp-week span{font-size:12px;color:#64748b;padding:5px 0}.ddm-jp-days button{border:0;background:transparent;border-radius:8px;height:34px}.ddm-jp-days button:hover{background:#eff6ff}.ddm-jp-days button.active{background:#0f62fe;color:#fff}.ddm-jp-empty{height:34px}.ddm-jp-foot{display:flex;justify-content:space-between;margin-top:10px;padding-top:8px;border-top:1px solid #eef2f7}
.ddm-invoice-summary .ddm-summary-totals td{padding:10px}.ddm-invoice-summary .ddm-grand-total{font-size:16px;background:#f8fafc}.ddm-preview-banner{font-size:15px}.ddm-production-order .panel-heading{font-size:14px}.ddm-order-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ddm-order-totals>div{background:#f8fafc;border:1px solid #e2e8f0;padding:12px;border-radius:10px;display:flex;justify-content:space-between;gap:8px}.ddm-order-totals strong{white-space:nowrap}
@media(max-width:767px){.ddm-order-totals{grid-template-columns:1fr 1fr}.ddm-jalali-picker{width:calc(100vw - 24px);left:12px!important}.ddm-production-order form{display:block!important}.ddm-production-order form .form-control{margin-bottom:6px}}

/* v0.2.6 order pricing, invoice builder and order-list UI */
.ddm-quick-order{background:#0f62fe!important;color:#fff!important;border-color:#0f62fe!important;font-weight:700;box-shadow:0 4px 12px rgba(15,98,254,.18)}
.ddm-quick-order i{margin-left:5px}.ddm-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 22px}.ddm-settings-card{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px 14px;border:1px solid #dfe6ed;border-radius:12px;background:#fff;text-decoration:none!important;color:#263238!important;transition:.15s ease}.ddm-settings-card:hover{border-color:#90caf9;box-shadow:0 5px 16px rgba(15,23,42,.07);transform:translateY(-1px)}.ddm-settings-card i{width:34px;height:34px;border-radius:9px;background:#eef5ff;color:#0f62fe;display:flex;align-items:center;justify-content:center;font-size:16px}.ddm-settings-card strong{font-size:13px}.ddm-invoice-builder{border:1px solid #dfe6ed;border-radius:12px;padding:12px;margin-top:12px;background:#fff}.ddm-invoice-builder-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.ddm-invoice-builder-title small{color:#64748b}.ddm-total-highlight{background:#eef6ff!important;border-color:#bfdbfe!important}.ddm-inline-form{display:inline-block;margin:2px}.ddm-order-actions{min-width:210px}.ddm-order-actions .btn{margin:2px}.ddm-summary-actions .btn,.ddm-summary-actions form{margin:3px 0 3px 4px}.ddm-modal-overlay{position:fixed;z-index:100000;inset:0;background:rgba(15,23,42,.48);display:flex;align-items:center;justify-content:center;padding:18px}.ddm-decision-modal{width:min(100%,520px);background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.28);padding:22px;line-height:1.9}.ddm-decision-modal h4{font-size:18px;margin:0 0 12px}.ddm-decision-actions{display:flex;gap:10px;justify-content:flex-start;margin-top:18px;flex-wrap:wrap}.ddm-decision-restriction{padding:9px 11px;border-radius:9px;background:#fff8e1;border:1px solid #ffe082;color:#795548}.ddm-orders-table td{vertical-align:middle!important}.ddm-orders-table .label{white-space:normal;line-height:1.7}.ddm-company-settings-title{display:flex;justify-content:space-between;align-items:center;gap:10px}
@media(max-width:900px){.ddm-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ddm-settings-grid{grid-template-columns:1fr}.ddm-invoice-builder-title{display:block}.ddm-decision-actions .btn{width:100%}.ddm-order-actions{min-width:170px}}

/* v0.2.6 invoice-entry reliability and full-width order list */
#ddm-new-order{max-width:none}.ddm-orders-table-full{min-width:980px}.ddm-line-warning{min-height:18px;margin-top:6px}.ddm-price-label[readonly],.ddm-pack-label[readonly]{background:#f8fafc!important;font-weight:700}.ddm-order-line .bootstrap-select>.dropdown-toggle{min-height:38px}.ddm-order-line .bootstrap-select .dropdown-menu li a{white-space:normal;line-height:1.7}.ddm-order-line .ddm-line-result{padding:9px 10px;background:#f8fafc;border-radius:8px;margin-top:10px}.ddm-order-line .ddm-line-total{font-size:15px}.ddm-orders-table-full th,.ddm-orders-table-full td{white-space:nowrap}

/* v0.3.3 distributor hamburger navigation */
.ddm-hamburger{width:44px;height:44px;border:0;border-radius:12px;background:#1565c0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer;box-shadow:0 6px 18px rgba(21,101,192,.22)}
.ddm-hamburger span{display:block;width:22px;height:2px;border-radius:2px;background:#fff}
.ddm-drawer-backdrop{position:fixed;inset:0;background:rgba(20,32,44,.42);z-index:998;backdrop-filter:blur(1px)}
.ddm-driver-drawer{position:fixed;top:0;right:0;width:min(86vw,340px);height:100vh;background:#fff;z-index:999;transform:translateX(105%);transition:transform .22s ease;box-shadow:-12px 0 35px rgba(20,32,44,.18);display:flex;flex-direction:column}
.ddm-driver-drawer.open{transform:translateX(0)}
.ddm-drawer-open{overflow:hidden}
.ddm-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 18px;border-bottom:1px solid #e7edf2;background:linear-gradient(135deg,#0d47a1,#1976d2);color:#fff}
.ddm-drawer-head strong,.ddm-drawer-head small{display:block}.ddm-drawer-head small{margin-top:5px;opacity:.82}
.ddm-drawer-close{width:38px;height:38px;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(255,255,255,.12);color:#fff;font-size:28px;line-height:30px;cursor:pointer}
.ddm-drawer-nav{padding:12px;overflow:auto}
.ddm-drawer-nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;margin-bottom:6px;border-radius:11px;color:#33454f;text-decoration:none;font-weight:700;border:1px solid transparent}
.ddm-drawer-nav a:hover,.ddm-drawer-nav a.active{background:#eef5ff;border-color:#d5e7ff;color:#0d47a1}
.ddm-drawer-nav .ddm-menu-logout{margin-top:16px;color:#b71c1c;border-top:1px solid #eef1f3;border-radius:0;padding-top:18px}
.ddm-menu-icon{width:28px;text-align:center;font-size:20px;font-weight:400}
.ddm-history-section{margin:16px 0 24px}.ddm-history-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.ddm-history-section-head h4{margin:0}.ddm-history-section-head small{display:block;color:#78909c;margin-top:4px}.ddm-readonly-chip{font-size:11px;background:#eef2f5;border-radius:20px;padding:5px 9px;color:#607d8b}
.ddm-request-card{background:#fff;border:1px solid #e1e7ec;border-radius:12px;padding:14px;margin-bottom:10px}.ddm-request-card-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ddm-request-status{font-size:11px;border-radius:20px;padding:4px 8px}.ddm-request-status.status-pending{background:#fff3cd;color:#7a5b00}.ddm-request-status.status-approved{background:#e8f5e9;color:#1b5e20}.ddm-request-status.status-rejected{background:#ffebee;color:#b71c1c}
.ddm-profile-card{background:#fff;border:1px solid #e1e7ec;border-radius:16px;padding:20px;margin-top:16px;box-shadow:0 8px 24px rgba(38,50,56,.05)}.ddm-profile-avatar{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e3f2fd;color:#0d47a1;font-size:28px;font-weight:700;margin:0 auto 10px}.ddm-profile-card>h3{text-align:center;margin:0 0 18px}.ddm-profile-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #eef1f3}.ddm-profile-row span{color:#78909c}.ddm-profile-row strong{text-align:left}
@media(min-width:900px){.ddm-driver-drawer{width:360px}}


/* v0.3.5 - distributor navigation and delivery acknowledgement */
.ddm-delivery-acknowledgement{
  background:#f8fafc;
  border:1px solid #d9e2ec;
  border-radius:12px;
  padding:14px 16px;
  margin:0 0 14px;
  line-height:2;
  font-size:15px;
}
.ddm-map-links{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.ddm-navigation-link{min-width:140px;text-align:center}
@media (max-width:768px){
  .ddm-navigation-link{width:100%;padding:12px 16px;font-size:16px}
  .ddm-delivery-acknowledgement{font-size:14px}
}

/* v0.3.6 - sales agent, production progress and POS collection */
.ddm-agent-hero,.ddm-production-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #e1e7ec;border-radius:16px;padding:18px;margin-bottom:16px}.ddm-agent-hero h3,.ddm-production-head h4{margin:0 0 5px}.ddm-agent-hero p,.ddm-production-head small{margin:0;color:#78909c}.ddm-agent-actions,.ddm-production-actions{display:flex;gap:7px;flex-wrap:wrap}.ddm-section-head,.ddm-agent-store-head,.ddm-production-card-title,.ddm-production-order-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ddm-chip{padding:4px 9px;border-radius:20px;background:#eef5ff;color:#0d47a1;font-size:11px}.ddm-card-actions{display:flex;gap:6px;flex-wrap:wrap}
.ddm-production-card,.ddm-production-order-card{background:#fff;border:1px solid #dfe6ed;border-radius:14px;padding:14px;margin:12px 0}.ddm-production-card-title small{display:block;color:#78909c;margin-top:4px}.ddm-production-order-head{background:#f8fafc;border-radius:10px;padding:11px;margin-bottom:10px}.ddm-production-order-head>div span{display:inline-block;margin-right:12px;color:#607d8b}.ddm-production-item{border-top:1px solid #edf1f4;padding:14px 0}.ddm-production-item:first-of-type{border-top:0}.ddm-production-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.ddm-production-numbers.three{grid-template-columns:repeat(3,minmax(0,1fr))}.ddm-production-numbers>div{background:#f8fafc;border:1px solid #e7edf2;border-radius:10px;padding:9px;display:flex;justify-content:space-between;gap:8px}.ddm-production-numbers span{color:#78909c}.ddm-production-form{display:grid;grid-template-columns:180px 160px minmax(180px,1fr) auto;gap:8px;align-items:end}.ddm-prod-status{font-size:11px;border-radius:20px;padding:5px 9px;background:#eef2f5}.ddm-prod-status.status-completed{background:#e8f5e9;color:#1b5e20}.ddm-prod-status.status-partial{background:#fff3e0;color:#e65100}.ddm-prod-status.status-in_progress{background:#e3f2fd;color:#0d47a1}.ddm-prod-status.status-pending{background:#f3f4f6;color:#546e7a}
.ddm-money-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.ddm-money-card{border:1px solid #dfe6ed;border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:6px}.ddm-money-card span{color:#607d8b}.ddm-money-card strong{font-size:22px;direction:ltr;text-align:right}.ddm-money-card small{color:#78909c}.ddm-money-card.expected{border-color:#bbdefb;background:#f4f9ff}.ddm-money-card.registered{border-color:#c8e6c9;background:#f4fbf5}.ddm-money-card.remaining{border-color:#ffe0b2;background:#fffaf2}.ddm-pos-status-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.ddm-pos-status-strip span{padding:7px 10px;border-radius:9px;background:#f5f7f9}.ddm-selected-order-box,.ddm-pos-receipts,.ddm-more-receipts{border-top:1px solid #e7edf2;padding-top:13px;margin-top:13px}.ddm-pos-receipt-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;border:1px solid #edf1f4;border-radius:10px;margin-bottom:7px;background:#fff}.ddm-pos-receipt-item strong{font-size:16px;display:block}.ddm-pos-receipt-item small{display:block;color:#78909c;margin-top:3px}.ddm-receipt-status{padding:5px 9px;border-radius:20px;font-size:11px}.ddm-receipt-status.status-pending{background:#fff3cd;color:#7a5b00}.ddm-receipt-status.status-approved{background:#e8f5e9;color:#1b5e20}.ddm-receipt-status.status-rejected{background:#ffebee;color:#b71c1c}
@media(max-width:760px){.ddm-money-grid,.ddm-production-numbers,.ddm-production-numbers.three{grid-template-columns:1fr}.ddm-production-form{grid-template-columns:1fr}.ddm-agent-actions,.ddm-production-actions{width:100%}.ddm-agent-actions .btn,.ddm-production-actions .btn{flex:1 1 auto}.ddm-pos-receipt-item{align-items:flex-start}.ddm-money-card strong{font-size:19px}}


/* v0.4.0 - read-only visit program/history */
.ddm-history-main-head{margin-bottom:14px}.ddm-date-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.ddm-date-pill{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid #dfe6ed;border-radius:12px;padding:11px 12px;color:#33454f;text-decoration:none!important}.ddm-date-pill small{color:#78909c}.ddm-date-pill.active{background:#eef5ff;border-color:#90caf9;color:#0d47a1}.ddm-future-programs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;background:#fff;border:1px solid #e1e7ec;border-radius:12px;padding:10px 12px;margin-bottom:14px}.ddm-future-programs a{padding:5px 9px;border-radius:18px;background:#f3f6f9;color:#455a64;text-decoration:none}.ddm-future-programs a.active{background:#1565c0;color:#fff}.ddm-history-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:14px}.ddm-history-stat{background:#fff;border:1px solid #e1e7ec;border-radius:13px;padding:12px;color:#37474f;text-decoration:none!important;display:flex;flex-direction:column;gap:5px}.ddm-history-stat span{font-size:12px;color:#607d8b}.ddm-history-stat strong{font-size:23px}.ddm-history-stat.active{border-color:#90caf9;background:#eef7ff;color:#0d47a1}.ddm-history-list{display:flex;flex-direction:column;gap:9px}.ddm-history-visit{display:block;background:#fff;border:1px solid #e1e7ec;border-right:4px solid #90a4ae;border-radius:13px;padding:13px 14px;color:#263238;text-decoration:none!important}.ddm-history-visit.status-delivered{border-right-color:#43a047}.ddm-history-visit.status-partial{border-right-color:#fb8c00}.ddm-history-visit.status-failed{border-right-color:#e53935}.ddm-history-visit.status-active{border-right-color:#1e88e5}.ddm-history-visit-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.ddm-history-visit-head>div{display:flex;align-items:center;gap:10px}.ddm-history-status{font-size:11px;background:#f3f6f9;border-radius:18px;padding:5px 9px}.ddm-history-address{color:#607d8b;font-size:12px;margin:8px 46px 0 0}.ddm-history-orders{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.ddm-history-orders span{font-size:11px;background:#f8fafc;border:1px solid #e8edf1;border-radius:8px;padding:5px 8px}.ddm-history-open{margin-top:10px;padding-top:9px;border-top:1px solid #edf1f4;color:#1565c0;font-size:12px;font-weight:700}.ddm-history-open span{font-size:18px;vertical-align:-1px}.ddm-history-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.ddm-history-detail-head h3{margin:7px 0 4px}.ddm-history-detail-head small{color:#78909c}.ddm-history-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ddm-history-info-card,.ddm-history-detail-section{background:#fff;border:1px solid #e1e7ec;border-radius:14px;padding:15px;margin-bottom:12px}.ddm-history-info-card{display:flex;flex-direction:column;gap:5px}.ddm-history-info-card span,.ddm-history-info-card small{color:#78909c}.ddm-history-detail-section h4{margin:0 0 13px}.ddm-history-order-card{border:1px solid #e8edf1;border-radius:12px;padding:12px;margin-bottom:9px}.ddm-history-order-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.ddm-history-order-head small{display:block;color:#78909c;margin-top:4px}.ddm-history-item-table{margin-top:11px;border:1px solid #edf1f4;border-radius:10px;overflow:hidden}.ddm-history-item-table>div{display:grid;grid-template-columns:minmax(160px,2fr) repeat(3,minmax(80px,1fr));gap:7px;padding:8px 10px;border-top:1px solid #edf1f4}.ddm-history-item-table>div:first-child{border-top:0}.ddm-history-item-table .head{background:#f8fafc;font-weight:700}.ddm-history-item-table small{display:block;color:#78909c;margin-top:3px}.ddm-timeline{position:relative;padding-right:7px}.ddm-timeline-step{position:relative;padding:0 30px 18px 0}.ddm-timeline-step:before{content:"";position:absolute;right:9px;top:17px;bottom:-4px;width:2px;background:#e2e8ee}.ddm-timeline-step:last-child:before{display:none}.ddm-timeline-dot{position:absolute;right:2px;top:5px;width:16px;height:16px;border-radius:50%;background:#cfd8dc;border:3px solid #fff;box-shadow:0 0 0 1px #cfd8dc}.ddm-timeline-step.state-complete .ddm-timeline-dot{background:#43a047;box-shadow:0 0 0 1px #43a047}.ddm-timeline-step.state-current .ddm-timeline-dot{background:#1e88e5;box-shadow:0 0 0 1px #1e88e5}.ddm-timeline-step.state-failed .ddm-timeline-dot{background:#e53935;box-shadow:0 0 0 1px #e53935}.ddm-timeline-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.ddm-timeline-title time{font-size:11px;color:#78909c}.ddm-timeline-content p{margin:5px 0;color:#607d8b;font-size:12px;line-height:1.8}.ddm-timeline-state{display:inline-block;margin-top:5px;padding:3px 7px;border-radius:14px;background:#f3f6f9;color:#78909c;font-size:10px}.state-complete .ddm-timeline-state{background:#e8f5e9;color:#1b5e20}.state-current .ddm-timeline-state{background:#e3f2fd;color:#0d47a1}.state-failed .ddm-timeline-state{background:#ffebee;color:#b71c1c}.ddm-history-final-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ddm-history-final-grid>div{background:#f8fafc;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:5px}.ddm-history-final-grid span{color:#78909c;font-size:11px}
@media(max-width:760px){.ddm-history-main-head,.ddm-history-detail-head{display:flex}.ddm-history-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ddm-history-stat:first-child{grid-column:1/-1}.ddm-history-detail-grid,.ddm-history-final-grid{grid-template-columns:1fr}.ddm-history-item-table{overflow:auto}.ddm-history-item-table>div{min-width:580px}.ddm-date-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.ddm-date-pill{padding:9px 8px}.ddm-date-pill strong{font-size:12px}.ddm-date-pill small{font-size:10px}.ddm-history-visit-head{align-items:flex-start}.ddm-history-address{margin-right:0}}

/* v0.4.1 - clean read-only store detail and stage timestamps */
.ddm-history-store-card{background:#fff;border:1px solid #e1e7ec;border-radius:16px;padding:16px;margin-bottom:12px}
.ddm-history-store-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #edf1f4}
.ddm-history-store-title>div{display:flex;flex-direction:column;gap:4px;min-width:0}.ddm-history-store-title>div>span{font-size:11px;color:#78909c}.ddm-history-store-title>div>strong{font-size:18px;line-height:1.7}
.ddm-history-status-badge{display:inline-flex;align-items:center;justify-content:center;background:#f3f6f9;color:#455a64;border-radius:20px;padding:6px 10px;font-size:11px;white-space:nowrap}
.ddm-history-store-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.ddm-history-store-meta>div{background:#f8fafc;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:0}.ddm-history-store-meta span{font-size:11px;color:#78909c}.ddm-history-store-meta strong{font-size:13px;overflow-wrap:anywhere}
.ddm-history-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.ddm-history-section-title h4{margin:0}.ddm-history-section-title>span{font-size:11px;background:#f3f6f9;border-radius:18px;padding:5px 9px;color:#607d8b}.ddm-history-section-title small{display:block;color:#78909c;margin-top:4px;font-size:11px}
.ddm-history-order-total{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.ddm-history-order-total span{font-size:10px;color:#78909c}.ddm-history-order-total strong{font-size:16px}
.ddm-history-items-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.ddm-history-item-card{background:#f8fafc;border:1px solid #edf1f4;border-radius:11px;padding:10px}.ddm-history-item-name{display:flex;justify-content:space-between;gap:10px;align-items:center;padding-bottom:8px;border-bottom:1px dashed #dde5eb}.ddm-history-item-name small{color:#78909c;font-size:11px}.ddm-history-item-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}.ddm-history-item-values>div{display:flex;flex-direction:column;gap:3px}.ddm-history-item-values span{font-size:10px;color:#78909c}.ddm-history-item-values strong{font-size:13px}
.ddm-history-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ddm-history-summary-grid>div{background:#f8fafc;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px}.ddm-history-summary-grid span{font-size:10px;color:#78909c}.ddm-history-summary-grid strong{font-size:13px}
.ddm-history-note{margin-top:10px;border-radius:10px;padding:10px 12px;background:#f5f8fa}.ddm-history-note>span{display:block;font-size:10px;color:#78909c;margin-bottom:5px}.ddm-history-note p{margin:0;line-height:1.9}.ddm-history-note.danger{background:#fff3f3}.ddm-history-note.warning{background:#fff9e8}.ddm-history-return-list{display:flex;flex-direction:column;gap:6px}.ddm-history-return-list>div{background:#fff;border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:3px}.ddm-history-return-list small{color:#78909c}
.ddm-timeline-detailed{padding-right:4px}.ddm-timeline-detailed .ddm-timeline-step{padding-right:32px;padding-bottom:12px}.ddm-timeline-detailed .ddm-timeline-content{background:#f8fafc;border:1px solid #edf1f4;border-radius:12px;padding:11px}.ddm-timeline-mainrow{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ddm-timeline-copy{min-width:0;flex:1}.ddm-timeline-copy>strong{font-size:13px}.ddm-timeline-copy p{margin:5px 0 0;color:#607d8b;font-size:11px;line-height:1.8}.ddm-timeline-timebox{min-width:92px;background:#fff;border:1px solid #e1e7ec;border-radius:9px;padding:7px 9px;display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center}.ddm-timeline-timebox span{font-size:10px;color:#78909c}.ddm-timeline-timebox strong{font-size:15px;direction:ltr}.ddm-timeline-timebox.is-empty{opacity:.65}.ddm-timeline-detailed .ddm-timeline-state{margin-top:8px}
.ddm-timeline-events{margin-top:9px;padding-top:9px;border-top:1px dashed #dce4ea;display:flex;flex-direction:column;gap:6px}.ddm-timeline-events>div{background:#fff;border-radius:8px;padding:8px;display:flex;align-items:center;justify-content:space-between;gap:10px}.ddm-timeline-events>div>div{display:flex;flex-direction:column;gap:2px}.ddm-timeline-events span,.ddm-timeline-events time{font-size:10px;color:#78909c}.ddm-timeline-events time{white-space:nowrap;direction:ltr}
.ddm-history-visit{transition:border-color .15s ease,background .15s ease}.ddm-history-visit:active{background:#f7fafc}.ddm-history-open{display:flex;align-items:center;justify-content:space-between}
@media(max-width:760px){.ddm-history-store-meta{grid-template-columns:1fr}.ddm-history-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ddm-history-order-head{align-items:center}.ddm-history-order-total strong{font-size:14px}.ddm-history-item-values{grid-template-columns:repeat(3,minmax(0,1fr))}.ddm-timeline-mainrow{gap:8px}.ddm-timeline-timebox{min-width:78px;padding:6px}.ddm-timeline-timebox strong{font-size:14px}.ddm-timeline-events>div{align-items:flex-start;flex-direction:column}.ddm-timeline-events time{align-self:flex-start}}
@media(max-width:430px){.ddm-history-summary-grid{grid-template-columns:1fr 1fr}.ddm-history-item-name{align-items:flex-start;flex-direction:column}.ddm-history-store-title{align-items:flex-start}.ddm-history-section-title{align-items:flex-start}.ddm-timeline-detailed .ddm-timeline-step{padding-right:28px}.ddm-timeline-mainrow{flex-direction:column}.ddm-timeline-timebox{width:100%;min-width:0;flex-direction:row;justify-content:space-between;align-items:center}.ddm-history-item-values strong{font-size:12px}}

/* v0.4.2 - distributor item-by-item delivery checklist */
.ddm-delivery-check-order{padding:12px;margin-bottom:12px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.ddm-delivery-check-head{padding-bottom:8px;margin-bottom:4px;border-bottom:1px solid #eef2f7}.ddm-delivery-item-check{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 4px;margin:0;border-bottom:1px solid #f1f5f9;cursor:pointer}.ddm-delivery-item-check:last-child{border-bottom:0}.ddm-delivery-item-check input{width:22px;height:22px;flex:0 0 22px}.ddm-delivery-item-info{display:flex;flex-direction:column;gap:3px;min-width:0}.ddm-delivery-item-info small{color:#64748b}.ddm-partial-warning{margin-top:14px;padding:14px;border:1px solid #f59e0b;border-radius:12px;background:#fffbeb}.ddm-partial-warning h5{font-weight:800;margin-top:0}.ddm-partial-actions{display:flex;gap:8px;flex-wrap:wrap}

/* v0.4.3 - iterative delivery items, return deductions and tracked POS loop */
.ddm-item-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 15px}.ddm-item-totals>div{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.ddm-item-totals span{font-size:11px;color:#64748b}.ddm-item-totals strong{font-size:16px;direction:ltr;text-align:right}.ddm-item-meta{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:3px}.ddm-item-meta small{display:inline-flex;align-items:center;line-height:1.7}.ddm-delivery-item-check:has(input:checked){background:#f0fdf4}.ddm-delivery-item-check input:checked~.ddm-delivery-item-info strong{color:#166534}
.ddm-money-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}.ddm-money-card.returned{border-color:#ffcdd2;background:#fff7f7}.ddm-money-card.returned strong{color:#b71c1c}.ddm-pos-status-strip .warning{background:#e3f2fd;color:#0d47a1}.ddm-pos-substep{display:flex;align-items:center;gap:10px;margin:16px 0 13px;padding:10px 12px;border:1px solid #dbeafe;border-radius:11px;background:#f4f8ff}.ddm-pos-substep>span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#1976d2;color:#fff;font-weight:800;flex:0 0 30px}.ddm-pos-substep strong{font-size:14px}.ddm-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 15px}.ddm-choice-card{display:flex;align-items:flex-start;gap:10px;min-height:88px;padding:13px;border:2px solid #e2e8f0;border-radius:13px;background:#fff;cursor:pointer;transition:border-color .15s ease,background .15s ease}.ddm-choice-card:hover{border-color:#90caf9}.ddm-choice-card:has(input:checked){border-color:#1976d2;background:#f3f8ff}.ddm-choice-card input{width:20px;height:20px;margin-top:2px;flex:0 0 20px}.ddm-choice-card span{display:flex;flex-direction:column;gap:5px}.ddm-choice-card b{font-size:15px}.ddm-choice-card small{color:#64748b;line-height:1.8}.ddm-choice-card.disabled{opacity:.55;cursor:not-allowed;background:#f5f5f5}.ddm-receipt-status.status-awaiting_tracking{background:#e3f2fd;color:#0d47a1}
.ddm-settings-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}.ddm-settings-check-grid>label{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;cursor:pointer}.ddm-settings-check-grid input{width:18px;height:18px;margin-top:2px;flex:0 0 18px}.ddm-settings-check-grid span{display:flex;flex-direction:column;gap:3px}.ddm-settings-check-grid b{font-size:13px}.ddm-settings-check-grid small{font-weight:400;color:#64748b;line-height:1.7}.ddm-pos-review-table td{vertical-align:middle!important}.ddm-pos-review-actions{min-width:220px}.ddm-pos-review-actions .alert{padding:8px;font-size:11px;line-height:1.7}
@media(max-width:1100px){.ddm-money-grid-five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.ddm-item-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.ddm-money-grid-five{grid-template-columns:1fr}.ddm-choice-grid,.ddm-settings-check-grid{grid-template-columns:1fr}.ddm-item-meta{flex-direction:column;gap:2px}.ddm-pos-review-actions{min-width:190px}}
.ddm-legacy-order-check{border:1px dashed #f59e0b;border-radius:10px;padding:12px;background:#fffbeb}.ddm-summary-box-financial{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.ddm-summary-box-financial>div{display:flex;flex-direction:column;gap:4px;padding:11px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.ddm-summary-box-financial span{font-size:11px;color:#64748b}.ddm-summary-box-financial strong{font-size:15px;direction:ltr;text-align:right}.ddm-selected-order-box #ddm-pos-order-limit{display:block;margin-top:6px;line-height:1.7}.ddm-hold-submit[disabled]{opacity:.55;cursor:not-allowed}
@media(max-width:900px){.ddm-summary-box-financial{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ddm-summary-box-financial{grid-template-columns:1fr}}

/* v0.4.5 - secure store approval, balanced route planning and two-party transfers */
.ddm-transfer-meta,.ddm-route-plan-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.ddm-transfer-meta>div,.ddm-route-plan-totals>div{border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:11px;display:flex;flex-direction:column;gap:4px}.ddm-transfer-meta span,.ddm-route-plan-totals span{font-size:12px;color:#64748b}.ddm-transfer-meta strong,.ddm-route-plan-totals strong{font-size:16px}.ddm-transfer-group{margin-bottom:14px}.ddm-transfer-item{border-top:1px solid #eef2f7;padding:14px 0}.ddm-transfer-item:first-of-type{border-top:0}.ddm-transfer-item-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.ddm-transfer-item-head strong,.ddm-transfer-item-head small{display:block}.ddm-transfer-item-head small{color:#64748b;margin-top:4px}.ddm-transfer-expected,.ddm-transfer-proposed{display:flex;gap:14px;flex-wrap:wrap;background:#f8fafc;border-radius:8px;padding:9px 10px;margin-top:9px}.ddm-transfer-full{display:block;background:#eefbf3;border:1px solid #ccebd7;border-radius:8px;padding:10px;margin-top:10px;cursor:pointer}.ddm-transfer-inputs{margin-top:8px}.ddm-transfer-inputs label{font-size:11px}.ddm-transfer-round{border-right:4px solid #d8e2ec;background:#f8fafc;border-radius:8px;padding:10px 12px;margin:8px 0}.ddm-transfer-round>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.ddm-transfer-round small{color:#64748b}.ddm-transfer-round p{margin:8px 0 0}.ddm-transfer-mini-list{display:flex;flex-direction:column;gap:8px}.ddm-transfer-mini-list>a{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid #e2e8f0;border-radius:9px;padding:10px 12px;text-decoration:none!important;background:#fff}.ddm-transfer-mini-list>a.needs-action{border-color:#f59e0b;background:#fffbeb}.ddm-transfer-admin-group{border:1px solid #e2e8f0;border-radius:10px;padding:12px;margin-top:12px}.ddm-transfer-admin-group h5{margin-top:0}.ddm-route-handover-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;padding:12px 14px;margin-top:14px}.ddm-route-handover-banner>div{display:flex;flex-direction:column;gap:4px}.ddm-route-handover-banner.is-final{background:#edf9f0;border:1px solid #ccebd7}.ddm-route-handover-banner.is-pending{background:#fff8e8;border:1px solid #f6d68c}.ddm-route-plan-grid>[class*=col-]{margin-bottom:14px}.ddm-route-plan-card{border:1px solid #dfe6ed;border-radius:12px;background:#fff;padding:14px;height:100%}.ddm-route-plan-head{display:flex;justify-content:space-between;gap:10px;align-items:start}.ddm-route-plan-head h4{margin:0 0 3px}.ddm-route-plan-head small{color:#64748b}.ddm-route-plan-head>span{background:#eef5ff;border-radius:20px;padding:5px 9px;font-size:12px}.ddm-route-plan-metrics{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ddm-route-plan-metrics span{background:#f8fafc;border:1px solid #edf1f5;border-radius:8px;padding:7px 9px}.ddm-route-plan-store{display:grid;grid-template-columns:36px 1fr;gap:9px;align-items:center;padding:9px 0;border-top:1px solid #eef2f7}.ddm-route-plan-store strong,.ddm-route-plan-store small{display:block}.ddm-route-plan-store small{color:#64748b;margin-top:3px}.ddm-map-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.ddm-map-summary span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:7px 11px}.ddm-order-map-popup .ddm-popup-stops>div{white-space:normal;padding:5px 0;border-bottom:1px solid #eee}.ddm-production-handover-box{border-color:#d7e8ff;background:#f8fbff}.ddm-driver-handover-card{border:1px solid #dbeafe}
@media(max-width:768px){.ddm-transfer-meta,.ddm-route-plan-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.ddm-transfer-inputs .col-xs-4{padding-left:4px;padding-right:4px}.ddm-transfer-inputs .form-control{padding-left:5px;padding-right:5px}.ddm-route-handover-banner{align-items:stretch;flex-direction:column}}
