/* Orders workspace uses the existing soft, rounded PaySap visual language. */
.ob-filter-label-short{display:none}
.ob-board{background:#fff;border:1px solid #e2e8f0;border-radius:24px;overflow:hidden;box-shadow:0 3px 14px rgba(39,37,80,.035)}
.ob-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 20px 14px}.ob-header h2{margin:0;color:#0f172a;font-size:18px;line-height:1.4;font-weight:800;letter-spacing:-.35px}.ob-header p{margin:3px 0 0;color:#64748b;font-size:12px}
.ob-toolbar{display:flex;align-items:center;gap:12px;padding:0 20px 12px}.ob-search{display:flex;align-items:center;gap:8px;flex:1;max-width:430px;min-width:0;border:1px solid #dce1eb;border-radius:12px;padding:0 11px;background:#f8fafc}.ob-search .material-symbols-outlined{font-size:19px;color:#64748b}.ob-search input{width:100%;min-width:0;min-height:42px;background:transparent;border:0;box-shadow:none!important;font-size:12px;padding:8px 0;color:#0f172a;outline:none}.ob-search:focus-within{border-color:var(--theme-primary,#6366f1);box-shadow:0 0 0 3px var(--theme-soft,#eef2ff)}.ob-staff{display:flex;gap:8px;align-items:center;font-size:12px;color:#64748b;margin-left:auto}.ob-staff select{max-width:170px;min-height:42px;border:1px solid #dce1eb;border-radius:11px;padding:7px 30px 7px 11px;background-color:#fff;font-size:12px;color:#334155}.ob-staff[hidden]{display:none}
.ob-filters{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:0 20px 14px;scrollbar-width:thin;scrollbar-color:#d6d9e7 transparent}.ob-filter{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;border-radius:999px;background:white;color:#64748b;white-space:nowrap;font-size:11px;line-height:1.4;font-weight:650;padding:7px 10px;min-height:36px;cursor:pointer}.ob-filter:hover{background:#f8fafc;color:#334155}.ob-filter[aria-pressed=true]{border-color:var(--theme-border,#c7d2fe);background:var(--theme-soft,#eef2ff);color:var(--theme-primary-hover,#4338ca)}.ob-filter-count{font-size:10px;color:inherit;opacity:.8;font-variant-numeric:tabular-nums}
.ob-desktop{display:block}.ob-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left;font-size:12px}.ob-table th{padding:11px 14px;background:#f8fafc;border-top:1px solid #edf0f5;border-bottom:1px solid #e2e8f0;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.02em}.ob-table th:nth-child(1){width:12%}.ob-table th:nth-child(2){width:17%}.ob-table th:nth-child(3){width:21%}.ob-table th:nth-child(4){width:18%}.ob-table th:nth-child(5){width:18%}.ob-table th:nth-child(6){width:14%}.ob-table td{padding:14px;vertical-align:top;border-bottom:1px solid #edf0f5;color:#334155;overflow-wrap:anywhere}.ob-table tr:last-child td{border-bottom:0}.ob-table tr:hover td{background:#fcfcff}.ob-table .ob-row-review td:first-child{box-shadow:inset 3px 0 0 #f3c66c}.ob-stack{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}.ob-reference{border:0;background:none;padding:0;color:var(--theme-primary,#4f46e5);font-size:11px;font-weight:800;text-align:left;cursor:pointer;line-height:1.6}.ob-reference:hover{text-decoration:underline}.ob-name{font-size:12px;font-weight:700;color:#1e293b;overflow-wrap:anywhere}.ob-secondary{display:block;font-size:10px;line-height:1.55;color:#64748b;overflow-wrap:anywhere}.ob-item{font-size:12px;color:#334155;font-weight:550;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;margin:0}.ob-total{font-size:12px;color:#0f172a;font-weight:800;font-variant-numeric:tabular-nums}.ob-contact{color:#047857;font-size:10px;line-height:1.5;font-weight:650;text-decoration:none;overflow-wrap:anywhere}.ob-contact:hover{text-decoration:underline}.ob-badge{display:inline-flex;align-items:center;width:fit-content;font-size:10px;font-weight:700;line-height:1.5;padding:3px 7px;border-radius:7px;max-width:100%;overflow-wrap:anywhere}.ob-badge-neutral{background:#f1f5f9;color:#64748b}.ob-badge-success{background:#ecfdf5;color:#047857}.ob-badge-attention{background:#fffbeb;color:#92400e}.ob-badge-info{background:var(--theme-soft,#eef2ff);color:var(--theme-primary-hover,#4338ca)}
.ob-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:5px;min-height:36px;padding:8px 10px;border:1px solid transparent;border-radius:10px;font-size:10px;line-height:1.35;font-weight:700;cursor:pointer;text-align:center;transition:background .15s}.ob-button-primary{background:var(--theme-primary,#4f46e5);border-color:var(--theme-primary,#4f46e5);color:white}.ob-button-primary:hover{background:var(--theme-primary-hover,#4338ca)}.ob-button-secondary{background:#fff;border-color:#dce1eb;color:#475569}.ob-button-secondary:hover{background:#f8fafc}.ob-button:disabled{opacity:.45;cursor:default}.ob-button:focus-visible,.ob-reference:focus-visible,.ob-filter:focus-visible,.ob-details summary:focus-visible,.ob-contact:focus-visible{outline:3px solid var(--theme-border,#a5b4fc);outline-offset:3px}.ob-text-button{border-color:transparent;background:transparent;color:#64748b}
.ob-details{max-width:100%;min-width:0}.ob-details summary{color:#64748b;font-size:10px;cursor:pointer;padding:3px 0;list-style:none;font-weight:600}.ob-details summary::-webkit-details-marker{display:none}.ob-details summary::after{content:' +';color:#818cf8}.ob-details[open] summary::after{content:' −'}.ob-details-body{margin-top:8px;display:flex;flex-direction:column;gap:7px;max-width:100%}.ob-address{font-size:11px;line-height:1.65;color:#475569;white-space:pre-line;overflow-wrap:anywhere;margin:0}.ob-tracking-label{font-size:10px;color:#64748b;display:flex;flex-direction:column;gap:5px}.ob-tracking-input{width:100%;max-width:260px;min-width:0;border:1px solid #cbd5e1;border-radius:9px;min-height:38px;font-size:11px;padding:8px;background:#fff;color:#0f172a}.ob-tracking-input:focus{border-color:var(--theme-primary,#6366f1);outline:2px solid var(--theme-soft,#eef2ff);box-shadow:none}.ob-tracking-controls{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.ob-tracking-controls .ob-button{padding:7px;font-size:10px;min-height:34px}.ob-draft-note{font-size:10px;color:#92400e;min-height:0}.ob-detail-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ob-detail-links .ob-button{min-height:30px;padding:6px;font-size:10px}
.ob-pagination{padding:12px 20px;border-top:1px solid #e2e8f0;display:flex;align-items:center;justify-content:flex-end;gap:12px}.ob-pagination[hidden]{display:none}.ob-pagination .ob-secondary{margin-right:auto}.ob-empty{padding:42px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.ob-empty .material-symbols-outlined{font-size:30px;color:#94a3b8}.ob-empty h3{font-size:14px;font-weight:750;color:#334155;margin:0}.ob-empty p{font-size:12px;color:#64748b;margin:0;max-width:330px;line-height:1.7}.ob-empty .ob-button{margin-top:6px}.ob-mobile{display:none}
@media(max-width:1023px){.ob-desktop{display:none}.ob-mobile{display:flex;flex-direction:column;gap:10px;padding:0 16px 16px}.ob-header{padding:17px 16px 12px}.ob-toolbar{padding:0 16px 12px}.ob-filters{padding:0 16px 13px}.ob-search{max-width:none}.ob-card{border:1px solid #e2e8f0;border-radius:16px;padding:14px;background:#fff;box-shadow:0 1px 2px #0f172a04}.ob-card-review{border-color:#f3ddad}.ob-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}.ob-card .ob-reference{font-size:11px}.ob-card .ob-total{font-size:13px}.ob-card .ob-item{-webkit-line-clamp:1;font-size:12px}.ob-card-customer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.ob-card-customer .ob-name{font-size:11px}.ob-card-statuses{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}.ob-card-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid #f1f5f9}.ob-card-footer>.ob-details{flex:1;min-width:0}.ob-card-footer>.ob-button{flex:none;max-width:46%;min-height:38px}.ob-card .ob-details summary{min-height:36px;display:flex;align-items:center;gap:5px}.ob-card .ob-details-body{margin-top:0}.ob-card .ob-tracking-input{font-size:16px;max-width:100%}.ob-card .ob-contact{min-height:30px;display:inline-flex;align-items:center}.ob-card .ob-tracking-controls .ob-button{min-height:38px}.ob-pagination{padding:12px 16px}.ob-empty{padding:28px 10px}}
@media(max-width:479px){.ob-toolbar{align-items:stretch;flex-wrap:wrap;gap:8px}.ob-search{flex-basis:100%}.ob-staff{margin-left:0;justify-content:space-between;flex:1}.ob-staff select{max-width:none;flex:1}.ob-header h2{font-size:17px}.ob-header>.ob-button{min-height:38px;font-size:10px}.ob-header p{font-size:11px}.ob-card-footer:has(.ob-details[open]){flex-wrap:wrap}.ob-card-footer:has(.ob-details[open])>.ob-details{flex-basis:100%}.ob-card-footer:has(.ob-details[open])>.ob-button{margin-left:auto}.ob-filter{min-height:38px}.ob-card .ob-item{-webkit-line-clamp:2}}

@media(max-width:1023px){.ob-search input,.ob-staff select{font-size:16px}.ob-card .ob-name{font-size:12px}.ob-card .ob-item{font-size:13px}.ob-card .ob-total{font-size:14px}.ob-card .ob-badge{font-size:11px}.ob-card .ob-button{font-size:11px}.ob-card .ob-secondary,.ob-card .ob-details summary{font-size:11px}.ob-card .ob-address{font-size:12px}}

/* Keep summary rows short; only actual controls consume a 44px touch target. */
@media(max-width:1023px){
  #ordersBoard .ob-toolbar{flex-wrap:nowrap;align-items:center;gap:8px;padding-bottom:10px}
  #ordersBoard .ob-search{flex:1 1 0;min-width:0;max-width:none}
  #ordersBoard .ob-search input{min-height:44px;font-size:16px}
  #ordersBoard .ob-staff{flex:0 0 112px;display:block;margin-left:0;min-width:0}
  #ordersBoard .ob-staff[hidden]{display:none}
  #ordersBoard .ob-staff>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  #ordersBoard .ob-staff select{width:100%;max-width:none;min-height:44px;font-size:16px;padding-left:9px;padding-right:25px}
  #ordersBoard .ob-filters{flex-wrap:wrap;overflow:visible;gap:5px;padding-bottom:12px}
  #ordersBoard .ob-filter{min-height:44px;padding:7px 9px;gap:5px;font-size:11px}
  #ordersBoard .ob-filter-label-full{display:none}
  #ordersBoard .ob-filter-label-short{display:inline}
  #ordersBoard .ob-mobile{gap:9px}
  #masterDispatchMobileList .ob-card{padding:12px;border-radius:15px}
  #masterDispatchMobileList .ob-card-header{min-height:22px;margin-bottom:5px;gap:8px}
  .ob-mobile-reference{font-size:11px;font-weight:800;line-height:1.5;color:var(--theme-primary,#4f46e5)}
  #masterDispatchMobileList .ob-card-header .ob-badge{font-size:10px;line-height:1.4;padding:3px 6px}
  .ob-card-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
  #masterDispatchMobileList .ob-card-item .ob-item{flex:1;min-width:0;font-size:12px;line-height:1.5;-webkit-line-clamp:1}
  #masterDispatchMobileList .ob-card-item .ob-total{flex:none;font-size:13px;line-height:1.5;white-space:nowrap}
  #masterDispatchMobileList .ob-card-customer{margin-top:5px;gap:8px;min-height:18px}
  #masterDispatchMobileList .ob-card-customer .ob-name{max-width:62%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px;line-height:1.5}
  #masterDispatchMobileList .ob-card-customer .ob-secondary{max-width:43%;font-size:10px;line-height:1.5;text-align:right}
  #masterDispatchMobileList .ob-card-footer{margin-top:6px;padding-top:6px;gap:10px}
  #masterDispatchMobileList .ob-card .ob-button,
  #masterDispatchMobileList .ob-card .ob-contact,
  #masterDispatchMobileList .ob-card .ob-details summary{min-height:44px}
  #masterDispatchMobileList .ob-card-footer>.ob-button{padding:8px 10px;font-size:11px}
  #masterDispatchMobileList .ob-card .ob-details summary{font-size:11px;line-height:1.4}
  .ob-detail-item{font-size:12px;line-height:1.55;color:#334155;margin:0;overflow-wrap:anywhere}
}
@media(max-width:359px){
  #ordersBoard .ob-header{padding-left:12px;padding-right:12px}
  #ordersBoard .ob-toolbar,#ordersBoard .ob-filters{padding-left:12px;padding-right:12px}
  #ordersBoard .ob-mobile{padding-left:10px;padding-right:10px}
  #ordersBoard .ob-staff{flex-basis:104px}
  #ordersBoard .ob-search{padding-left:8px;padding-right:8px;gap:4px}
  #ordersBoard .ob-filter{padding-left:7px;padding-right:7px}
}
