/*
 * Shipendo design language: a restrained UI layer for the authenticated
 * portal and Shipendo admin surfaces. Keep product-specific state colours,
 * labels, markup, and action semantics in their owning components; this file
 * only establishes the shared visual system.
 */

.shipendo-account-page,
html body[class*="page-shipendo-account"],
html body.page-user,
html body.page-user-login,
html body[class*="page-system-tfa"],
body[class*="page-admin-shipendo"] {
  --shipendo-dl-bg: #eef4ff;
  --shipendo-dl-surface: #ffffff;
  --shipendo-dl-subtle: #eaf3ff;
  --shipendo-dl-strong: #071b41;
  --shipendo-dl-ink: #0b1f4a;
  --shipendo-dl-muted: #48658d;
  /* Normal-size text tokens must retain at least 4.5:1 contrast on light surfaces. */
  --shipendo-dl-subtle-text: #5b6d84;
  --shipendo-dl-line: #c9dcf4;
  --shipendo-dl-line-strong: #aec7e5;
  --shipendo-dl-success: #26734d;
  --shipendo-dl-success-bg: #e7f7dc;
  --shipendo-dl-warning: #8a6412;
  --shipendo-dl-warning-bg: #f6efda;
  --shipendo-dl-danger: #bc443c;
  --shipendo-dl-danger-bg: #fff4f1;
  --shipendo-dl-info: #0d4fb8;
  --shipendo-dl-info-bg: #eaf3ff;
  --shipendo-dl-primary: #0d4fb8;
  --shipendo-dl-primary-hover: #0a429e;
  --shipendo-dl-accent: #c4f079;
  --shipendo-dl-accent-ink: #236b45;
  --shipendo-dl-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shipendo-account-ink: var(--shipendo-dl-ink);
  --shipendo-account-blue: var(--shipendo-dl-info);
  --shipendo-account-deep: var(--shipendo-dl-strong);
  --shipendo-account-paper: var(--shipendo-dl-surface);
  --shipendo-account-sand: var(--shipendo-dl-bg);
  --shipendo-account-muted: var(--shipendo-dl-muted);
  --shipendo-account-line: var(--shipendo-dl-line);
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
}

body.page-user,
body.page-user-login,
body[class*="page-shipendo-account"] {
  background: var(--shipendo-dl-bg);
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
}

.shipendo-account-page {
  background: var(--shipendo-dl-bg);
  background-image: none;
  padding: 24px 32px 32px;
}

.shipendo-account-shell,
.shipendo-profile-page .shipendo-account-shell,
.shipendo-workspace-page .shipendo-account-shell {
  max-width: 1320px;
}

.shipendo-account-header {
  margin-bottom: 28px;
}

.shipendo-account-brand,
.shipendo-account-brand .shipendo-wordmark {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
}

.shipendo-account-brand .shipendo-wordmark-dot {
  color: var(--shipendo-dl-ink);
}

.shipendo-account-back,
.shipendo-profile-content a {
  color: var(--shipendo-dl-info);
}

.shipendo-account-back {
  font-size: 12px;
  font-weight: 600;
}

.shipendo-profile-layout {
  gap: 32px;
  grid-template-columns: 232px minmax(0, 1fr);
  padding: 0 0 48px;
}

.shipendo-profile-sidebar {
  max-width: none;
  padding: 0 16px 0 0;
}

.shipendo-account-page .shipendo-account-kicker,
.shipendo-account-page .shipendo-account-card-kicker,
.shipendo-account-page .shipendo-user-tabs-label,
.shipendo-account-page .shipendo-user-dashboard-eyebrow,
.shipendo-account-page .shipendo-user-dashboard-performance-eyebrow,
.shipendo-account-page .shipendo-user-orders-eyebrow,
.shipendo-account-page .shipendo-user-stock-eyebrow,
.shipendo-account-page .shipendo-user-analytics-eyebrow,
.shipendo-account-page .sua-eyebrow,
.shipendo-account-page .shipendo-issues-eyebrow {
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.shipendo-profile-sidebar h1,
.shipendo-profile-card h2,
.shipendo-profile-content h2,
.shipendo-profile-content h3,
.shipendo-profile-content h4,
.shipendo-profile-content .shipendo-user-dashboard h3,
.shipendo-profile-content .shipendo-user-dashboard-performance h4,
.shipendo-profile-content .shipendo-user-orders h3,
.shipendo-profile-content .shipendo-user-order-detail-hero h3,
.shipendo-profile-content .shipendo-user-stock-header h3,
.shipendo-profile-content .shipendo-user-analytics-header h3,
.shipendo-profile-content .shipendo-user-analytics .sua-header h3,
.shipendo-profile-content .shipendo-order-exceptions-intro h3,
.shipendo-profile-content .shipendo-exceptions-empty h3 {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.shipendo-profile-sidebar h1 {
  font-size: 28px;
  margin-top: 12px;
}

.shipendo-account-menu {
  gap: 4px;
  margin-top: 20px;
}

.shipendo-account-menu-secondary,
.shipendo-user-tabs {
  border-color: var(--shipendo-dl-line);
  margin-top: 20px;
  padding-top: 16px;
}

.shipendo-account-menu a,
.shipendo-user-tabs .tabs a {
  border-color: transparent;
  border-radius: 4px;
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 10px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.shipendo-account-menu a span {
  background: var(--shipendo-dl-subtle);
  border-radius: 4px;
  color: var(--shipendo-dl-info);
  height: 24px;
  width: 24px;
}

.shipendo-account-menu a:hover,
.shipendo-account-menu a:focus-visible,
.shipendo-account-menu a.is-active,
.shipendo-user-tabs .tabs a:hover,
.shipendo-user-tabs .tabs a:focus-visible,
.shipendo-user-tabs .tabs a.active,
.shipendo-user-tabs .tabs li.active a {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  box-shadow: none;
  color: var(--shipendo-dl-ink);
  outline: 0;
  transform: none;
}

.shipendo-user-tabs .tabs a {
  background: transparent;
  border: 1px solid transparent;
  padding: 10px;
}

.shipendo-profile-card {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
  padding: 28px 32px;
}

.shipendo-profile-card-top {
  border-color: var(--shipendo-dl-line);
  padding-bottom: 20px;
}

.shipendo-profile-card h2 {
  font-size: 28px;
  margin-top: 10px;
}

.shipendo-profile-status,
.shipendo-user-dashboard-current,
.shipendo-user-orders-hero > span,
.shipendo-user-stock-header > span,
.shipendo-user-analytics-badge,
.shipendo-user-analytics .sua-badge,
.shipendo-user-analytics-freshness,
.shipendo-user-analytics .sua-freshness {
  border-radius: 4px;
  box-shadow: none;
  font-size: 11px;
  padding: 7px 9px;
}

.shipendo-profile-content {
  color: var(--shipendo-dl-muted);
  margin-top: 24px;
}

.shipendo-profile-content .messages,
.shipendo-profile-messages .messages {
  border-color: var(--shipendo-dl-line-strong);
  border-radius: 6px;
  font-size: 14px;
  padding: 12px 14px;
}

.shipendo-profile-content h2 { font-size: 22px; }
.shipendo-profile-content h3 { font-size: 18px; }
.shipendo-profile-content h4 { font-size: 16px; }

.shipendo-profile-content .item-list li a,
.shipendo-profile-content ul.menu > li a,
.shipendo-profile-content ul.links > li a,
.shipendo-profile-content > ul > li a,
.shipendo-profile-content > ol > li a {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 4px;
  box-shadow: none;
  padding: 11px 13px;
}

.shipendo-profile-content .item-list li a:hover,
.shipendo-profile-content .item-list li a:focus-visible,
.shipendo-profile-content ul.menu > li a:hover,
.shipendo-profile-content ul.menu > li a:focus-visible,
.shipendo-profile-content ul.links > li a:hover,
.shipendo-profile-content ul.links > li a:focus-visible,
.shipendo-profile-content > ul > li a:hover,
.shipendo-profile-content > ul > li a:focus-visible,
.shipendo-profile-content > ol > li a:hover,
.shipendo-profile-content > ol > li a:focus-visible {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line-strong);
  box-shadow: none;
  transform: none;
}

.shipendo-profile-content .views-exposed-form,
.shipendo-profile-content .shipendo-user-orders-filter,
.shipendo-profile-content .shipendo-user-stock-filters,
.shipendo-profile-content .shipendo-user-analytics-filter,
.shipendo-profile-content .shipendo-user-analytics .sua-filter {
  background: var(--shipendo-dl-subtle);
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

.shipendo-profile-content input.form-text,
.shipendo-profile-content input.form-email,
.shipendo-profile-content input.form-password,
.shipendo-profile-content input[type="date"],
.shipendo-profile-content input[type="number"],
.shipendo-profile-content select,
.shipendo-profile-content textarea {
  border-color: var(--shipendo-dl-line-strong);
  border-radius: 4px;
  min-height: 42px;
}

.shipendo-profile-content input.form-submit,
.shipendo-profile-content button.form-submit,
.shipendo-profile-content .shipendo-user-orders-filter button,
.shipendo-profile-content .shipendo-user-stock-filters button,
.shipendo-profile-content .shipendo-user-analytics-filter button,
.shipendo-profile-content .shipendo-user-analytics .sua-button,
.shipendo-profile-content .shipendo-user-orders-clear {
  background: var(--shipendo-dl-primary);
  border: 1px solid var(--shipendo-dl-primary);
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  min-height: 42px;
}

.shipendo-profile-content input.form-submit:hover,
.shipendo-profile-content input.form-submit:focus-visible,
.shipendo-profile-content button.form-submit:hover,
.shipendo-profile-content button.form-submit:focus-visible,
.shipendo-profile-content .shipendo-user-orders-filter button:hover,
.shipendo-profile-content .shipendo-user-orders-filter button:focus-visible,
.shipendo-profile-content .shipendo-user-stock-filters button:hover,
.shipendo-profile-content .shipendo-user-stock-filters button:focus-visible,
.shipendo-profile-content .shipendo-user-analytics-filter button:hover,
.shipendo-profile-content .shipendo-user-analytics-filter button:focus-visible,
.shipendo-profile-content .shipendo-user-analytics .sua-button:hover,
  .shipendo-profile-content .shipendo-user-analytics .sua-button:focus-visible,
  .shipendo-profile-content .shipendo-user-orders-clear:hover,
  .shipendo-profile-content .shipendo-user-orders-clear:focus-visible {
  background: var(--shipendo-dl-primary-hover);
  border-color: var(--shipendo-dl-primary-hover);
}

.shipendo-profile-content form fieldset,
.shipendo-profile-content .shipendo-user-stock-panel,
.shipendo-profile-content .shipendo-user-stock-disclosure,
.shipendo-profile-content .shipendo-user-analytics-panel,
.shipendo-profile-content .shipendo-user-analytics .sua-panel,
.shipendo-profile-content .shipendo-user-order-panel,
.shipendo-profile-content .shipendo-user-order-summary > section {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
}

/* The component styles own the data layout; this layer removes decoration. */
.shipendo-account-page .shipendo-user-dashboard,
.shipendo-account-page .shipendo-user-orders,
.shipendo-account-page .shipendo-user-order-detail,
.shipendo-account-page .shipendo-user-stock,
.shipendo-account-page .shipendo-user-analytics {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.shipendo-profile-content .shipendo-user-dashboard-stat,
.shipendo-profile-content .shipendo-user-dashboard-stat.is-actionable,
.shipendo-profile-content .shipendo-user-analytics-kpi,
.shipendo-profile-content .shipendo-user-analytics .sua-kpi,
.shipendo-profile-content .shipendo-user-stock-kpi,
.shipendo-profile-content .shipendo-user-stock-actions > a {
  border-color: var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

.shipendo-profile-content .shipendo-user-dashboard-stat.is-actionable:hover,
.shipendo-profile-content .shipendo-user-stock-actions > a:hover {
  border-color: var(--shipendo-dl-line-strong);
  box-shadow: none;
  transform: none;
}

.shipendo-profile-content .shipendo-user-dashboard-stat-icon,
.shipendo-profile-content .shipendo-user-stock-actions > a > span,
.shipendo-profile-content .shipendo-user-stock-action-panel,
.shipendo-profile-content .shipendo-user-order-alert > span,
.shipendo-profile-content .shipendo-exception-type-icon,
.shipendo-profile-content .shipendo-issues-overview-icon {
  border-radius: 4px;
}

.shipendo-profile-content .shipendo-user-dashboard-chart {
  border-radius: 6px;
  box-shadow: none;
}

.shipendo-profile-content .shipendo-user-dashboard-performance,
.shipendo-profile-content .shipendo-user-order-flow-card,
.shipendo-profile-content .shipendo-user-order-alert,
.shipendo-profile-content .shipendo-issues-overview-card,
.shipendo-profile-content .shipendo-exception-card {
  border-radius: 6px;
  box-shadow: none;
}

.shipendo-profile-content .shipendo-user-orders-table,
.shipendo-profile-content .shipendo-profile-content table,
.shipendo-profile-content .shipendo-user-analytics-table,
.shipendo-profile-content .shipendo-user-analytics .sua-table {
  border-color: var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
}

.shipendo-profile-content .shipendo-user-orders-row,
.shipendo-profile-content .shipendo-user-orders-row:nth-child(odd):not(.is-header) {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
}

.shipendo-profile-content .shipendo-user-orders-row.is-header,
.shipendo-profile-content th,
.shipendo-profile-content .shipendo-user-analytics-table th,
.shipendo-profile-content .shipendo-user-analytics .sua-table th {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-muted);
}

.shipendo-profile-content .shipendo-user-orders-row:not(.is-header):hover,
.shipendo-profile-content tbody tr:hover td {
  background: #fafaf7;
}

.shipendo-profile-content .shipendo-user-order-status,
.shipendo-profile-content .shipendo-user-stock-status,
.shipendo-profile-content .shipendo-user-analytics-badge,
.shipendo-profile-content .shipendo-user-analytics .sua-badge,
.shipendo-profile-content .shipendo-user-analytics .sua-pill,
.shipendo-profile-content .shipendo-issues-overview-counts span,
.shipendo-profile-content .shipendo-exception-filter,
.shipendo-profile-content .shipendo-exception-filter b {
  border-radius: 4px;
}

.shipendo-profile-content .shipendo-user-order-flow-card,
.shipendo-profile-content .shipendo-user-stock-header,
.shipendo-profile-content .shipendo-user-analytics-header,
.shipendo-profile-content .shipendo-user-analytics .sua-header,
.shipendo-profile-content .shipendo-issues-overview-card {
  background: var(--shipendo-dl-subtle);
  background-image: none;
  border-color: var(--shipendo-dl-line);
}

.shipendo-profile-content .shipendo-user-stock-header::after,
.shipendo-profile-content .shipendo-user-analytics-header::after,
.shipendo-profile-content .shipendo-user-analytics .sua-header::after {
  display: none;
}

.shipendo-profile-content .shipendo-user-order-source {
  background: var(--shipendo-dl-strong);
  border-radius: 6px;
}

.shipendo-profile-content .shipendo-user-analytics-nav,
.shipendo-profile-content .shipendo-user-analytics .sua-tabs {
  border-color: var(--shipendo-dl-line);
}

.shipendo-profile-content .shipendo-user-analytics-nav a,
.shipendo-profile-content .shipendo-user-analytics .sua-tabs a {
  color: var(--shipendo-dl-muted);
}

.shipendo-profile-content .shipendo-user-analytics-nav a.is-active,
.shipendo-profile-content .shipendo-user-analytics-nav a[aria-current="page"],
.shipendo-profile-content .shipendo-user-analytics .sua-tabs a.is-active,
.shipendo-profile-content .shipendo-user-analytics .sua-tabs a[aria-current="page"] {
  border-bottom-color: var(--shipendo-dl-strong);
  color: var(--shipendo-dl-ink);
}

/* Admin Shipendo routes keep the existing Drupal form and data semantics. */
body[class*="page-admin-shipendo"] {
  background: var(--shipendo-dl-bg);
}

body[class*="page-admin-shipendo"] #branding {
  background: var(--shipendo-dl-strong);
  color: #fff;
}

body[class*="page-admin-shipendo"] #branding h1#page-title {
  color: #fff;
  font-family: var(--shipendo-dl-font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
}

body[class*="page-admin-shipendo"] #content,
body[class*="page-admin-shipendo"] #main-content,
body[class*="page-admin-shipendo"] .region-content {
  background: var(--shipendo-dl-bg);
}

body[class*="page-admin-shipendo"] .region-content {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1320px;
  min-width: 0;
  overflow-x: auto;
  padding: 32px;
}

body[class*="page-admin-shipendo"] .region-content > form {
  max-width: 860px;
  min-width: 0;
}

body[class*="page-admin-shipendo"] .region-content label,
body[class*="page-admin-shipendo"] .region-content .fieldset-legend {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 12px;
  font-weight: 600;
}

body[class*="page-admin-shipendo"] .region-content input.form-text,
body[class*="page-admin-shipendo"] .region-content input.form-number,
body[class*="page-admin-shipendo"] .region-content select,
body[class*="page-admin-shipendo"] .region-content textarea {
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 4px;
  box-sizing: border-box;
  font-family: var(--shipendo-dl-font);
  min-height: 42px;
  max-width: 100%;
}

body[class*="page-admin-shipendo"] .region-content input.form-submit,
body[class*="page-admin-shipendo"] .region-content button.form-submit {
  background: var(--shipendo-dl-strong);
  border: 1px solid var(--shipendo-dl-strong);
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  font-family: var(--shipendo-dl-font);
  min-height: 42px;
}

body[class*="page-admin-shipendo"] .region-content fieldset,
body[class*="page-admin-shipendo"] .region-content .form-wrapper {
  border-color: var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
}

body[class*="page-admin-shipendo"] .region-content table {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

body[class*="page-admin-shipendo"] .region-content th {
  background: var(--shipendo-dl-subtle);
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 11px;
  font-weight: 600;
}

body[class*="page-admin-shipendo"] .region-content th,
body[class*="page-admin-shipendo"] .region-content td {
  border-color: var(--shipendo-dl-line);
  padding: 11px 12px;
}

/* The TFA route is an authentication checkpoint, not a public marketing
 * page. Keep the module's existing form and submit handlers inside the same
 * calm Shipendo shell used by the account experience. */
html body[class*="page-system-tfa"] {
  background: var(--shipendo-dl-bg);
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  margin: 0;
}

html body[class*="page-system-tfa"] .shipendo-tfa-page {
  background: var(--shipendo-dl-bg);
  box-sizing: border-box;
  min-height: 100vh;
  padding: 24px 32px 32px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-shell {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 680px;
  min-height: calc(100vh - 56px);
}

html body[class*="page-system-tfa"] .shipendo-tfa-header {
  align-items: center;
  border-bottom: 1px solid var(--shipendo-dl-line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-brand {
  color: var(--shipendo-dl-ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  text-decoration: none;
}

html body[class*="page-system-tfa"] .shipendo-tfa-brand span {
  color: var(--shipendo-dl-muted);
}

html body[class*="page-system-tfa"] .shipendo-tfa-header-label,
html body[class*="page-system-tfa"] .shipendo-tfa-kicker {
  color: var(--shipendo-dl-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

html body[class*="page-system-tfa"] .shipendo-tfa-header-label {
  margin-left: 16px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-main {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 64px 0;
}

html body[class*="page-system-tfa"] .shipendo-tfa-card {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 480px;
  padding: 36px;
  width: 100%;
}

html body[class*="page-system-tfa"] .shipendo-tfa-kicker {
  margin: 0 0 10px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-card h1 {
  color: var(--shipendo-dl-ink);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 0;
}

html body[class*="page-system-tfa"] .shipendo-tfa-intro {
  color: var(--shipendo-dl-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 14px 0 28px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-messages {
  margin: 0 0 20px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-messages .messages {
  margin: 0;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form form {
  max-width: none;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form .form-item {
  margin: 0 0 18px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form label {
  color: var(--shipendo-dl-ink);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form input.form-text,
html body[class*="page-system-tfa"] .shipendo-tfa-form input.form-number,
html body[class*="page-system-tfa"] .shipendo-tfa-form select,
html body[class*="page-system-tfa"] .shipendo-tfa-form textarea {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  min-height: 44px;
  padding: 8px 10px;
  width: 100%;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form .description {
  color: var(--shipendo-dl-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-form input.form-submit,
html body[class*="page-system-tfa"] .shipendo-tfa-form button.form-submit {
  background: var(--shipendo-dl-strong);
  border: 1px solid var(--shipendo-dl-strong);
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-family: var(--shipendo-dl-font);
  font-weight: 600;
  min-height: 42px;
  padding: 0 14px;
}

html body[class*="page-system-tfa"] .shipendo-tfa-footer {
  border-top: 1px solid var(--shipendo-dl-line);
  color: var(--shipendo-dl-muted);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding-top: 16px;
}

/* The Shipendo admin theme keeps the operational shell lightweight while
 * leaving the child route render array, forms, messages, and local tasks
 * untouched. */
body[class*="page-admin-shipendo"] .shipendo-admin-shell {
  background: var(--shipendo-dl-bg);
  box-sizing: border-box;
  color: var(--shipendo-dl-ink);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  font-family: var(--shipendo-dl-font);
  min-height: 100vh;
}

body[class*="page-admin-shipendo"] .shipendo-admin-sidebar {
  align-self: start;
  background: var(--shipendo-dl-surface);
  border-right: 1px solid var(--shipendo-dl-line);
  box-sizing: border-box;
  min-height: 100vh;
  overflow-y: auto;
  padding: 24px 14px 32px;
  position: sticky;
  top: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-top {
  border-bottom: 1px solid var(--shipendo-dl-line);
  padding: 0 10px 22px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-brand {
  color: var(--shipendo-dl-ink);
  display: inline-block;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[class*="page-admin-shipendo"] .shipendo-admin-brand span {
  color: var(--shipendo-dl-muted);
}

body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-caption,
body[class*="page-admin-shipendo"] .shipendo-admin-eyebrow,
body[class*="page-admin-shipendo"] .shipendo-admin-nav-label {
  color: var(--shipendo-dl-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-caption {
  margin-top: 10px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-workspace {
  min-width: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--shipendo-dl-line);
  box-sizing: border-box;
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1320px;
  padding: 28px 32px 24px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-heading {
  min-width: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-eyebrow {
  margin-bottom: 7px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-heading h1 {
  color: var(--shipendo-dl-ink);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav {
  margin-top: 24px;
  min-width: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav-group + .shipendo-admin-nav-group {
  margin-top: 22px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav-label {
  margin: 0 10px 8px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav ul {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav li {
  margin: 0;
  padding: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav a {
  align-items: center;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--shipendo-dl-muted);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 10px;
  text-decoration: none;
  width: 100%;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav-icon {
  align-items: center;
  color: var(--shipendo-dl-muted);
  display: inline-flex;
  flex: 0 0 20px;
  height: 20px;
  justify-content: center;
  margin-right: 10px;
  width: 20px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav-icon svg {
  display: block;
  height: 20px;
  width: 20px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav a:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-nav a:focus-visible {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-ink);
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav a.is-active {
  background: var(--shipendo-dl-primary);
  border-color: var(--shipendo-dl-primary);
  border-left-color: var(--shipendo-dl-primary);
  color: #fff;
  font-weight: 700;
}

body[class*="page-admin-shipendo"] .shipendo-admin-nav a.is-active .shipendo-admin-nav-icon {
  color: #fff;
}

body[class*="page-admin-shipendo"] .shipendo-admin-main {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1320px;
  min-width: 0;
  padding: 28px 32px 48px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-messages {
  margin: 0 0 20px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-tabs {
  border-bottom: 1px solid var(--shipendo-dl-line);
  margin: 0 0 24px;
  padding-bottom: 12px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-tabs ul,
body[class*="page-admin-shipendo"] .shipendo-admin-tabs .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-tabs a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--shipendo-dl-muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 11px;
  text-decoration: none;
}

body[class*="page-admin-shipendo"] .shipendo-admin-tabs a:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-tabs a:focus-visible,
body[class*="page-admin-shipendo"] .shipendo-admin-tabs li.active a,
body[class*="page-admin-shipendo"] .shipendo-admin-tabs a.active {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-ink);
}

body[class*="page-admin-shipendo"] .shipendo-admin-content {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content > form,
body[class*="page-admin-shipendo"] .shipendo-admin-content > .form,
body[class*="page-admin-shipendo"] .shipendo-admin-content > .view {
  min-width: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content form {
  max-width: 860px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content label,
body[class*="page-admin-shipendo"] .shipendo-admin-content .fieldset-legend {
  color: var(--shipendo-dl-ink);
  font-size: 12px;
  font-weight: 600;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-text,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-number,
body[class*="page-admin-shipendo"] .shipendo-admin-content select,
body[class*="page-admin-shipendo"] .shipendo-admin-content textarea {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  max-width: 100%;
  min-height: 42px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-submit,
body[class*="page-admin-shipendo"] .shipendo-admin-content button.form-submit {
  background: var(--shipendo-dl-strong);
  border: 1px solid var(--shipendo-dl-strong);
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  font-family: var(--shipendo-dl-font);
  min-height: 42px;
  padding: 0 14px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content fieldset,
body[class*="page-admin-shipendo"] .shipendo-admin-content .form-wrapper {
  border-color: var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content table {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content th {
  background: var(--shipendo-dl-subtle);
  color: var(--shipendo-dl-muted);
  font-size: 11px;
  font-weight: 600;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content th,
body[class*="page-admin-shipendo"] .shipendo-admin-content td {
  border-color: var(--shipendo-dl-line);
  padding: 11px 12px;
}

.shipendo-account-page a:focus-visible,
.shipendo-account-page button:focus-visible,
.shipendo-account-page input:focus-visible,
.shipendo-account-page select:focus-visible,
.shipendo-account-page textarea:focus-visible,
body[class*="page-admin-shipendo"] a:focus-visible,
body[class*="page-admin-shipendo"] button:focus-visible,
body[class*="page-admin-shipendo"] input:focus-visible,
body[class*="page-admin-shipendo"] select:focus-visible,
body[class*="page-admin-shipendo"] textarea:focus-visible,
html body[class*="page-system-tfa"] a:focus-visible,
html body[class*="page-system-tfa"] button:focus-visible,
html body[class*="page-system-tfa"] input:focus-visible,
html body[class*="page-system-tfa"] select:focus-visible,
html body[class*="page-system-tfa"] textarea:focus-visible {
  outline: 2px solid var(--shipendo-dl-info);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .shipendo-account-page { padding: 20px; }

  html {
    overflow-x: hidden;
  }

  body[class*="page-admin-shipendo"] {
    overflow-x: hidden;
  }

  .shipendo-profile-layout,
  .shipendo-workspace-layout {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .shipendo-profile-sidebar {
    padding-right: 0;
  }

  .shipendo-account-menu,
  .shipendo-user-tabs .tabs {
    display: flex;
    flex-wrap: wrap;
  }

  .shipendo-account-menu-secondary,
  .shipendo-user-tabs {
    border-top: 1px solid var(--shipendo-dl-line);
  }

  .shipendo-account-menu a,
  .shipendo-user-tabs .tabs a {
    flex: 0 1 auto;
  }

  .shipendo-profile-card {
    padding: 24px;
  }

  .shipendo-profile-content .shipendo-user-dashboard-stats,
  .shipendo-profile-content .shipendo-user-analytics-kpis,
  .shipendo-profile-content .shipendo-user-analytics .sua-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[class*="page-admin-shipendo"] .region-content {
    padding: 24px 20px;
  }

  body[class*="page-admin-shipendo"] .region-content table {
    max-width: 100%;
    table-layout: fixed;
  }

  body[class*="page-admin-shipendo"] .region-content th,
  body[class*="page-admin-shipendo"] .region-content td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table {
    table-layout: fixed;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content th,
  body[class*="page-admin-shipendo"] .shipendo-admin-content td {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-shell {
    display: block;
    padding: 0;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-sidebar {
    border-bottom: 1px solid var(--shipendo-dl-line);
    border-right: 0;
    min-height: 0;
    overflow: visible;
    padding: 18px 20px 14px;
    position: static;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-top {
    align-items: center;
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 0;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-caption {
    margin: 0 0 0 16px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav {
    border-top: 1px solid var(--shipendo-dl-line);
    margin-top: 16px;
    padding-top: 14px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav-group {
    display: block;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav-group + .shipendo-admin-nav-group {
    margin-top: 18px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav-label {
    margin: 0 0 7px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav ul {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav a {
    min-height: 36px;
    width: 100%;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-header {
    align-items: start;
    gap: 16px;
    padding: 22px 20px 20px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-main {
    padding: 24px 20px 40px;
  }

  /* Keep Drupal's global toolbar usable on narrow screens without letting
   * its floated categories wrap over the Shipendo workspace. */
  body[class*="page-admin-shipendo"] #admin-menu {
    box-sizing: border-box;
    height: 30px;
    overflow: hidden;
  }

  body[class*="page-admin-shipendo"] #admin-menu-wrapper {
    box-sizing: border-box;
    height: 30px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
  }

  body[class*="page-admin-shipendo"] #admin-menu-wrapper > ul {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
    width: max-content;
  }

  body[class*="page-admin-shipendo"] #admin-menu-wrapper > ul > li {
    flex: 0 0 auto;
    float: none;
  }
}

@media (max-width: 640px) {
  .shipendo-account-page { padding: 16px; }

  html body[class*="page-system-tfa"] .shipendo-tfa-page {
    padding: 16px;
  }

  html body[class*="page-system-tfa"] .shipendo-tfa-shell {
    min-height: calc(100vh - 32px);
  }

  html body[class*="page-system-tfa"] .shipendo-tfa-main {
    padding: 36px 0;
  }

  html body[class*="page-system-tfa"] .shipendo-tfa-card {
    padding: 24px 18px;
  }

  html body[class*="page-system-tfa"] .shipendo-tfa-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .shipendo-account-header,
  .shipendo-profile-card-top,
  .shipendo-user-orders-hero,
  .shipendo-user-order-detail-hero,
  .shipendo-user-stock-header,
  .shipendo-user-analytics-header,
  .shipendo-user-analytics .sua-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipendo-account-header { gap: 12px; }

  .shipendo-profile-card {
    padding: 20px 16px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-shell {
    padding: 0;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-sidebar {
    padding: 16px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-top {
    align-items: flex-start;
    display: block;
    padding: 0 0 16px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-sidebar-caption {
    margin: 8px 0 0;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav {
    margin-top: 16px;
    padding-top: 16px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav-group {
    display: block;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav-group + .shipendo-admin-nav-group {
    margin-top: 18px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav-label {
    margin: 0 0 7px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav ul {
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-tabs ul,
  body[class*="page-admin-shipendo"] .shipendo-admin-tabs .tabs {
    align-items: stretch;
    flex-direction: column;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav a,
  body[class*="page-admin-shipendo"] .shipendo-admin-tabs a {
    justify-content: flex-start;
    width: 100%;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-header {
    padding: 20px 16px 18px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-main {
    padding: 20px 16px 32px;
  }

  .shipendo-profile-card h2 {
    font-size: 24px;
  }

  .shipendo-profile-content .shipendo-user-dashboard-stats,
  .shipendo-profile-content .shipendo-user-analytics-kpis,
  .shipendo-profile-content .shipendo-user-analytics .sua-kpis,
  .shipendo-profile-content .shipendo-user-stock-actions {
    grid-template-columns: 1fr;
  }

  .shipendo-profile-content .shipendo-user-analytics-filter,
  .shipendo-profile-content .shipendo-user-analytics .sua-filter,
  .shipendo-profile-content .shipendo-user-stock-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shipendo-profile-content .shipendo-user-analytics .sua-filter-fields {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .shipendo-profile-content .shipendo-user-analytics .sua-filter-field--payment-method {
    grid-column: auto;
  }

  .shipendo-profile-content .shipendo-user-analytics .sua-filter-actions {
    align-items: stretch;
    flex-direction: column;
    min-width: 0;
  }

  .shipendo-profile-content .shipendo-user-analytics .sua-filter-actions > * {
    width: 100%;
  }

  .shipendo-account-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shipendo-account-page *,
  .shipendo-account-page *::before,
  .shipendo-account-page *::after,
  body[class*="page-admin-shipendo"] *,
  body[class*="page-admin-shipendo"] *::before,
  body[class*="page-admin-shipendo"] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/*
 * The production account template emits its legacy account sheet after the
 * normal Drupal stylesheet collection. Keep the shared layer authoritative
 * without changing the template or the page markup.
 */
html .shipendo-account-page .shipendo-profile-content #block-menu-menu-shipendo {
  display: none;
}

html .shipendo-account-page,
html .shipendo-account-page {
  background-color: var(--shipendo-dl-bg);
  background-image: none;
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  padding: 24px 32px 32px;
}

html .shipendo-account-page .shipendo-account-shell,
html .shipendo-account-page .shipendo-account-shell {
  max-width: 1320px;
}

html .shipendo-account-page .shipendo-account-header,
html .shipendo-account-page .shipendo-account-header {
  margin-bottom: 28px;
}

html .shipendo-account-page .shipendo-account-brand,
html .shipendo-account-page .shipendo-account-brand .shipendo-wordmark,
html .shipendo-account-page .shipendo-account-brand,
html .shipendo-account-page .shipendo-account-brand .shipendo-wordmark {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
}

html .shipendo-account-page .shipendo-account-brand .shipendo-wordmark-dot,
html .shipendo-account-page .shipendo-account-brand .shipendo-wordmark-dot {
  color: var(--shipendo-dl-ink);
}

html .shipendo-account-page .shipendo-account-back,
html .shipendo-account-page .shipendo-account-back {
  color: var(--shipendo-dl-info);
  font-size: 12px;
  font-weight: 600;
}

html .shipendo-account-page .shipendo-profile-layout,
html .shipendo-account-page .shipendo-profile-layout {
  gap: 32px;
  grid-template-columns: 232px minmax(0, 1fr);
  padding: 0 0 48px;
}

html .shipendo-account-page .shipendo-profile-sidebar,
html .shipendo-account-page .shipendo-profile-sidebar {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 0 16px 0 0;
  position: static;
}

html .shipendo-account-page .shipendo-profile-sidebar h1,
html .shipendo-account-page .shipendo-profile-sidebar h1 {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 12px;
}

html .shipendo-account-page .shipendo-account-menu,
html .shipendo-account-page .shipendo-account-menu {
  gap: 4px;
  margin-top: 20px;
}

html .shipendo-account-page .shipendo-account-menu a,
html .shipendo-account-page .shipendo-account-menu a {
  background: transparent;
  border-color: transparent;
  border-radius: 4px;
  box-shadow: none;
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  padding: 0 10px;
  transform: none;
}

html .shipendo-account-page .shipendo-account-menu a span,
html .shipendo-account-page .shipendo-account-menu a span {
  background: var(--shipendo-dl-subtle);
  border-radius: 4px;
  color: var(--shipendo-dl-info);
}

html .shipendo-account-page .shipendo-account-menu a:hover,
html .shipendo-account-page .shipendo-account-menu a:focus-visible,
html .shipendo-account-page .shipendo-account-menu a.is-active,
html .shipendo-account-page .shipendo-account-menu a:hover,
html .shipendo-account-page .shipendo-account-menu a:focus-visible,
html .shipendo-account-page .shipendo-account-menu a.is-active {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  box-shadow: none;
  color: var(--shipendo-dl-ink);
}

html .shipendo-account-page .shipendo-user-tabs,
html .shipendo-account-page .shipendo-user-tabs {
  border-color: var(--shipendo-dl-line);
  margin-top: 20px;
  padding-top: 16px;
}

html .shipendo-account-page .shipendo-user-tabs .tabs a,
html .shipendo-account-page .shipendo-user-tabs .tabs a {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
}

html .shipendo-account-page .shipendo-user-tabs .tabs a:hover,
html .shipendo-account-page .shipendo-user-tabs .tabs a:focus-visible,
html .shipendo-account-page .shipendo-user-tabs .tabs a.active,
html .shipendo-account-page .shipendo-user-tabs .tabs li.active a,
html .shipendo-account-page .shipendo-user-tabs .tabs a:hover,
html .shipendo-account-page .shipendo-user-tabs .tabs a:focus-visible,
html .shipendo-account-page .shipendo-user-tabs .tabs a.active,
html .shipendo-account-page .shipendo-user-tabs .tabs li.active a {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  box-shadow: none;
  color: var(--shipendo-dl-ink);
}

html .shipendo-account-page .shipendo-profile-card,
html .shipendo-account-page .shipendo-profile-card {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
  padding: 28px 32px;
}

html .shipendo-account-page .shipendo-profile-card-top,
html .shipendo-account-page .shipendo-profile-card-top {
  border-color: var(--shipendo-dl-line);
  padding-bottom: 20px;
}

html .shipendo-account-page .shipendo-profile-card h2,
html .shipendo-account-page .shipendo-profile-card h2 {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 10px;
}

html .shipendo-account-page .shipendo-profile-status,
html .shipendo-account-page .shipendo-profile-status {
  border-radius: 4px;
  box-shadow: none;
  font-size: 11px;
  padding: 7px 9px;
}

html .shipendo-account-page .shipendo-profile-content,
html .shipendo-account-page .shipendo-profile-content {
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 24px;
}

html .shipendo-account-page .shipendo-profile-content h2,
html .shipendo-account-page .shipendo-profile-content h3,
html .shipendo-account-page .shipendo-profile-content h4,
html .shipendo-account-page .shipendo-profile-content h2,
html .shipendo-account-page .shipendo-profile-content h3,
html .shipendo-account-page .shipendo-profile-content h4 {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

html .shipendo-account-page .shipendo-profile-content h2,
html .shipendo-account-page .shipendo-profile-content h2 {
  font-size: 22px;
}

html .shipendo-account-page .shipendo-profile-content h3,
html .shipendo-account-page .shipendo-profile-content h3 {
  font-size: 18px;
}

html .shipendo-account-page .shipendo-profile-content h4,
html .shipendo-account-page .shipendo-profile-content h4 {
  font-size: 16px;
}

html .shipendo-account-page .shipendo-profile-content a,
html .shipendo-account-page .shipendo-profile-content a {
  color: var(--shipendo-dl-info);
}

html .shipendo-account-page .shipendo-profile-content .item-list li a,
html .shipendo-account-page .shipendo-profile-content ul.menu > li a,
html .shipendo-account-page .shipendo-profile-content ul.links > li a,
html .shipendo-account-page .shipendo-profile-content > ul > li a,
html .shipendo-account-page .shipendo-profile-content > ol > li a,
html .shipendo-account-page .shipendo-profile-content .item-list li a,
html .shipendo-account-page .shipendo-profile-content ul.menu > li a,
html .shipendo-account-page .shipendo-profile-content ul.links > li a,
html .shipendo-account-page .shipendo-profile-content > ul > li a,
html .shipendo-account-page .shipendo-profile-content > ol > li a {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 4px;
  box-shadow: none;
  padding: 11px 13px;
  transform: none;
}

html .shipendo-account-page .shipendo-profile-content .views-exposed-form,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-filter,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-filters,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-filter,
html .shipendo-account-page .shipendo-profile-content .views-exposed-form,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-filter,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-filters,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-filter {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content input.form-text,
html .shipendo-account-page .shipendo-profile-content input.form-email,
html .shipendo-account-page .shipendo-profile-content input.form-password,
html .shipendo-account-page .shipendo-profile-content input[type="date"],
html .shipendo-account-page .shipendo-profile-content input[type="number"],
html .shipendo-account-page .shipendo-profile-content select,
html .shipendo-account-page .shipendo-profile-content textarea,
html .shipendo-account-page .shipendo-profile-content input.form-text,
html .shipendo-account-page .shipendo-profile-content input.form-email,
html .shipendo-account-page .shipendo-profile-content input.form-password,
html .shipendo-account-page .shipendo-profile-content input[type="date"],
html .shipendo-account-page .shipendo-profile-content input[type="number"],
html .shipendo-account-page .shipendo-profile-content select,
html .shipendo-account-page .shipendo-profile-content textarea {
  border-color: var(--shipendo-dl-line-strong);
  border-radius: 4px;
  min-height: 42px;
}

html .shipendo-account-page .shipendo-profile-content input.form-submit,
html .shipendo-account-page .shipendo-profile-content button.form-submit,
html .shipendo-account-page .shipendo-profile-content input.form-submit,
html .shipendo-account-page .shipendo-profile-content button.form-submit {
  background: var(--shipendo-dl-strong);
  border: 1px solid var(--shipendo-dl-strong);
  border-radius: 4px;
  box-shadow: none;
  color: #fff;
  min-height: 42px;
}

html .shipendo-account-page .shipendo-profile-content table,
html .shipendo-account-page .shipendo-profile-content table {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content th,
html .shipendo-account-page .shipendo-profile-content th {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-muted);
}

@media (max-width: 900px) {
  html .shipendo-account-page,
  html .shipendo-account-page {
    padding: 20px;
  }

  html .shipendo-account-page .shipendo-profile-layout,
  html .shipendo-account-page .shipendo-profile-layout {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  html .shipendo-account-page .shipendo-profile-sidebar,
  html .shipendo-account-page .shipendo-profile-sidebar {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  html .shipendo-account-page,
  html .shipendo-account-page {
    padding: 16px;
  }

  html .shipendo-account-page .shipendo-profile-card,
  html .shipendo-account-page .shipendo-profile-card {
    padding: 20px 16px;
  }
}

/*
 * Component cascade bridge. The page-specific sheets predate the shared
 * language and contain decorative effects, oversized radii, and shadows.
 * Keep their data layouts and state classes, but make their visible surfaces
 * obey the neutral system even when the legacy account sheet is emitted late.
 */
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-detail,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-chart,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-performance,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-flow-card,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-alert,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-panel,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-source,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-header,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-notice,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-kpi,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-panel,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-disclosure,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-header,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-header,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-panel,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-kpi,
html .shipendo-account-page .shipendo-profile-content .shipendo-issues-overview-card,
html .shipendo-account-page .shipendo-profile-content .shipendo-exception-card {
  border-color: var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-chart {
  background: var(--shipendo-dl-strong);
  background-image: none;
  color: #fff;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-area {
  fill: rgba(79, 155, 232, .22);
  opacity: 1;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-line {
  stroke: var(--shipendo-dl-accent);
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-chart-visual circle {
  fill: var(--shipendo-dl-accent);
  stroke: var(--shipendo-dl-strong);
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-header,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-header,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-header,
html .shipendo-account-page .shipendo-profile-content .shipendo-issues-overview-card {
  background: var(--shipendo-dl-subtle);
  background-image: none;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-header::after,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-header::after,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-header::after {
  display: none;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-filter,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-filters,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-filter,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-filter {
  background: var(--shipendo-dl-subtle);
  background-image: none;
  border-color: var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content select,
html .shipendo-account-page .shipendo-profile-content input[type="search"] {
  appearance: auto;
  background-image: none;
  border-color: var(--shipendo-dl-line-strong);
  border-radius: 4px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-stat,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-stat.is-actionable,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-actions > a,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-kpi,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-kpi,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-lines,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-issues-overview-card,
html .shipendo-account-page .shipendo-profile-content .shipendo-exception-card {
  box-shadow: none;
}

/* Keep every owner-facing data table aligned with its panel width. */
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-table-wrap,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-table-wrap,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-carriers,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-carrier-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-cost-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-table-wrap,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-table,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-table {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-carrier-row,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-cost-row,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-row {
  box-sizing: border-box;
  width: 100%;
}

/* Give the owner fee overview a clear hierarchy and a usable scroll boundary. */
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-page {
  box-sizing: border-box;
  margin: 18px 0 0;
  max-width: 100%;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-header {
  background: #edf5ff;
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 20px 22px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-eyebrow,
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section-eyebrow {
  color: var(--shipendo-dl-accent-ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  margin: 0 0 7px;
  text-transform: uppercase;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-header h2 {
  color: var(--shipendo-dl-ink);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.035em;
  line-height: 1.1;
  margin: 0;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0 0 16px;
  max-width: 100%;
  overflow: hidden;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section-header {
  align-items: center;
  background: #f4f8fd;
  border-bottom: 1px solid var(--shipendo-dl-line);
  display: flex;
  justify-content: space-between;
  padding: 17px 20px 15px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section-header h3 {
  color: var(--shipendo-dl-ink);
  font-size: 18px;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section-header .shipendo-user-fees-section-eyebrow {
  margin-bottom: 5px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #a9bfd9 #eef4fa;
  scrollbar-width: thin;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table,
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table-wrap > table.sticky-header {
  background: transparent;
  border: 0;
  border-collapse: separate;
  border-radius: 0;
  border-spacing: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  table-layout: auto;
  width: 100%;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-fulfillment {
  min-width: 560px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-rates {
  min-width: 760px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-carrier-fees {
  min-width: 820px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table thead th,
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table-wrap > table.sticky-header thead th {
  background: #eaf2fc;
  border-bottom: 1px solid var(--shipendo-dl-line);
  color: #3d5e84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 13px 14px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table thead th a,
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table-wrap > table.sticky-header thead th a {
  color: inherit;
  text-decoration: none;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table tbody td,
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table-wrap > table.sticky-header tbody td {
  border-bottom: 1px solid #e1eaf5;
  color: var(--shipendo-dl-ink);
  font-size: 13px;
  line-height: 1.35;
  padding: 12px 14px;
  vertical-align: middle;
  white-space: nowrap;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table tbody tr:hover td {
  background: #f1f7ff;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table tbody tr:last-child td {
  border-bottom: 0;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table tbody td.subheading {
  background: #eaf2fc;
  border-bottom-color: #cbddef;
  color: var(--shipendo-dl-ink);
  font-size: 13px;
  font-weight: 800;
  padding-bottom: 10px;
  padding-top: 10px;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-fulfillment tbody td:nth-child(2),
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-rates tbody td:nth-child(4),
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-carrier-fees tbody td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-fulfillment tbody td:nth-child(3),
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-rates tbody td:nth-child(5),
html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table.is-carrier-fees tbody td:nth-child(5) {
  color: var(--shipendo-dl-muted);
  font-variant-numeric: tabular-nums;
}

html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section > .pager {
  margin: 14px 18px 16px;
}

@media (max-width: 680px) {
  html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-page {
    margin-top: 12px;
  }

  html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-header {
    border-radius: 8px;
    padding: 17px 16px;
  }

  html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section-header {
    padding: 15px 16px 13px;
  }

  html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-section-header h3 {
    font-size: 16px;
  }

  html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table thead th,
  html body.page-user-fees .shipendo-profile-content .shipendo-user-fees-table tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }
}

html .shipendo-account-page .shipendo-profile-content .shipendo-profile-status,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-dashboard-current,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-hero > span,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-order-status,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-status,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-freshness,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-shops span,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-shops b,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-badge,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-badge,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-freshness,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-freshness,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-pill,
html .shipendo-account-page .shipendo-profile-content .shipendo-issues-overview-counts span,
html .shipendo-account-page .shipendo-profile-content .shipendo-exception-filter,
html .shipendo-account-page .shipendo-profile-content .shipendo-exception-filter b,
html .shipendo-account-page .shipendo-profile-content .shipendo-exception-status {
  border-radius: 4px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-shops span {
  background: var(--shipendo-dl-info);
  color: #fff;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-shops b {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-muted);
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-trend-track {
  border-radius: 4px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-trend-bar {
  background: var(--shipendo-dl-info);
  border-radius: 4px;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-chart-column > i {
  background: var(--shipendo-dl-info);
  border-radius: 4px 4px 1px 1px;
  box-shadow: none;
}

/* Keep legacy profile forms and reports in the same restrained visual system. */
html .shipendo-account-page .shipendo-account-card {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 8px;
  box-shadow: none;
  padding: 28px 32px;
}

html .shipendo-account-page .shipendo-account-card h2 {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}

html .shipendo-account-page .shipendo-account-form input.form-text,
html .shipendo-account-page .shipendo-account-form input.form-submit {
  border-radius: 4px;
  box-shadow: none;
  min-height: 42px;
}

html .shipendo-account-page .shipendo-account-form input.form-submit {
  background: var(--shipendo-dl-strong);
  border: 1px solid var(--shipendo-dl-strong);
  color: #fff;
}

html .shipendo-account-page .shipendo-account-form input.form-text:focus,
html .shipendo-account-page .shipendo-account-form input.form-submit:focus-visible {
  box-shadow: none;
  outline: 2px solid var(--shipendo-dl-info);
  outline-offset: 1px;
}

html .shipendo-account-page .shipendo-profile-content form fieldset,
html .shipendo-account-page .shipendo-profile-content .shipendo-settings-section,
html .shipendo-account-page .shipendo-profile-content .shipendo-shop-id,
html .shipendo-account-page .shipendo-profile-content .shipendo-credit-summary,
html .shipendo-account-page .shipendo-profile-content .shipendo-credit-items-fieldset,
html .shipendo-account-page .shipendo-profile-content .shipendo-credit-items-fieldset .form-item,
html .shipendo-account-page .shipendo-profile-content .form-item-credit-date,
html .shipendo-account-page .shipendo-profile-content .form-item-credit-type,
html .shipendo-account-page .shipendo-profile-content form .form-actions,
html .shipendo-account-page .shipendo-profile-content .shipendo-shop-settings-form > .form-actions {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content form fieldset fieldset {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  border-radius: 6px;
  box-shadow: none;
}

html .shipendo-account-page .shipendo-profile-content form input:focus,
html .shipendo-account-page .shipendo-profile-content form select:focus,
html .shipendo-account-page .shipendo-profile-content form textarea:focus {
  border-color: var(--shipendo-dl-info);
  box-shadow: none;
  outline: 2px solid var(--shipendo-dl-info);
  outline-offset: 1px;
}

html .shipendo-account-page .shipendo-profile-content .shipendo-shop-settings-form fieldset.collapsible > legend a,
html .shipendo-account-page .shipendo-profile-report-page .view-content td a,
html .shipendo-account-page .shipendo-profile-report-page .item-list ul.pager li a,
html .shipendo-account-page .shipendo-profile-report-page .item-list ul.pager li.pager-current,
html .shipendo-account-page .shipendo-profile-content .view-content td:last-child a {
  background: var(--shipendo-dl-surface);
  border-color: var(--shipendo-dl-line);
  border-radius: 4px;
  box-shadow: none;
  color: var(--shipendo-dl-info);
  transform: none;
}

html .shipendo-account-page .shipendo-account-menu a:hover,
html .shipendo-account-page .shipendo-account-menu a:focus-visible {
  box-shadow: none;
  transform: none;
}

/* Shared mobile navigation behavior. The ready class is added by the small
 * controller only after the toggle and focus behavior are available, leaving
 * the full sidebar visible as a safe no-script fallback. */
.shipendo-mobile-sidebar-toggle {
  align-items: center;
  appearance: none;
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 4px;
  color: var(--shipendo-dl-ink);
  cursor: pointer;
  display: none;
  font: 600 12px/1 var(--shipendo-dl-font);
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
}

.shipendo-mobile-sidebar-toggle:hover,
.shipendo-mobile-sidebar-toggle:focus-visible {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-info);
  color: var(--shipendo-dl-ink);
}

.shipendo-mobile-sidebar-toggle-icon {
  display: inline-flex;
  flex: 0 0 16px;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  width: 16px;
}

.shipendo-mobile-sidebar-toggle-icon span {
  background: currentColor;
  border-radius: 1px;
  display: block;
  height: 2px;
  width: 16px;
}

.shipendo-sidebar-overlay {
  background: rgba(21, 22, 21, .34);
  border: 0;
  cursor: pointer;
  display: none;
  inset: 30px 0 0;
  padding: 0;
  position: fixed;
  z-index: 1000;
}

body.is-shipendo-sidebar-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  body.shipendo-mobile-nav-ready .shipendo-mobile-sidebar-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1002;
  }

  body.shipendo-mobile-nav-ready .shipendo-sidebar-overlay:not([hidden]) {
    display: block;
  }

  body.shipendo-mobile-nav-ready .shipendo-admin-sidebar,
  body.shipendo-mobile-nav-ready .shipendo-profile-sidebar,
  body.shipendo-mobile-nav-ready .shipendo-workspace-sidebar {
    background: var(--shipendo-dl-surface);
    border-bottom: 0;
    border-right: 1px solid var(--shipendo-dl-line);
    bottom: 0;
    box-sizing: border-box;
    left: 0;
    max-width: calc(100vw - 24px);
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 16px 32px;
    position: fixed;
    top: 30px;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(300px, calc(100vw - 24px));
    z-index: 1001;
    -webkit-overflow-scrolling: touch;
  }

  body.shipendo-mobile-nav-ready .shipendo-admin-sidebar.is-open,
  body.shipendo-mobile-nav-ready .shipendo-profile-sidebar.is-open,
  body.shipendo-mobile-nav-ready .shipendo-workspace-sidebar.is-open {
    transform: translateX(0);
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-header {
    align-items: center;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-heading {
    flex: 1 1 auto;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-nav a,
  html .shipendo-account-page .shipendo-account-menu a,
  html .shipendo-account-page .shipendo-user-tabs .tabs a {
    min-height: 44px;
  }

  html .shipendo-account-page .shipendo-account-menu,
  html .shipendo-account-page .shipendo-user-tabs .tabs {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  html .shipendo-account-page .shipendo-account-menu a,
  html .shipendo-account-page .shipendo-user-tabs .tabs a {
    flex: 0 0 auto;
    width: 100%;
  }

  .shipendo-account-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
  }

  .shipendo-account-header .shipendo-account-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .shipendo-account-header .shipendo-mobile-sidebar-toggle {
    flex: 0 0 auto;
    margin-left: auto;
    order: 2;
    position: relative;
    z-index: 1002;
  }

  .shipendo-account-header .shipendo-account-back {
    flex-basis: 100%;
    order: 3;
  }
}

@media (max-width: 640px) {
  .shipendo-mobile-sidebar-toggle {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.shipendo-mobile-nav-ready .shipendo-admin-sidebar,
  body.shipendo-mobile-nav-ready .shipendo-profile-sidebar,
  body.shipendo-mobile-nav-ready .shipendo-workspace-sidebar {
    padding: 16px 12px 24px;
    width: min(296px, calc(100vw - 24px));
  }

  .shipendo-account-header {
    align-items: center;
    flex-direction: row;
  }

  .shipendo-account-header .shipendo-account-back {
    margin-top: 2px;
  }
}

/* Shared operational primitives. Keep these selectors inside the two
 * authenticated shells so public marketing and legacy administration pages
 * retain their owning presentation. */
body[class*="page-admin-shipendo"] .shipendo-admin-content,
html .shipendo-account-page .shipendo-profile-content {
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-text,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-email,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-password,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-number,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-url,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-tel,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="date"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="datetime-local"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="month"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="time"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="search"],
body[class*="page-admin-shipendo"] .shipendo-admin-content select,
body[class*="page-admin-shipendo"] .shipendo-admin-content textarea,
html .shipendo-account-page .shipendo-profile-content input.form-text,
html .shipendo-account-page .shipendo-profile-content input.form-email,
html .shipendo-account-page .shipendo-profile-content input.form-password,
html .shipendo-account-page .shipendo-profile-content input.form-number,
html .shipendo-account-page .shipendo-profile-content input.form-url,
html .shipendo-account-page .shipendo-profile-content input.form-tel,
html .shipendo-account-page .shipendo-profile-content input[type="date"],
html .shipendo-account-page .shipendo-profile-content input[type="datetime-local"],
html .shipendo-account-page .shipendo-profile-content input[type="month"],
html .shipendo-account-page .shipendo-profile-content input[type="time"],
html .shipendo-account-page .shipendo-profile-content input[type="search"],
html .shipendo-account-page .shipendo-profile-content select,
html .shipendo-account-page .shipendo-profile-content textarea {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 14px;
  line-height: 1.4;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  transition: border-color .16s ease, background-color .16s ease;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content textarea,
html .shipendo-account-page .shipendo-profile-content textarea {
  min-height: 96px;
  resize: vertical;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="checkbox"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="radio"],
html .shipendo-account-page .shipendo-profile-content input[type="checkbox"],
html .shipendo-account-page .shipendo-profile-content input[type="radio"] {
  accent-color: var(--shipendo-dl-info);
  height: 20px;
  min-height: 20px;
  min-width: 20px;
  padding: 0;
  width: 20px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input:focus,
body[class*="page-admin-shipendo"] .shipendo-admin-content select:focus,
body[class*="page-admin-shipendo"] .shipendo-admin-content textarea:focus,
html .shipendo-account-page .shipendo-profile-content input:focus,
html .shipendo-account-page .shipendo-profile-content select:focus,
html .shipendo-account-page .shipendo-profile-content textarea:focus {
  border-color: var(--shipendo-dl-info);
  outline: 2px solid var(--shipendo-dl-info);
  outline-offset: 1px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item,
html .shipendo-account-page .shipendo-profile-content .form-item {
  margin-bottom: 18px;
  max-width: 100%;
  min-width: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item:not(.form-type-checkbox):not(.form-type-radio) > label,
html .shipendo-account-page .shipendo-profile-content .form-item:not(.form-type-checkbox):not(.form-type-radio) > label,
body[class*="page-admin-shipendo"] .shipendo-admin-content .fieldset-legend,
html .shipendo-account-page .shipendo-profile-content .fieldset-legend {
  color: var(--shipendo-dl-ink);
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item .description,
html .shipendo-account-page .shipendo-profile-content .form-item .description {
  color: var(--shipendo-dl-muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-type-checkbox,
body[class*="page-admin-shipendo"] .shipendo-admin-content .form-type-radio,
html .shipendo-account-page .shipendo-profile-content .form-type-checkbox,
html .shipendo-account-page .shipendo-profile-content .form-type-radio {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-type-checkbox label,
body[class*="page-admin-shipendo"] .shipendo-admin-content .form-type-radio label,
html .shipendo-account-page .shipendo-profile-content .form-type-checkbox label,
html .shipendo-account-page .shipendo-profile-content .form-type-radio label {
  margin: 1px 0 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item input.error,
body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item select.error,
body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item textarea.error,
html .shipendo-account-page .shipendo-profile-content .form-item input.error,
html .shipendo-account-page .shipendo-profile-content .form-item select.error,
html .shipendo-account-page .shipendo-profile-content .form-item textarea.error {
  border-color: var(--shipendo-dl-danger);
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item .error,
html .shipendo-account-page .shipendo-profile-content .form-item .error {
  color: var(--shipendo-dl-danger);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .form-actions,
html .shipendo-account-page .shipendo-profile-content .form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content fieldset,
html .shipendo-account-page .shipendo-profile-content fieldset {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0 0 20px;
  max-width: 100%;
  padding: 16px 18px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content fieldset > legend,
html .shipendo-account-page .shipendo-profile-content fieldset > legend {
  color: var(--shipendo-dl-ink);
  padding: 0 6px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content button,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="submit"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="button"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="reset"],
body[class*="page-admin-shipendo"] .shipendo-admin-content .button,
html .shipendo-account-page .shipendo-profile-content button,
html .shipendo-account-page .shipendo-profile-content input[type="submit"],
html .shipendo-account-page .shipendo-profile-content input[type="button"],
html .shipendo-account-page .shipendo-profile-content input[type="reset"],
html .shipendo-account-page .shipendo-profile-content .button {
  align-items: center;
  appearance: none;
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 4px;
  box-sizing: border-box;
  color: var(--shipendo-dl-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--shipendo-dl-font);
  font-size: 13px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.2;
  max-width: 100%;
  min-height: 44px;
  padding: 0 14px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content button:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content button:focus-visible,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="button"]:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="button"]:focus-visible,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="reset"]:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="reset"]:focus-visible,
body[class*="page-admin-shipendo"] .shipendo-admin-content .button:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content .button:focus-visible,
html .shipendo-account-page .shipendo-profile-content button:hover,
html .shipendo-account-page .shipendo-profile-content button:focus-visible,
html .shipendo-account-page .shipendo-profile-content input[type="button"]:hover,
html .shipendo-account-page .shipendo-profile-content input[type="button"]:focus-visible,
html .shipendo-account-page .shipendo-profile-content input[type="reset"]:hover,
html .shipendo-account-page .shipendo-profile-content input[type="reset"]:focus-visible,
html .shipendo-account-page .shipendo-profile-content .button:hover,
html .shipendo-account-page .shipendo-profile-content .button:focus-visible {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-info);
  color: var(--shipendo-dl-ink);
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="submit"],
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-submit,
body[class*="page-admin-shipendo"] .shipendo-admin-content button.form-submit,
html .shipendo-account-page .shipendo-profile-content input[type="submit"],
html .shipendo-account-page .shipendo-profile-content input.form-submit,
html .shipendo-account-page .shipendo-profile-content button.form-submit,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-filter button,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-filters button,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-filter button,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-button,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-clear {
  background: var(--shipendo-dl-primary);
  border-color: var(--shipendo-dl-primary);
  color: #fff;
}

html body[class*="page-admin-shipendo"] .shipendo-admin-content .form-submit,
html .shipendo-account-page .shipendo-profile-content .form-submit {
  min-height: 44px;
}

/* The fulfillment component has an ID-scoped legacy rule; keep the shared
 * touch target authoritative without changing its workflow or markup. */
html body[class*="page-admin-shipendo"] #shipendo-fulfillment-admin input.form-submit,
html body[class*="page-admin-shipendo"] #shipendo-fulfillment-admin .shipendo-load-method-link {
  min-height: 44px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .shipendo-load-method-link,
html .shipendo-account-page .shipendo-profile-content .shipendo-load-method-link,
body[class*="page-admin-shipendo"] .shipendo-admin-content fieldset.collapsible > legend a,
html .shipendo-account-page .shipendo-profile-content fieldset.collapsible > legend a,
body[class*="page-admin-shipendo"] .shipendo-admin-content .fieldset-title,
html .shipendo-account-page .shipendo-profile-content .fieldset-title,
body[class*="page-admin-shipendo"] .shipendo-admin-content .form-item .description a,
html .shipendo-account-page .shipendo-profile-content .form-item .description a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="file"],
html .shipendo-account-page .shipendo-profile-content input[type="file"] {
  box-sizing: border-box;
  color: var(--shipendo-dl-ink);
  font-family: var(--shipendo-dl-font);
  font-size: 13px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="submit"]:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="submit"]:focus-visible,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-submit:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-submit:focus-visible,
body[class*="page-admin-shipendo"] .shipendo-admin-content button.form-submit:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content button.form-submit:focus-visible,
html .shipendo-account-page .shipendo-profile-content input[type="submit"]:hover,
html .shipendo-account-page .shipendo-profile-content input[type="submit"]:focus-visible,
html .shipendo-account-page .shipendo-profile-content input.form-submit:hover,
html .shipendo-account-page .shipendo-profile-content input.form-submit:focus-visible,
html .shipendo-account-page .shipendo-profile-content button.form-submit:hover,
html .shipendo-account-page .shipendo-profile-content button.form-submit:focus-visible,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-filter button:hover,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-filter button:focus-visible,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-filters button:hover,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-filters button:focus-visible,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-filter button:hover,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics-filter button:focus-visible,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-button:hover,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-analytics .sua-button:focus-visible,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-clear:hover,
html .shipendo-account-page .shipendo-profile-content .shipendo-user-orders-clear:focus-visible {
  background: var(--shipendo-dl-primary-hover);
  border-color: var(--shipendo-dl-primary-hover);
  color: #fff;
}

body[class*="page-admin-shipendo"] .shipendo-admin-messages .messages,
body[class*="page-admin-shipendo"] .shipendo-admin-content .messages,
html .shipendo-account-page .shipendo-profile-messages .messages,
html .shipendo-account-page .shipendo-profile-content .messages {
  background: var(--shipendo-dl-info-bg);
  background-image: none;
  border: 1px solid var(--shipendo-dl-line);
  border-left: 3px solid var(--shipendo-dl-info);
  border-radius: 6px;
  color: var(--shipendo-dl-ink);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 12px 14px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-messages .messages.error,
body[class*="page-admin-shipendo"] .shipendo-admin-content .messages.error,
html .shipendo-account-page .shipendo-profile-messages .messages.error,
html .shipendo-account-page .shipendo-profile-content .messages.error {
  background: var(--shipendo-dl-danger-bg);
  border-left-color: var(--shipendo-dl-danger);
}

body[class*="page-admin-shipendo"] .shipendo-admin-messages .messages.warning,
body[class*="page-admin-shipendo"] .shipendo-admin-content .messages.warning,
html .shipendo-account-page .shipendo-profile-messages .messages.warning,
html .shipendo-account-page .shipendo-profile-content .messages.warning {
  background: var(--shipendo-dl-warning-bg);
  border-left-color: var(--shipendo-dl-warning);
}

body[class*="page-admin-shipendo"] .shipendo-admin-messages .messages.status,
body[class*="page-admin-shipendo"] .shipendo-admin-content .messages.status,
html .shipendo-account-page .shipendo-profile-messages .messages.status,
html .shipendo-account-page .shipendo-profile-content .messages.status {
  background: var(--shipendo-dl-success-bg);
  border-left-color: var(--shipendo-dl-success);
}

body[class*="page-admin-shipendo"] .shipendo-admin-content table:not(.sticky-header),
html .shipendo-account-page .shipendo-profile-content table:not(.sticky-header) {
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line);
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  color: var(--shipendo-dl-ink);
  font-size: 13px;
  line-height: 1.45;
  max-width: 100%;
  table-layout: auto;
  width: 100%;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content table:not(.sticky-header) th,
html .shipendo-account-page .shipendo-profile-content table:not(.sticky-header) th {
  background: var(--shipendo-dl-subtle);
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content table:not(.sticky-header) td,
html .shipendo-account-page .shipendo-profile-content table:not(.sticky-header) td {
  border-color: var(--shipendo-dl-line);
  color: var(--shipendo-dl-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content table:not(.sticky-header) tbody tr:hover td,
html .shipendo-account-page .shipendo-profile-content table:not(.sticky-header) tbody tr:hover td {
  background: #fafaf7;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content table:not(.sticky-header) td a,
html .shipendo-account-page .shipendo-profile-content table:not(.sticky-header) td a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
  padding: 0 8px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-tabs a,
html .shipendo-account-page .shipendo-profile-report-page .item-list ul.pager li a,
html .shipendo-account-page .shipendo-profile-report-page .item-list ul.pager li.pager-current,
body[class*="page-admin-shipendo"] .pager li a,
html .shipendo-account-page .pager li a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
}

/* Pagination is a control group, not a row of oversized pills. Keep the
 * buttons compact and make the ellipsis read as a separator. The additional
 * account selector specificity wins over the legacy account stylesheet. */
body[class*="page-admin-shipendo"] .shipendo-admin-content .pager,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li {
  margin: 0;
  padding: 0;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li a,
body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-current,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li a,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-current {
  align-items: center;
  background: var(--shipendo-dl-surface);
  border: 1px solid var(--shipendo-dl-line-strong);
  border-radius: 8px;
  color: var(--shipendo-dl-info);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  justify-content: center;
  line-height: 1;
  min-height: 38px;
  min-width: 38px;
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-current,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-current {
  background: var(--shipendo-dl-primary);
  border-color: var(--shipendo-dl-primary);
  color: #fff;
  font-weight: 700;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-first a,
body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-previous a,
body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-next a,
body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-last a,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-first a,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-previous a,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-next a,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-last a {
  min-width: 0;
  padding: 0 12px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li.pager-ellipsis,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li.pager-ellipsis {
  align-items: center;
  color: var(--shipendo-dl-muted);
  display: inline-flex;
  min-height: 38px;
  padding: 0 3px;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li a:hover,
body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li a:focus-visible,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li a:hover,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li a:focus-visible {
  background: var(--shipendo-dl-info-bg);
  border-color: var(--shipendo-dl-info);
  color: var(--shipendo-dl-ink);
  text-decoration: none;
}

body[class*="page-admin-shipendo"] .shipendo-admin-content .pager li a:focus-visible,
html .shipendo-account-page .shipendo-profile-content .item-list ul.pager li a:focus-visible {
  outline: 2px solid var(--shipendo-dl-primary);
  outline-offset: 2px;
}

@media (min-width: 901px) {
  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"],
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] {
    display: table;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 900px) {
  body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-text,
  body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-email,
  body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-password,
  body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-number,
  body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-url,
  body[class*="page-admin-shipendo"] .shipendo-admin-content input.form-tel,
  body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="date"],
  body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="datetime-local"],
  body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="month"],
  body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="time"],
  body[class*="page-admin-shipendo"] .shipendo-admin-content input[type="search"],
  body[class*="page-admin-shipendo"] .shipendo-admin-content select,
  body[class*="page-admin-shipendo"] .shipendo-admin-content textarea,
  html .shipendo-account-page .shipendo-profile-content input.form-text,
  html .shipendo-account-page .shipendo-profile-content input.form-email,
  html .shipendo-account-page .shipendo-profile-content input.form-password,
  html .shipendo-account-page .shipendo-profile-content input.form-number,
  html .shipendo-account-page .shipendo-profile-content input.form-url,
  html .shipendo-account-page .shipendo-profile-content input.form-tel,
  html .shipendo-account-page .shipendo-profile-content input[type="date"],
  html .shipendo-account-page .shipendo-profile-content input[type="datetime-local"],
  html .shipendo-account-page .shipendo-profile-content input[type="month"],
  html .shipendo-account-page .shipendo-profile-content input[type="time"],
  html .shipendo-account-page .shipendo-profile-content input[type="search"],
  html .shipendo-account-page .shipendo-profile-content select,
  html .shipendo-account-page .shipendo-profile-content textarea {
    min-height: 44px;
    width: 100%;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content .form-actions > *,
  html .shipendo-account-page .shipendo-profile-content .form-actions > * {
    max-width: 100%;
    min-height: 44px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content .shipendo-order-exception-table-wrap,
  html .shipendo-account-page .shipendo-profile-content .view-content,
  html .shipendo-account-page .shipendo-profile-content .shipendo-user-stock-table-wrap {
    max-width: 100%;
    overflow: visible;
    padding-bottom: 0;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"],
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] {
    border: 0;
    border-radius: 0;
    display: block;
    min-width: 0 !important;
    overflow: visible;
    width: 100% !important;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] thead,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] thead {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody {
    display: block;
    width: 100%;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody tr,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody tr {
    background: var(--shipendo-dl-surface);
    border: 1px solid var(--shipendo-dl-line);
    border-radius: 6px;
    display: block;
    margin: 0 0 12px;
    overflow: hidden;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td {
    align-items: baseline;
    background: transparent;
    border: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    min-width: 0;
    padding: 9px 12px;
    text-align: left;
    white-space: normal !important;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td::before,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td::before {
    color: var(--shipendo-dl-muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.35;
    overflow-wrap: anywhere;
    text-transform: uppercase;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td[data-label=""],
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td[data-label=""] {
    display: block;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td[data-label=""]::before,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td[data-label=""]::before {
    display: none;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td:first-child,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td:first-child {
    font-weight: 600;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td > *,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td > * {
    max-width: 100%;
    min-width: 0;
  }

  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td a,
  body[class*="page-admin-shipendo"] .shipendo-admin-content table[data-shipendo-responsive-table="true"] tbody td button,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td a,
  html .shipendo-account-page .shipendo-profile-content table[data-shipendo-responsive-table="true"] tbody td button {
    min-height: 44px;
  }
}

/* Fulfillment execution is a focused workspace rather than a navigation
 * destination. Keep the route's existing content and actions intact while
 * giving the workflow the full available canvas at every viewport. */
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-sidebar,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-mobile-sidebar-toggle,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-sidebar-overlay {
  display: none;
}

/* The focused fulfillment canvas also removes the shared shell and form caps;
 * ordinary admin pages retain their readable line lengths. */
body[class~="page-admin-shipendo-fulfillment-fulfill"] .region-content,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-header,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-main {
  max-width: none;
  width: 100%;
}

body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-content,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-content > form,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-content > .form,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-content > .view,
body[class~="page-admin-shipendo-fulfillment-fulfill"] .shipendo-admin-content form {
  max-width: none;
  width: 100%;
}

body[class~="page-admin-shipendo-fulfillment-fulfill"] #shipendo-fulfillment-admin {
  max-width: none;
}

/* The account/workspace rail is the operator's primary navigation. Keep it
 * compact, grouped, and action-oriented like a commerce control plane. */
html .shipendo-account-page .shipendo-operator-nav {
  border: 0;
  margin: 24px 0 0;
  padding: 0;
}

html .shipendo-account-page .shipendo-operator-nav-group {
  margin: 22px 0 0;
}

html .shipendo-account-page .shipendo-operator-nav-group--home {
  margin-top: 18px;
}

html .shipendo-account-page .shipendo-operator-nav-group--home .shipendo-operator-nav-label {
  display: none;
}

html .shipendo-account-page .shipendo-operator-nav-label {
  color: var(--shipendo-dl-muted);
  font-family: var(--shipendo-dl-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  margin: 0 10px 7px;
  text-transform: uppercase;
}

html .shipendo-account-page .shipendo-operator-nav-list {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

html .shipendo-account-page .shipendo-operator-nav-item {
  margin: 0;
  padding: 0;
}

html .shipendo-account-page .shipendo-operator-nav-link {
  align-items: center;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--shipendo-dl-muted);
  display: flex;
  font-family: var(--shipendo-dl-font);
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  width: 100%;
}

html .shipendo-account-page .shipendo-account-nav-icon {
  align-items: center;
  color: var(--shipendo-dl-muted);
  display: inline-flex;
  flex: 0 0 20px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

html .shipendo-account-page .shipendo-account-nav-icon svg {
  display: block;
  height: 20px;
  width: 20px;
}

html .shipendo-account-page .shipendo-operator-nav-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

html .shipendo-account-page .shipendo-operator-nav-link:hover,
html .shipendo-account-page .shipendo-operator-nav-link:focus-visible {
  background: var(--shipendo-dl-info-bg);
  border-color: var(--shipendo-dl-line);
  border-left-color: var(--shipendo-dl-primary);
  color: var(--shipendo-dl-primary);
  outline: 0;
}

html .shipendo-account-page .shipendo-operator-nav-link.is-active {
  background: var(--shipendo-dl-primary);
  border-color: var(--shipendo-dl-primary);
  border-left-color: var(--shipendo-dl-primary);
  color: #fff;
  font-weight: 700;
}

html .shipendo-account-page .shipendo-operator-nav-link:hover .shipendo-account-nav-icon,
html .shipendo-account-page .shipendo-operator-nav-link:focus-visible .shipendo-account-nav-icon {
  color: var(--shipendo-dl-primary);
}

html .shipendo-account-page .shipendo-operator-nav-link.is-active .shipendo-account-nav-icon {
  color: #fff;
}

@media (max-width: 900px) {
  html .shipendo-account-page .shipendo-operator-nav-link {
    min-height: 44px;
  }

  html .shipendo-account-page .shipendo-operator-nav-group {
    margin-top: 20px;
  }
}
