.sd-navigation-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 14px;padding:9px 12px;background:#fff;border:1px solid #dce5e9;border-radius:10px;grid-column:1/-1}.sd-navigation-bar button,.sd-dialog-navigation button,.sd-workspace-close{min-height:40px;min-width:88px;border:1px solid #c8d5dc;border-radius:8px;background:#fff;color:#183c4b;cursor:pointer;padding:7px 12px;font:inherit}.sd-navigation-bar button:disabled{opacity:.45;cursor:default}.sd-navigation-bar [data-sd-navigation-title]{font-weight:600;margin-inline-end:auto}.sd-navigation-bar [role=status]{font-size:12px;color:#587180}.sd-dialog-navigation{position:sticky;top:0;display:flex;justify-content:space-between;gap:10px;padding:8px 0 10px;background:#fff;z-index:8;flex:0 0 auto}.sd-workspace-close{margin-inline-start:auto;align-self:start}.sd-navigation-bar button:focus-visible,.sd-dialog-navigation button:focus-visible,.sd-workspace-close:focus-visible{outline:3px solid #18879c;outline-offset:2px}body.sd-knowledge #sd-navigation-bar{margin:8px 18px}body.sd-knowledge #app{display:block}@media(max-width:700px){.sd-navigation-bar{margin:8px 0;padding:8px;gap:6px}.sd-navigation-bar button,.sd-dialog-navigation button,.sd-workspace-close{min-height:44px}.sd-navigation-bar [data-sd-navigation-title]{font-size:13px}.sd-navigation-bar [role=status]{flex-basis:100%}.ow-header{flex-wrap:wrap}.sd-workspace-close{font-size:13px}}
.sd360-update-available{position:fixed;bottom:18px;inset-inline-start:18px;z-index:70;background:#103d51;color:#fff;border:0;border-radius:10px;padding:12px 18px;min-height:44px;box-shadow:0 3px 14px #0002;font:inherit;cursor:pointer}

@media(min-width:1151px){body.sd-knowledge #sd-navigation-bar{margin-right:266px;margin-left:18px}}
@media(min-width:801px) and (max-width:1150px){body.sd-knowledge #sd-navigation-bar{margin-right:218px;margin-left:18px}}

dialog.loading-dialog,dialog.tb-status-dialog{background:#fff}
.sd-nav-leave-prompt{position:sticky;bottom:0;z-index:9;background:#fff8e9;border:1px solid #ead7a8;border-radius:8px;padding:12px 14px;margin:12px 0;color:#7a4a08}
.sd-nav-leave-prompt p{margin:0 0 10px;font-weight:600}
.sd-nav-leave-prompt .actions{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.sd-nav-leave-prompt button{min-height:40px}


/* —— Prominent close / back / dismiss, 2026-11-12 ——
   One style for every navigational close or back control in the shop
   desktop 360 system. Cream fill + 2px dark border + bold label, so
   the action is obvious and does not compete with primary green buttons.
   Factory-only mobile screens are not restyled except where they share
   these same global controls (#sd-navigation-bar, dialog nav). */
.sd-close-back,
.sd-navigation-bar button[data-sd-navigation],
.sd-dialog-navigation button,
button.sd-workspace-close,
button.ow-back,
button[data-ow-back],
button[data-rd-close],
button[data-part-close],
button[data-notification-close],
button[data-sd-ap="discard"],
button[data-bulk-cancel],
.sr-create-top button[data-op="cancel"],
.svc-brand button[data-ow-back],
header button[data-service-customer-cancel] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  box-sizing: border-box;
  min-height: 42px;
  min-width: max-content;
  padding: 0 14px;
  border: 2px solid #1c3b34;
  border-radius: 10px;
  background: #fffdf8;
  color: #1c3b34;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(28, 59, 52, 0.14);
  cursor: pointer;
  white-space: nowrap;
}
.sd-close-back:hover,
.sd-navigation-bar button[data-sd-navigation]:hover:not(:disabled),
.sd-dialog-navigation button:hover,
button.sd-workspace-close:hover,
button.ow-back:hover,
button[data-ow-back]:hover,
button[data-rd-close]:hover,
button[data-part-close]:hover,
button[data-notification-close]:hover,
button[data-sd-ap="discard"]:hover,
button[data-bulk-cancel]:hover,
.sr-create-top button[data-op="cancel"]:hover,
.svc-brand button[data-ow-back]:hover,
header button[data-service-customer-cancel]:hover {
  background: #eef3f1;
}
.sd-navigation-bar button[data-sd-navigation]:disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
}
.sd-navigation-bar button[data-sd-navigation]:focus-visible,
.sd-dialog-navigation button:focus-visible,
button.sd-workspace-close:focus-visible,
button.ow-back:focus-visible,
button[data-ow-back]:focus-visible,
button[data-rd-close]:focus-visible,
button[data-part-close]:focus-visible,
button[data-notification-close]:focus-visible,
button[data-sd-ap="discard"]:focus-visible,
button[data-bulk-cancel]:focus-visible,
.sr-create-top button[data-op="cancel"]:focus-visible,
header button[data-service-customer-cancel]:focus-visible {
  outline: 3px solid #18879c;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .sd-navigation-bar button[data-sd-navigation],
  .sd-dialog-navigation button,
  button.sd-workspace-close {
    min-height: 44px;
  }
}


/* —— Service-call close / back / dismiss, 2026-11-12 ——
   Same cream #fffdf8 / 2px #1c3b34 / weight 800 tokens as the system-wide
   close-back style above. These service-flow controls were missed in v614
   because they use different attributes or class names than the order card
   (footer data-op=cancel, data-wb=close-dialog, data-transport-return,
   footer data-service-customer-cancel), and because compact order-card CSS
   hides .ow-header on the service-part workspace (the only back control).
   Designed-ticket .svc-brand [data-ow-back] and .sr-create-top cancel were
   already targeted; they are restated at higher specificity so later
   service-redesign.css cannot flatten them. Do not restyle primary green
   business actions or the ticket-closure button. */
.sr-create-actions button[data-op=cancel],
#operations-dialog .actions button[data-op=cancel],
button[data-wb=close-dialog],
button[data-transport-return],
button[data-service-customer-cancel],
#operations-dialog.sr-create .sr-create-top button[data-op=cancel],
.svc-designed .svc-brand > button[data-ow-back],
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) .ow-header button[data-ow-back],
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) .ow-header button.ow-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  box-sizing: border-box;
  min-height: 42px;
  min-width: max-content;
  padding: 0 14px;
  border: 2px solid #1c3b34;
  border-radius: 10px;
  background: #fffdf8;
  color: #1c3b34;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 1px 0 rgba(28, 59, 52, 0.14);
  cursor: pointer;
  white-space: nowrap;
}
.sr-create-actions button[data-op=cancel]:hover,
#operations-dialog .actions button[data-op=cancel]:hover,
button[data-wb=close-dialog]:hover,
button[data-transport-return]:hover,
button[data-service-customer-cancel]:hover,
#operations-dialog.sr-create .sr-create-top button[data-op=cancel]:hover,
.svc-designed .svc-brand > button[data-ow-back]:hover,
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) .ow-header button[data-ow-back]:hover,
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) .ow-header button.ow-back:hover {
  background: #eef3f1;
}
.sr-create-actions button[data-op=cancel]:focus-visible,
#operations-dialog .actions button[data-op=cancel]:focus-visible,
button[data-wb=close-dialog]:focus-visible,
button[data-transport-return]:focus-visible,
button[data-service-customer-cancel]:focus-visible,
#operations-dialog.sr-create .sr-create-top button[data-op=cancel]:focus-visible,
.svc-designed .svc-brand > button[data-ow-back]:focus-visible,
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) .ow-header button[data-ow-back]:focus-visible,
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) .ow-header button.ow-back:focus-visible {
  outline: 3px solid #18879c;
  outline-offset: 2px;
}

/* Compact order-card CSS sets .ow-header { display:none } globally, which also
   hid the only back button on a service-part workspace (and on a legacy
   service card). navigation.js then skips injecting the workspace-close
   control because [data-ow-back] already exists, so no close/back was visible.
   Designed tickets use .svc-brand, not .ow-header, and are unchanged.
   The compact order card (.ow-topline) is not unhidden. */
.order-workspace:not(.svc-designed):not(:has(.ow-topline)) > .ow-shell > .ow-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 0 12px;
}


/* When .sd-dialog-navigation already provides «‹ חזרה» / «סגירה ×», hide the
   extra header «סגירה» from wbDialog and similar ticket dialogs. Footer
   «ביטול» uses the same data-wb=close-dialog attribute but is not in header,
   so it stays next to the primary save action. */
dialog:has(> .sd-dialog-navigation) > header button[data-wb=close-dialog],
.sd-dialog-navigation + header button[data-wb=close-dialog] {
  display: none;
}
