.customer-workspace {
  --customer-accent:#e30613;
  --customer-accent-ink:#bd101b;
  --customer-ink:#19242c;
  --customer-muted:#52616b;
  --customer-line:#d9dfe2;
  --customer-surface:#fff;
  color:var(--customer-ink);
  display:grid;
  gap:15px;
  min-width:0;
}
.customer-hero {display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
.customer-identity {min-width:0}
.customer-title {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.customer-title h1 {font-size:clamp(23px,2.4vw,32px);font-weight:750;letter-spacing:-.025em}
.customer-identity p {margin:5px 0 0;color:var(--customer-muted);overflow-wrap:anywhere}
.customer-card-actions {display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.customer-workflow {flex:none;margin-inline-start:auto}
.customer-card-actions button,.customer-workflow button {font-weight:650}
.customer-workflow .customer-workflow-trigger {
  anchor-name:--customer-workflow-trigger;
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:var(--customer-accent,#e30613);
  border-color:var(--customer-accent,#e30613);
  color:#fff;
}
.customer-workflow .customer-workflow-trigger:hover:not(:disabled) {
  background:var(--customer-accent-ink,#bd101b);
  border-color:var(--customer-accent-ink,#bd101b);
  color:#fff;
}
.customer-workflow-trigger::after {
  content:"";
  inline-size:6px;
  block-size:6px;
  border:solid currentColor;
  border-width:0 1.5px 1.5px 0;
  transform:translateY(-2px) rotate(45deg);
}
.customer-workflow-menu {
  --workflow-width:min(174px,calc(100vw - 16px));
  position:fixed;
  position-anchor:--customer-workflow-trigger;
  position-visibility:anchors-visible;
  inset:auto;
  top:clamp(8px,calc(var(--workflow-bottom) + 6px),calc(100vh - 164px));
  right:min(var(--workflow-right),calc(100% - var(--workflow-width) - 8px));
  margin:0;
  width:var(--workflow-width);
  max-height:calc(100vh - 16px);
  overflow:auto;
  padding:5px;
  border:1px solid var(--customer-line,#d9dfe2);
  border-radius:6px;
  background:var(--customer-surface,#fff);
  color:var(--customer-ink,#19242c);
  box-shadow:0 5px 16px #19242c24;
}
@supports (top:anchor(bottom)) {
  .customer-workflow-menu {
    top:clamp(8px,calc(anchor(bottom) + 6px),calc(100vh - 164px));
    right:min(anchor(right),calc(100% - var(--workflow-width) - 8px));
  }
}
.customer-workflow-menu:popover-open {display:grid;gap:4px}
#offer-workflow-actions {--workflow-width:min(248px,calc(100vw - 16px))}
.offer-search-form {align-items:end}
@media (max-width:760px) {
  .offer-search-form:has(> .customer-workflow) {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
  }
  .offer-search-form > .customer-workflow {grid-column:3;grid-row:1}
  .offer-search-form:has(> .customer-workflow) > .field {grid-column:1/-1;justify-self:start}
}
.offer-editor-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.offer-customer-fields {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;grid-column:1/-1}
.offer-customer-fields[hidden],.offer-line-stock[hidden] {display:none}
.offer-line-footer {display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap}
.offer-line-stock {display:flex;flex-wrap:wrap;gap:6px 12px;color:var(--muted);font-size:.875rem}
.customer-workflow-menu button {text-align:start;white-space:normal}
.customer-status {display:inline-flex;align-items:center;min-height:21px;padding-inline:8px;border-radius:20px;
  background:#e8f4ee;color:#13684d;font-size:.8rem;font-weight:650;overflow-wrap:anywhere}
.customer-customer-block {background:#fff0d6;color:#74500d}
.customer-tabs,.customer-subtabs {display:flex;align-items:stretch;gap:4px;flex-wrap:wrap;min-width:0;
  border-bottom:1px solid var(--customer-line)}
.customer-tabs button,.customer-subtabs button {background:transparent;border:0;border-bottom:3px solid transparent;
  border-radius:0;color:var(--customer-muted);margin-bottom:-1px;padding:8px 11px;font-weight:650;min-height:38px}
.customer-tabs button:hover:not(:disabled,[aria-current=page]),
.customer-subtabs button:hover:not(:disabled,[aria-current=page]) {background:#fff}
:is(.customer-tabs,.customer-subtabs) > button[aria-current=page] {
  color:var(--customer-ink);background:var(--tab-selected,#e7e9eb);
}
.customer-subtabs {margin-top:-6px}
.customer-subtabs button {min-height:34px;padding-block:5px}
.customer-register-content {display:grid;gap:13px;min-inline-size:0}
.customer-register-content > .muted {margin:0}
.schub-layout #view .customer-register-content .schub-detail-card {
  border-color:var(--customer-line);
  background:var(--customer-surface);
  border-radius:8px;
  padding:13px 15px;
}
.customer-register-content .schub-detail-card h2 {font-size:16px;font-weight:750}
.customer-order-search {align-items:center;margin-bottom:0}
.customer-order-shortcuts {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.customer-open-orders td[data-column="open"] {white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-open-orders > .muted {margin:0}
.customer-register-content .schub-detail-card .primary {
  background:var(--customer-accent);
  border-color:var(--customer-accent);
}
.customer-register-content .schub-detail-card .primary:hover:not(:disabled) {
  background:var(--customer-accent-ink);
  border-color:var(--customer-accent-ink);
  color:#fff;
}
.customer-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:11px}
.customer-workspace .customer-metric {display:grid;align-content:start;gap:4px;padding:12px 14px;text-align:start;
  min-width:0;border:1px solid var(--customer-line);border-radius:8px;background:var(--customer-surface)}
.customer-workspace button.customer-metric:hover:not(:disabled) {background:#fbfbfc;border-color:#abbbc3}
.customer-metric-label {font-size:.875rem;font-weight:650}
.customer-metric-value {color:var(--customer-ink);font-size:clamp(18px,2vw,25px);letter-spacing:-.025em;line-height:1.13;
  overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.customer-workspace small {display:block;color:var(--customer-muted);overflow-wrap:anywhere}
.customer-workspace small.customer-status {color:#13684d}
.customer-overview {display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:12px;align-items:stretch}
.customer-overview > .customer-card:only-child {grid-column:1/-1}
.customer-card {padding:13px 15px;border:1px solid var(--customer-line);border-radius:8px;background:var(--customer-surface);min-width:0}
.customer-card-heading {display:flex;justify-content:space-between;align-items:center;gap:6px;flex-wrap:wrap;
  margin-bottom:8px;min-width:0}
.customer-card-heading h2 {font-size:16px;font-weight:750}
.customer-card-body {display:grid;gap:8px;min-width:0}
.customer-card-body > .muted,.customer-visit p {margin:0}
.customer-workspace .customer-text-action {display:inline-flex;align-items:center;gap:5px;background:transparent;
  border:0;padding:2px;min-height:24px;color:var(--customer-accent-ink);font-weight:700;text-align:start;white-space:normal}
.customer-workspace .customer-text-action:hover:not(:disabled) {text-decoration:underline;background:transparent}
.customer-operation-list {margin:0;padding:0;list-style:none}
.customer-operation-list li+li {border-top:1px solid var(--customer-line)}
.customer-operation-list button {display:grid;grid-template-columns:minmax(0,1fr) max-content max-content;gap:8px;
  align-items:center;justify-items:start;width:100%;padding:6px 0;border:0;border-radius:0;background:transparent;
  min-width:0;text-align:start;white-space:normal}
.customer-operation-list button > span {min-width:0;overflow-wrap:anywhere}
.customer-operation-amount {font-variant-numeric:tabular-nums}
.customer-contact,.customer-visit {display:flex;gap:10px;align-items:flex-start;min-width:0}
.customer-contact > div,.customer-visit > div {min-width:0;overflow-wrap:anywhere}
.customer-avatar,.customer-calendar {display:grid;place-items:center;flex:none;min-width:42px;border-radius:6px;
  background:#fce7e9;color:var(--customer-accent-ink);font-weight:750}
.customer-avatar {min-height:42px;border-radius:50%}
.customer-calendar {padding:3px;line-height:1.15;min-height:46px}
.customer-calendar strong {font-size:20px}
.customer-workspace .customer-calendar small {color:var(--customer-accent-ink);text-transform:uppercase;font-weight:750}
.customer-card .table-scroll {min-width:0;max-width:100%}
.customer-legacy-details {display:grid;gap:12px;min-width:0}
.customer-legacy-details > summary {cursor:pointer;font-weight:650;color:var(--customer-muted);padding:4px 0}
.customer-legacy-details .customer-legacy-content {display:grid;gap:10px;min-width:0}

@media (max-width:1120px) {
  .customer-hero {flex-wrap:wrap}
}
@media (max-width:850px) {
  .customer-overview {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:480px) {
  .customer-tabs button {padding-inline:7px}
  .customer-operation-list button {grid-template-columns:minmax(0,1fr) auto}
  .customer-operation-list button .customer-status {grid-row:2}
}
