:root {
  --bg: #eef3f8;
  --bg-soft: #e3ebf4;
  --paper: #ffffff;
  --paper-strong: #f6f8fb;
  --ink: #15223b;
  --muted: #4c5f77;
  --line: rgba(15, 34, 67, 0.20);
  --line-strong: rgba(15, 34, 67, 0.30);
  --primary: #12315f;
  --accent: #2d81ff;
  --accent-soft: rgba(45, 129, 255, 0.1);
  --accent-strong: #19b3a8;
  --success: #1f6a3f;
  --success-soft: rgba(38, 122, 72, 0.12);
  --warning: #8c6a2e;
  --warning-soft: rgba(163, 112, 27, 0.11);
  --danger: #b55145;
  --danger-soft: rgba(181, 81, 69, 0.10);
  --info: #00546c;
  --info-soft: rgba(0, 97, 124, 0.08);
  --surface-tint: rgba(247, 251, 255, 0.92);
  --surface-hover: rgba(45, 129, 255, 0.06);
  --field-bg: #ffffff;
  --field-border: rgba(18, 49, 95, 0.78);
  --field-border-hover: rgba(18, 49, 95, 0.96);
  --field-shadow: inset 0 0 0 1px rgba(18, 49, 95, 0.14), 0 2px 6px rgba(15, 34, 67, 0.14);
  --field-focus-shadow: 0 0 0 3px rgba(45, 129, 255, 0.30), 0 0 0 1px rgba(45, 129, 255, 0.48), 0 3px 8px rgba(15, 34, 67, 0.16);
  --brand-gradient: linear-gradient(135deg, var(--accent), var(--accent-strong));
  --panel-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 252, 0.98));
  --section-bg: #f3f6fa;
  --section-bg-strong: #edf3f9;
  --table-head: #e5edf6;
  --table-row-alt: #f8fbff;
  --table-row-hover: #eef5ff;
  --shadow: 0 10px 24px rgba(15, 34, 67, 0.10);
  --focus: #2d81ff;
  --radius: 8px;
  --app-max-width: 1680px;
  --app-gutter: clamp(12px, 2vw, 28px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Poppins", "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: var(--primary);
}

button, input, select {
  font: inherit;
}

/* The hidden attribute is the source of truth for permission-dependent
   controls. Author component styles must never accidentally reveal them. */
[hidden] {
  display: none !important;
}

.page-shell {
  width: min(calc(100vw - var(--app-gutter) - var(--app-gutter)), var(--app-max-width));
  margin: clamp(8px, 1vw, 16px) auto 24px;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.shop-data-import {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

.shop-data-import summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.shop-data-import p {
  color: var(--muted);
}

.shop-data-import-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-data-import-form label {
  font-weight: 600;
}

.top-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 0;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-gradient);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 16px;
  z-index: 10;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 12px;
  border-radius: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  background: var(--brand-gradient);
  box-shadow: 0 7px 16px rgba(25, 179, 168, 0.34);
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.64rem;
  cursor: pointer;
  text-align: left;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--primary);
}

.nav-link.is-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: inset 3px 0 0 var(--accent-strong), 0 4px 12px rgba(15, 34, 67, 0.16);
}

.nav-link.has-order-alert::after {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.nav-link.has-order-alert.is-active::after {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-auth-link {
  margin-left: 0;
  margin-top: 6px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-auth-link.is-authenticated {
  background: var(--success-soft);
  border: 1px solid rgba(38, 122, 72, 0.22);
  color: var(--success);
}

.admin-auth-icon {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
}

.admin-auth-btn-note {
  font-size: 0.65rem;
  text-transform: none;
  letter-spacing: normal;
}

.layout {
  display: block;
  width: 100%;
  min-width: 0;
}

.panel {
  width: 100%;
  min-width: 0;
  background: var(--panel-gradient);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.system-health-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(163, 112, 27, 0.24);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.84rem;
  line-height: 1.35;
}

.system-health-banner.is-error {
  border-color: rgba(181, 81, 69, 0.28);
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.instructions,
.shipments {
  grid-column: 1 / -1;
}

.view-section {
  display: none;
}

.view-section.is-active {
  display: grid;
  gap: 24px;
}

.landing-panel {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.landing-panel::before {
  content: none;
}

.landing-panel::after {
  content: none;
}

.landing-logo {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 118px;
  margin: 0 auto 22px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.landing-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  font-weight: 600;
}

#landing-copy,
.landing-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 58ch;
  position: relative;
  z-index: 1;
}

#landing-title,
.landing-title {
  margin: 0 0 8px;
  font-size: 1.95rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

#landing-title {
  position: relative;
  z-index: 1;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 300px);
  gap: 24px;
  align-items: start;
}

.landing-stat-grid {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.landing-stat-grid li {
  padding: 10px 12px;
  border: 1px solid rgba(15, 34, 67, 0.12);
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--primary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.landing-hero-grid .overview-grid {
  margin-top: 22px;
}

.landing-actions {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.overview-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--section-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.overview-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.overview-subhead {
  margin-top: 26px;
}

.overview-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.overview-card {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--section-bg);
}

.overview-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.overview-subhead {
  margin-top: 26px;
}

.overview-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.settings-links {
  display: grid;
  gap: 6px;
  margin: -2px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: var(--section-bg-strong);
}

.settings-links span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.settings-links a {
  font-weight: bold;
  word-break: break-all;
}

.settings-intro {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--section-bg);
}

.health-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.health-status-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.health-status-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--section-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  overflow-wrap: anywhere;
}

.health-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.health-status-head strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.health-status-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.health-status-meta {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.settings {
  display: grid;
  gap: 18px;
}

.settings-layout {
  display: block;
}

.settings-side-nav {
  display: none;
}

.top-nav .settings-side-nav {
  gap: 4px;
  margin-top: 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.settings-nav-visible .top-nav .settings-side-nav {
  display: grid;
}

.settings-menu-link {
  position: relative;
  width: 100%;
  min-height: 28px;
  padding: 6px 10px 6px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.settings-menu-link:hover,
.settings-menu-link.is-active {
  border-color: rgba(45, 129, 255, 0.22);
  background: var(--primary);
  color: #ffffff;
}

.settings-menu-link.is-active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.settings-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.settings-panel {
  display: none !important;
}

.settings-panel.is-active {
  display: grid !important;
}

label.settings-panel.is-active {
  display: grid !important;
}

.settings .integration-card {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.flow-panel {
  display: grid;
  gap: 18px;
}

.flow-diagnostics {
  padding: 12px 14px;
  border: 1px solid rgba(181, 81, 69, 0.28);
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
  line-height: 1.5;
  font-size: 0.88rem;
}

.flow-diagnostics.is-warning {
  border-color: rgba(163, 112, 27, 0.30);
  background: var(--warning-soft);
  color: var(--warning);
}

.sync-countdown {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--section-bg);
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.4;
}

.report-panel {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.report-panel h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uninvoiced-report-body {
  display: grid;
  gap: 14px;
}

.uninvoiced-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-strong);
  overflow: hidden;
}

.uninvoiced-group-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--surface-hover);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.uninvoiced-group-title,
.uninvoiced-group-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.uninvoiced-group-actions {
  justify-content: flex-end;
  row-gap: 8px;
}

.uninvoiced-group-actions span {
  color: var(--muted);
}

.uninvoiced-recipient-input {
  width: min(320px, 100%);
  min-width: 220px;
}

.uninvoiced-mail-button {
  width: fit-content;
  padding-inline: 12px;
}

.uninvoiced-mail-status {
  min-width: 120px;
  white-space: nowrap;
  font-size: 0.78rem;
}

.invoice-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.invoice-summary-strip div {
  min-width: 0;
  padding: 7px 12px;
  background: var(--paper);
}

.invoice-summary-strip span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  line-height: 1.15;
}

.invoice-summary-strip strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.report-table-wrap {
  border: 0;
  background: transparent;
}

.report-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.report-table th,
.report-table td {
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 7px;
  padding-right: 7px;
  word-break: break-word;
}

.report-table th {
  font-size: 0.72rem;
  line-height: 1.1;
}

.report-table td {
  font-size: 0.82rem;
  line-height: 1.15;
}

.report-table th.numeric-cell,
.report-table td.numeric-cell {
  text-align: right;
  white-space: nowrap;
}

.report-table th.updated-cell,
.report-table td.updated-cell {
  white-space: nowrap;
}

.report-empty {
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 0.84rem;
}

.tiny-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 6px;
  min-height: 14px;
  border-radius: 999px;
  background: #b42318;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.uninvoiced-print-button {
  margin-left: auto;
}

.flow-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

#tsgg-status.is-loading,
.settings-note.is-loading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#tsgg-status.is-loading::before,
.settings-note.is-loading::before {
  content: "";
}

#tsgg-status.is-loading::before,
.settings-note.is-loading::before,
.inline-spinner {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(17, 17, 17, 0.16);
  border-top-color: rgba(17, 17, 17, 0.7);
  border-radius: 50%;
  animation: button-spin 0.75s linear infinite;
  flex: 0 0 auto;
}

.loading-table-cell {
  color: var(--muted);
  font-weight: 700;
}

.loading-table-cell .inline-spinner {
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
}

.flow-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.flow-toolbar label {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.flow-toolbar span {
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compact-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 0;
}

.compact-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #f2eee7;
  color: #5f5951;
}

.compact-badge.success {
  background: #e8f5ec;
  color: #215c35;
}

.compact-badge.warning {
  background: #fff4df;
  color: #805410;
}

.compact-badge.error {
  background: #fdebea;
  color: #8d1f1f;
}

.compact-badge.muted {
  background: #f2eee7;
  color: #5f5951;
}

.detail-section-label {
  margin: 8px 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.flow-search {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.flow-search label {
  display: grid;
  gap: 8px;
}

.flow-search span,
.flow-search-status {
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-search input {
  width: 100%;
}

.toolbar select,
.toolbar input,
.flow-search select,
.flow-search input,
.flow-toolbar select,
.flow-toolbar input {
  min-height: 34px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.flow-match-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.created-cell,
.received-cell,
.weight-cell,
.eta-cell {
  white-space: nowrap;
  width: 92px;
  min-width: 92px;
  max-width: 92px;
}

.created-cell .subline,
.received-cell .subline,
.weight-cell .subline,
.eta-cell .eta-value,
.eta-value {
  font-size: 0.82rem;
  display: block;
}

.customer-cell .customer-name {
  display: block;
  font-size: 0.82rem;
  line-height: 1.15;
}

.customer-cell .customer-address {
  font-size: 0.74rem;
  line-height: 1.1;
}

.event-cell .event-text {
  display: block;
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 500;
}

.shipment-note-form {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.shipment-note-label {
  display: grid;
  gap: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shipment-note-input {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 8px 10px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.shipment-note-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.flow-actions-cell {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
}

.flow-match-input {
  flex: 1 1 140px;
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 10px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.84rem;
}

.flow-match-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

#flow-view .table-wrap {
  overflow-x: auto;
}

#flow-view table {
  min-width: 1136px;
  width: 1136px;
  table-layout: fixed;
}

#flow-view th,
#flow-view td {
  padding: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#flow-view thead th {
  font-size: 0.68rem;
  line-height: 1.15;
  letter-spacing: 0.05em;
}

#flow-view tbody td {
  font-size: 0.8rem;
  line-height: 1.18;
}

#flow-view table th:nth-child(1),
#flow-view table td:nth-child(1) {
  width: 122px;
}

#flow-view table th:nth-child(2),
#flow-view table td:nth-child(2) {
  width: 160px;
}

#flow-view table th:nth-child(3),
#flow-view table td:nth-child(3) {
  width: 82px;
}

#flow-view table th:nth-child(4),
#flow-view table td:nth-child(4) {
  width: 108px;
}

#flow-view table th:nth-child(5),
#flow-view table td:nth-child(5) {
  width: 170px;
}

#flow-view table th:nth-child(6),
#flow-view table td:nth-child(6) {
  width: 132px;
}

#flow-view table th:nth-child(7),
#flow-view table td:nth-child(7) {
  width: 92px;
}

#flow-view table th:nth-child(8),
#flow-view table td:nth-child(8) {
  display: none;
}

#flow-view table th:nth-child(9),
#flow-view table td:nth-child(9) {
  display: none;
}

#flow-view table th:nth-child(10),
#flow-view table td:nth-child(10) {
  display: none;
}

#flow-view table th:nth-child(11),
#flow-view table td:nth-child(11) {
  width: 270px;
  position: sticky;
  right: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: -1px 0 0 var(--line);
  overflow: visible;
  text-overflow: clip;
}

#flow-view thead th:nth-child(11) {
  z-index: 4;
  background: var(--table-head);
}

#flow-view .flow-match-cell {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
  white-space: normal;
}

#flow-view .flow-match-input {
  flex: 1 1 128px;
  min-width: 118px;
  max-width: 160px;
  padding: 6px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
}

#flow-view .mini-match-button,
#flow-view .tsgg-action-button {
  min-height: 24px;
  padding: 5px 7px;
  border-radius: 3px;
  font-size: 0.58rem;
  line-height: 1;
  white-space: nowrap;
}

#flow-view .tsgg-action-button {
  border: 0;
  background: var(--muted);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#flow-view .tsgg-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#flow-view .flow-match-link {
  font-size: 0.68rem;
  line-height: 1.2;
}

#flow-view tbody tr:nth-child(even) td:nth-child(11) {
  background: var(--table-row-alt);
}

#flow-view tbody tr:hover td:nth-child(11) {
  background: var(--table-row-hover);
}

#report-view .flow-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}

#report-view .flow-toolbar label {
  min-width: 0;
}

.shipment-tracking-link {
  display: inline-block;
  margin-bottom: 2px;
}

.shipment-reference-line {
  font-size: 0.66rem;
  line-height: 1.1;
  opacity: 0.72;
}

.shipment-reference-pair {
  display: grid;
  gap: 1px;
  margin-top: 2px;
}

.shipment-reference-line span {
  color: var(--muted);
}

.shipment-reference-line strong {
  color: var(--ink);
  font-weight: 700;
}

.blikk-project-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.mini-match-button {
  width: fit-content;
  padding-inline: 10px;
}

.mini-match-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.integration-card {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--section-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.integration-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 78ch;
}

.settings-search {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) auto;
  gap: 12px;
  align-items: end;
}

.settings-search label {
  display: grid;
  gap: 8px;
}

.settings-search input {
  width: 100%;
}

.captcha-preview {
  width: 260px;
  max-width: 100%;
  min-height: 72px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(188, 151, 94, 0.25);
  background: rgba(10, 10, 14, 0.32);
  padding: 10px;
}

.blikk-result-row {
  display: grid;
  grid-template-columns: 220px 120px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.blikk-result-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.empty-row {
  padding: 24px 18px;
  color: var(--muted);
  text-align: center;
}

.logs-panel {
  display: grid;
  gap: 18px;
}

.log-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.log-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-height: 66vh;
  overflow: auto;
}

.log-row {
  display: grid;
  grid-template-columns: 220px 90px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.log-time,
.log-level {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-category {
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.log-message {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.log-row.level-error .log-level {
  color: var(--danger);
}

.log-row.level-warning .log-level {
  color: #9b6b1f;
}

.log-row.level-http .log-level {
  color: #556b7a;
}

.log-row.level-audit .log-level {
  color: #7d5f2f;
}

.log-empty {
  padding: 18px 0;
  color: var(--muted);
}

.mail-log-panel {
  margin-top: 18px;
}

.mail-log-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  max-height: 66vh;
  overflow: auto;
}

.mail-log-row {
  display: grid;
  grid-template-columns: 170px 150px 220px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.mail-log-meta {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mail-log-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

.mail-log-recipient,
.mail-log-subject {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.mail-log-details {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.note {
  margin-top: 16px;
  color: var(--muted);
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-form.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-form label {
  display: grid;
  gap: 8px;
}

.grid-form span {
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid-form input,
.grid-form select,
.grid-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  background: var(--field-bg);
  color: var(--ink);
}

.grid-form textarea {
  min-height: 92px;
  resize: vertical;
}

.smtp-provider-actions {
  display: grid;
  gap: 6px;
  align-content: end;
}

.smtp-provider-actions small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.full-width {
  grid-column: 1 / -1;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle-row.switch-toggle {
  gap: 14px;
  align-items: center;
}

.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.toggle-row.switch-toggle .toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.toggle-row.switch-toggle .toggle-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.switch-state {
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #efe5d6;
  color: #5f4730;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.switch-state.is-on {
  background: #d7c095;
  border-color: #b79356;
  color: #2f2415;
}

.switch-state.is-off {
  background: #f0e7dc;
  border-color: #ccbca8;
  color: #6a5640;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  z-index: 1;
  border-radius: 999px;
  background: #d8c9b8;
  border: 1px solid #bca990;
  box-shadow: inset 0 1px 2px rgba(17, 17, 17, 0.12);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.switch .slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: 0 1px 3px rgba(17, 17, 17, 0.22);
  transition: transform 0.18s ease;
}

.switch input:checked + .slider {
  background: #b79356;
  border-color: #8f6b2f;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.switch input:focus-visible + .slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toolbar .toggle-row {
  gap: 8px;
  justify-content: flex-start;
  white-space: nowrap;
}

.toggle-row input {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  border-radius: 3px;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.68rem;
  line-height: 1;
}

.button.has-ui-icon::before,
.admin-auth-link .ui-icon::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  font-size: 1.05em;
  line-height: 1;
  text-transform: none;
}

.has-ui-icon[data-icon="refresh"]::before { content: "↻"; }
.has-ui-icon[data-icon="sync"]::before { content: "⇄"; }
.has-ui-icon[data-icon="save"]::before { content: "✓"; }
.has-ui-icon[data-icon="search"]::before { content: "⌕"; }
.has-ui-icon[data-icon="check"]::before { content: "✓"; }
.has-ui-icon[data-icon="plus"]::before { content: "+"; }
.has-ui-icon[data-icon="delete"]::before { content: "×"; }
.has-ui-icon[data-icon="restore"]::before { content: "↩"; }
.has-ui-icon[data-icon="send"]::before { content: "›"; }
.has-ui-icon[data-icon="reset"]::before { content: "↺"; }
.has-ui-icon[data-icon="close"]::before { content: "×"; }
.has-ui-icon[data-icon="login"]::before,
.admin-auth-link[data-icon="login"] .ui-icon::before { content: "↦"; }
.has-ui-icon[data-icon="logout"]::before,
.admin-auth-link[data-icon="logout"] .ui-icon::before { content: "↤"; }

.admin-auth-link .ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  overflow: hidden;
  font-size: 0;
}

.admin-auth-link .ui-icon::before {
  color: currentColor;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-only-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.screenshot-icon:not(.screenshot-icon-image) {
  position: relative;
  width: 17px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
  box-sizing: border-box;
}

.screenshot-icon:not(.screenshot-icon-image)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.screenshot-icon:not(.screenshot-icon-image)::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -5px;
  width: 7px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}

.screenshot-icon-image {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.button.is-loading,
.button.is-loading:disabled {
  cursor: progress;
}

.button.is-loading {
  position: relative;
  padding-right: 28px;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.98);
  border-radius: 50%;
  animation: button-spin 0.75s linear infinite;
}

.icon-only-button.is-loading {
  padding: 0;
}

.icon-only-button.is-loading::after {
  left: 50%;
  right: auto;
  margin-left: -5px;
}

.icon-only-button.is-loading > * {
  opacity: 0;
}

.button.accent.is-loading::after {
  border-color: rgba(17, 17, 17, 0.22);
  border-top-color: rgba(17, 17, 17, 0.85);
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary {
  background: var(--primary);
}

.accent {
  background: var(--accent);
  color: #ffffff;
}

.secondary {
  background: var(--paper-strong);
  color: var(--primary);
  border: 1px solid var(--line-strong);
}

.button.secondary {
  color: var(--primary);
}

.button.secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(45, 129, 255, 0.42);
}

.button.danger {
  background: var(--danger);
  color: #ffffff;
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar input,
.toolbar select {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper-strong);
  color: var(--ink);
}


.status-pill {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.status-pill.muted {
  background: var(--paper-strong);
  color: var(--muted);
}

.status-pill.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.ready {
  background: var(--info-soft);
  color: var(--info);
}

.status-muted,
.table-status.status-muted,
.flow-status.status-muted,
.flow-search-status.status-muted,
.blikk-sync-status.status-muted,
.blikk-search-status.status-muted {
  color: var(--muted);
}

.status-success,
.table-status.status-success,
.flow-status.status-success,
.flow-search-status.status-success,
.blikk-sync-status.status-success,
.blikk-search-status.status-success {
  color: var(--success);
}

.status-error,
.table-status.status-error,
.flow-status.status-error,
.flow-search-status.status-error,
.blikk-sync-status.status-error,
.blikk-search-status.status-error {
  color: var(--danger);
}

.status-warning,
.table-status.status-warning,
.flow-status.status-warning,
.flow-search-status.status-warning,
.blikk-sync-status.status-warning,
.blikk-search-status.status-warning {
  color: var(--warning);
}

.table-status {
  margin-bottom: 12px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 34, 67, 0.07);
  max-height: calc(100vh - 270px);
}

.admin-table-wrap {
  border-radius: 14px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: none;
}

.admin-table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admin-users-table {
  min-width: 1200px;
  width: 1200px;
  table-layout: fixed;
}

.mini-button,
.tsgg-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mini-button.has-ui-icon::before,
.tsgg-action-button.has-ui-icon::before {
  display: none;
}

.admin-user-form {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--section-bg);
  display: grid;
  gap: 10px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.admin-user-form label:not(.admin-permission-item) {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.admin-user-form label:not(.admin-permission-item) > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user-form input:not([type="checkbox"]),
.admin-user-form select {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.admin-user-form input:not([type="checkbox"]):focus,
.admin-user-form select:focus {
  outline: 2px solid rgba(45, 129, 255, 0.2);
  border-color: rgba(45, 129, 255, 0.45);
}

.admin-users-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--section-bg);
}

.admin-users-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px);
  gap: 10px;
  margin: 0 0 10px;
}

.admin-users-tools input,
.admin-users-tools select {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

.admin-users-page-summary,
.admin-users-page-status {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-users-page-size,
.admin-users-page-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-users-page-size span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-users-page-size select {
  min-height: 34px;
  padding: 6px 26px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

.admin-users-page-controls .button {
  padding: 7px 10px;
  font-size: 0.72rem;
}

.admin-permission-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 7px;
  background: var(--paper);
  min-height: 28px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.admin-permission-item input {
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin: 0;
}

.admin-permission-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#admin-users-table thead th {
  text-transform: none;
  letter-spacing: 0.015em;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 0.72rem;
}

.admin-users-table th,
.admin-users-table td {
  padding-top: 7px;
  padding-bottom: 7px;
  vertical-align: middle;
  line-height: 1.22;
  word-break: break-word;
}

.admin-user-row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.admin-user-email {
  width: 280px;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-name {
  width: 120px;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  width: 110px;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
}

.admin-user-permissions-cell {
  width: 330px;
  min-width: 0;
  max-width: none;
}

.admin-permission-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(138px, 1fr));
  gap: 4px;
  align-items: center;
}

.admin-permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  justify-content: flex-start;
  overflow: hidden;
}

.admin-permission-chip:not(.is-enabled) {
  opacity: 0.72;
}

.admin-permission-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-permission-chip.is-enabled {
  background: var(--success-soft);
  border-color: rgba(38, 122, 72, 0.24);
  color: var(--success);
  font-weight: 700;
}

.admin-permission-chip input {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin: 0;
}

.admin-role-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-role-pill.superadmin {
  color: var(--success);
  background-color: var(--success-soft);
  border: 1px solid rgba(38, 122, 72, 0.24);
}

.admin-role-pill.limited {
  color: var(--warning);
  background-color: var(--warning-soft);
  border: 1px solid rgba(163, 112, 27, 0.24);
}

.admin-user-meta {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.66rem;
  line-height: 1.2;
}

#admin-users-body .admin-user-row-actions {
  margin-top: 2px;
}

.admin-users-table .admin-user-row-actions {
  gap: 4px;
}

.admin-users-table .admin-user-row-actions .button {
  width: 100%;
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.6rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-users-table .admin-landing-select {
  width: 100%;
  min-width: 150px;
  padding: 4px 6px;
}

.admin-landing-cell {
  width: 170px;
  min-width: 170px;
  max-width: none;
}

.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6) {
  width: 170px;
  min-width: 170px;
  max-width: none;
}

.admin-landing-select {
  width: 100%;
}

.admin-user-delete-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(162, 63, 50, 0.3);
  background: rgba(162, 63, 50, 0.08);
  color: #8b2f1d;
  font-size: 0.73rem;
  white-space: nowrap;
}

.admin-login-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.admin-login-note[hidden] {
  display: none;
}

.admin-login-field {
  display: grid;
  gap: 6px;
}

.admin-login-input {
  width: 100%;
  min-height: 42px;
}

.admin-login-input-email {
  min-width: 340px;
}

.admin-login-input-password {
  min-width: 280px;
}

.admin-login-submit {
  margin-top: auto;
  width: 100%;
  min-height: 42px;
}

#admin-login-dialog .pod-dialog-card {
  width: 100%;
}

#admin-login-dialog {
  width: min(440px, calc(100vw - 28px));
  max-width: min(440px, calc(100vw - 28px));
  margin: auto;
}

#admin-login-dialog .pod-dialog-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

#admin-login-dialog .pod-dialog-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

#admin-login-dialog .pod-dialog-panel:nth-child(2) {
  padding-top: 0;
}

#admin-login-status {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 980px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-form {
    margin-bottom: 10px;
    padding: 12px;
  }

  .admin-permissions-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-landing-cell {
    width: 170px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--table-head);
  font-size: 0.92rem;
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 0 var(--line-strong);
}

tbody tr:nth-child(even) {
  background: var(--table-row-alt);
}

tbody tr:hover {
  background: var(--table-row-hover);
}

.subline {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.compact-line {
  margin-top: 2px;
  font-size: 0.66rem;
  line-height: 1.03;
}

.automatch-line {
  font-size: 0.52rem;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.62;
  margin-top: 1px;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge.open {
  background: rgba(185, 154, 106, 0.22);
  color: #6e4f1f;
  border-color: rgba(185, 154, 106, 0.28);
}

.badge.transit {
  background: rgba(83, 117, 173, 0.24);
  color: #24406a;
  border-color: rgba(83, 117, 173, 0.28);
}

.badge.delivered {
  background: rgba(53, 126, 72, 0.26);
  color: #15502b;
  border-color: rgba(53, 126, 72, 0.32);
}

.badge.warning {
  background: rgba(196, 145, 57, 0.26);
  color: #7b520d;
  border-color: rgba(196, 145, 57, 0.3);
}

.badge.error {
  background: rgba(162, 63, 50, 0.24);
  color: #8f2217;
  border-color: rgba(162, 63, 50, 0.32);
}

.badge.unknown {
  background: rgba(17, 17, 17, 0.10);
  color: #45413b;
  border-color: rgba(17, 17, 17, 0.12);
}

.pod-cell,
.actions-cell {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.actions-head {
  width: 1%;
  white-space: nowrap;
}

.mini-button {
  border: 0;
  border-radius: 4px;
  padding: 2px 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.shipments table th,
.shipments table td {
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 10px;
  padding-right: 10px;
}

.shipments table td {
  vertical-align: middle;
  line-height: 1.03;
}

#shipments-view .table-wrap {
  border-width: 1px;
  overflow-x: auto;
}

#shipments-view table {
  min-width: 1600px;
  table-layout: fixed;
}

#shipments-view th,
#shipments-view td {
  padding: 7px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#shipments-view thead th {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

#shipments-view tbody td {
  font-size: 0.8rem;
  line-height: 1.15;
  vertical-align: top;
}

#shipments-view .subline {
  margin-top: 2px;
  font-size: 0.64rem;
  line-height: 1.08;
}

#shipments-view .compact-line {
  font-size: 0.6rem;
  line-height: 1.05;
}

#shipments-view .badge {
  padding: 2px 5px;
  font-size: 0.62rem;
  white-space: nowrap;
}

#shipments-view table th:nth-child(1),
#shipments-view table td:nth-child(1) {
  width: 15ch;
}

#shipments-view table th:nth-child(2),
#shipments-view table td:nth-child(2) {
  width: 35ch;
}

#shipments-view table th:nth-child(3),
#shipments-view table td:nth-child(3) {
  width: 29ch;
}

#shipments-view table th:nth-child(4),
#shipments-view table td:nth-child(4) {
  width: 82px;
}

#shipments-view table th:nth-child(5),
#shipments-view table td:nth-child(5) {
  width: 146px;
}

#shipments-view table th:nth-child(6),
#shipments-view table td:nth-child(6),
#shipments-view table th:nth-child(7),
#shipments-view table td:nth-child(7),
#shipments-view table th:nth-child(8),
#shipments-view table td:nth-child(8),
#shipments-view table th:nth-child(9),
#shipments-view table td:nth-child(9) {
  width: 92px;
}

#shipments-view table th:nth-child(10),
#shipments-view table td:nth-child(10) {
  width: 118px;
}

#shipments-view table th:nth-child(11),
#shipments-view table td:nth-child(11) {
  width: 248px;
  position: sticky;
  right: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: -1px 0 0 var(--line);
}

#shipments-view thead th:nth-child(11),
#archived-view thead th:nth-child(11) {
  z-index: 4;
  background: var(--table-head);
}

#archived-view table th:nth-child(11),
#archived-view table td:nth-child(11) {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: -1px 0 0 var(--line);
}

#shipments-view .pod-cell,
#shipments-view .actions-cell {
  overflow: visible;
  text-overflow: clip;
}

#shipments-view .actions-cell {
  align-items: flex-start;
  gap: 4px;
}

#shipments-view .mini-button {
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  padding: 0 5px;
  font-size: 0.52rem;
  line-height: 1;
  white-space: nowrap;
}

#archived-view .table-wrap {
  overflow-x: auto;
}

#archived-view table {
  min-width: 1220px;
  table-layout: fixed;
}

#archived-view th,
#archived-view td {
  padding: 7px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#archived-view thead th {
  font-size: 0.7rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

#archived-view tbody td {
  font-size: 0.8rem;
  line-height: 1.15;
  vertical-align: top;
}

#archived-view .subline {
  margin-top: 2px;
  font-size: 0.64rem;
  line-height: 1.08;
}

#archived-view .compact-line {
  font-size: 0.6rem;
  line-height: 1.05;
}

#archived-view .badge {
  padding: 2px 5px;
  font-size: 0.62rem;
  white-space: nowrap;
}

#archived-view table th:nth-child(1),
#archived-view table td:nth-child(1) {
  width: 150px;
}

#archived-view table th:nth-child(2),
#archived-view table td:nth-child(2) {
  width: 170px;
}

#archived-view table th:nth-child(3),
#archived-view table td:nth-child(3) {
  width: 210px;
}

#archived-view table th:nth-child(4),
#archived-view table td:nth-child(4) {
  width: 88px;
}

#archived-view table th:nth-child(5),
#archived-view table td:nth-child(5) {
  width: 152px;
}

#archived-view table th:nth-child(6),
#archived-view table td:nth-child(6) {
  width: 92px;
}

#archived-view table th:nth-child(7),
#archived-view table td:nth-child(7) {
  width: 92px;
}

#archived-view table th:nth-child(8),
#archived-view table td:nth-child(8),
#archived-view table th:nth-child(9),
#archived-view table td:nth-child(9) {
  display: none;
}

#archived-view table th:nth-child(10),
#archived-view table td:nth-child(10) {
  width: 132px;
}

#archived-view table th:nth-child(11),
#archived-view table td:nth-child(11) {
  width: 148px;
}

#archived-view .pod-cell,
#archived-view .actions-cell {
  overflow: visible;
  text-overflow: clip;
}

#archived-view .actions-cell {
  align-items: flex-start;
  gap: 4px;
}

#archived-view .mini-button {
  min-height: 20px;
  padding: 3px 5px;
  font-size: 0.52rem;
  line-height: 1;
}

#tsgg-view .flow-meta,
#tsgg-view .flow-search,
#tsgg-view .flow-toolbar {
  font-size: 0.88rem;
}

#tsgg-view .tsgg-controls {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

#tsgg-view .tsgg-controls label {
  display: grid;
  gap: 6px;
}

#tsgg-view .tsgg-controls label:first-child {
  flex: 0 1 260px;
  min-width: 190px;
}

#tsgg-view .tsgg-controls label:not(:first-child) {
  flex: 0 0 150px;
  min-width: 150px;
}

#tsgg-view .tsgg-controls input,
#tsgg-view .tsgg-controls select {
  width: 100%;
}

#tsgg-view .table-wrap {
  border-width: 1px;
  overflow-x: auto;
}

#tsgg-view table {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  table-layout: fixed;
}

#tsgg-view .tsgg-col-project-no {
  width: 80px;
}

#tsgg-view .tsgg-col-project {
  width: 180px;
}

#tsgg-view .tsgg-col-customer {
  width: 150px;
}

#tsgg-view .tsgg-col-address {
  width: 90px;
}

#tsgg-view .tsgg-col-shipment {
  width: 120px;
}

#tsgg-view .tsgg-col-estimated {
  width: 100px;
}

#tsgg-view .tsgg-col-additional {
  width: 110px;
}

#tsgg-view .tsgg-col-requested {
  width: 100px;
}

#tsgg-view .tsgg-col-status {
  width: 116px;
}

#tsgg-view .tsgg-col-documents {
  width: 76px;
}

#tsgg-view th,
#tsgg-view td {
  padding: 6px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tsgg-view thead th {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

#tsgg-view tbody td {
  font-size: 0.8rem;
  line-height: 1.15;
}

#tsgg-view tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

#tsgg-view tbody tr:hover td {
  background: var(--table-row-hover);
}

#tsgg-view .subline {
  margin-top: 2px;
  font-size: 0.64rem;
  line-height: 1.08;
}

#tsgg-view .compact-line {
  font-size: 0.6rem;
  line-height: 1.05;
}

#tsgg-view .badge {
  padding: 2px 5px;
  font-size: 0.62rem;
  white-space: nowrap;
}

#tsgg-view .tsgg-status-heading {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
}

#tsgg-view .tsgg-status-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  cursor: help;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
}

#tsgg-view .tsgg-status-info:hover,
#tsgg-view .tsgg-status-info:focus-visible {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #075985;
}

.tsgg-status-popover {
  width: min(760px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}

.tsgg-status-popover::backdrop {
  background: rgba(15, 23, 42, 0.12);
}

.tsgg-status-popover-title {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.tsgg-status-popover-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(180px, 1.35fr) minmax(180px, 1.35fr);
  gap: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

.tsgg-status-popover-grid > * {
  padding: 8px;
  border-top: 1px solid #e2e8f0;
}

.tsgg-status-popover-grid > strong {
  border-top: 0;
  background: #f8fafc;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tsgg-status-map-label {
  font-weight: 800;
}

.tsgg-status-map-label.unknown {
  background: #f1f5f9;
  color: #334155;
}

.tsgg-status-map-label.open {
  background: #fef3c7;
  color: #92400e;
}

.tsgg-status-map-label.transit {
  background: #dbeafe;
  color: #1d4ed8;
}

.tsgg-status-map-label.delivered {
  background: #dcfce7;
  color: #15803d;
}

@media (max-width: 640px) {
  .tsgg-status-popover-grid {
    grid-template-columns: 1fr;
  }

  .tsgg-status-popover-grid > strong {
    display: none;
  }
}

#tsgg-view .tsgg-project-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 150px;
}

#tsgg-view .tsgg-project-status-stack .badge {
  padding: 1px 4px;
  font-size: 0.56rem;
  line-height: 1;
}

#tsgg-view .tsgg-project-comment {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tsgg-view .tsgg-additional-information {
  display: -webkit-box;
  max-width: 150px;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#tsgg-view .tsgg-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 56px;
  max-width: 68px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.52rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tsgg-view .tsgg-shipping-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 68px;
  max-width: 88px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  margin: 0;
  padding: 0 5px;
  font-family: inherit;
  font-size: 0.52rem;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  vertical-align: top;
  flex: 0 0 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tsgg-view .tsgg-shipping-chip.open {
  background: #fef3c7;
  color: #92400e;
  border-color: #fbbf24;
}

#tsgg-view .tsgg-shipping-chip.unknown {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

#tsgg-view .tsgg-shipping-chip.transit {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

#tsgg-view .tsgg-shipping-chip.delivered {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}
#tsgg-view .tsgg-shipping-chip-placeholder {
  visibility: hidden;
  pointer-events: none;
}

#tsgg-view .tsgg-action-button:hover {
  filter: brightness(0.98);
}

#tsgg-view .tsgg-archive-icon-button {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.58rem;
  line-height: 20px;
  text-align: center;
}

#tsgg-view .tsgg-shipping-address {
  display: -webkit-box;
  max-width: 146px;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

#tsgg-view .tsgg-data-warning-cell {
  max-width: 150px;
}

#tsgg-view .tsgg-data-warning {
  margin-left: 0;
  min-height: 18px;
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 6px;
  white-space: normal;
  text-align: left;
  line-height: 1.12;
  font-size: 0.62rem;
}

#tsgg-view .tsgg-shipping-actions-cell {
  overflow: hidden;
  text-overflow: clip;
  vertical-align: top;
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
}

#tsgg-view .tsgg-shipping-actions-row {
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: top;
  line-height: 18px;
}

#tsgg-view .tsgg-documents-cell {
  overflow: hidden;
  text-overflow: clip;
  vertical-align: top;
  padding-left: 4px;
  padding-right: 4px;
  white-space: nowrap;
}

#tsgg-view .tsgg-documents-row {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-height: 20px;
  flex-wrap: nowrap;
  gap: 2px;
  align-items: flex-start;
  justify-content: flex-end;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: top;
  line-height: 18px;
}


#tsgg-view .tsgg-archived-date {
  display: block;
  margin-top: 2px;
}

#tsgg-view table th:nth-child(1),
#tsgg-view table td:nth-child(1) {
  width: 80px;
}

#tsgg-view table th:nth-child(2),
#tsgg-view table td:nth-child(2) {
  width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#tsgg-view table th:nth-child(3),
#tsgg-view table td:nth-child(3) {
  width: 150px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#tsgg-view table th:nth-child(4),
#tsgg-view table td:nth-child(4) {
  width: 90px;
}

#tsgg-view table th:nth-child(5),
#tsgg-view table td:nth-child(5) {
  width: 120px;
}

#tsgg-view table th:nth-child(7),
#tsgg-view table td:nth-child(7) {
  width: 110px;
}

#tsgg-view table th:nth-child(8),
#tsgg-view table td:nth-child(8) {
  width: 100px;
}

#tsgg-view table th:nth-child(8) {
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 0.64rem;
  line-height: 1.08;
}

#tsgg-view .tsgg-requested-date-heading {
  display: block;
}

#tsgg-view table th:nth-child(9),
#tsgg-view table td:nth-child(9) {
  width: 116px;
  min-width: 116px;
  max-width: 116px;
}

#tsgg-view .tsgg-shipment-info-cell {
  overflow: visible;
  text-overflow: clip;
}

#tsgg-view .tsgg-shipment-status-line {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tsgg-view .tsgg-shipment-number-cell {
  display: block;
  min-width: 0;
  max-width: 100%;
}

#tsgg-view .tsgg-date-cell {
  white-space: nowrap;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

#tsgg-view .tsgg-estimated-delivery-cell {
  white-space: normal;
}

#tsgg-view .tsgg-estimated-date,
#tsgg-view .tsgg-estimated-time,
#tsgg-view .tsgg-estimated-weight {
  display: block;
}

#tsgg-view .tsgg-estimated-time,
#tsgg-view .tsgg-estimated-weight {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.68rem;
}

#tsgg-view .tsgg-estimated-weight {
  margin-top: 3px;
  font-size: 0.62rem;
}
#tsgg-view table th:nth-child(6),
#tsgg-view table td:nth-child(6) {
  width: 22ch;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tsgg-view .tsgg-shipment-link {
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#tsgg-view .tsgg-shipment-link:hover {
  text-decoration-thickness: 2px;
}

#tsgg-view .tsgg-tracking-number {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tsgg-view a.tsgg-shipment-link .tsgg-tracking-number {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

#tsgg-view a.tsgg-shipment-link:hover .tsgg-tracking-number {
  text-decoration-thickness: 2px;
}

#tsgg-view table th:nth-child(7),
#tsgg-view table td:nth-child(7) {
  width: 118px;
  min-width: 118px;
}

#tsgg-view table th:nth-child(8),
#tsgg-view table td:nth-child(8) {
  width: 88px;
}

#tsgg-view table th:nth-child(10),
#tsgg-view table td:nth-child(10) {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  white-space: nowrap;
  position: sticky;
  right: 0;
  z-index: 1;
  background: #ffffff;
  box-shadow: -1px 0 0 var(--line);
}

#tsgg-view thead th:nth-child(10) {
  z-index: 4;
  background: var(--table-head);
}

#tsgg-view .tsgg-shipping-actions-row .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  min-width: 56px;
  max-width: 68px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  padding: 0 5px;
  font-size: 0.52rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  overflow: visible;
  text-overflow: clip;
  flex: 0 0 auto;
}

.mini-button.primary {
  background: var(--primary);
}

.mini-button.accent {
  background: var(--accent);
  color: #ffffff;
}

.mini-button.danger {
  background: var(--danger);
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: var(--surface-hover);
}

.search-history {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.history-chip {
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.history-chip:hover {
  background: var(--accent-soft);
}

.shipment-mail-dots {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.shipment-mail-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
}

.shipment-mail-dot.is-sent {
  background: var(--success-soft);
  color: var(--success);
  border-color: rgba(38, 122, 72, 0.28);
}

.shipment-mail-dot.is-pending {
  background: var(--paper-strong);
  color: var(--muted);
  border-color: var(--line);
}

.shipment-mail-detail {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  line-height: 1.45;
}

.shipment-mail-detail.is-sent {
  border-color: rgba(38, 122, 72, 0.24);
  background: var(--success-soft);
}

.toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.2);
}

.toast.status-success {
  background: rgba(31, 106, 63, 0.96);
}

.toast.status-warning {
  background: rgba(140, 106, 46, 0.96);
}

.toast.status-error {
  background: rgba(162, 63, 50, 0.96);
}

.toast.is-fading {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pod-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, 94vw);
  width: 100%;
}

.pod-dialog::backdrop {
  background: rgba(17, 17, 17, 0.68);
  backdrop-filter: blur(4px);
}

.pod-dialog-card {
  display: grid;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.24);
}

.pod-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pod-dialog-head h2,
.pod-dialog-panel h3 {
  margin: 0;
}

.pod-dialog-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.pod-summary-item {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.pod-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pod-summary-item strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.98rem;
}

.pod-dialog-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.pod-dialog-panel {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.pod-dialog-content {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.pod-dialog-summary .subline,
.pod-dialog-content .subline {
  font-size: 0.76rem;
}

.fortnox-save-confirm-dialog {
  max-width: min(560px, 94vw);
}

.fortnox-save-confirm-card {
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
}

.fortnox-save-confirm-card .pod-dialog-head h2 {
  font-size: 1rem;
  line-height: 1.2;
}

#fortnox-save-confirm-dialog .fortnox-save-confirm-card .button {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.fortnox-save-confirm-card .pod-dialog-panel {
  padding: 10px;
  border-radius: 8px;
}

.fortnox-save-confirm-card .pod-dialog-content {
  margin-top: 0;
  gap: 6px;
  max-height: 190px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.fortnox-save-confirm-card .pod-dialog-content ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.fortnox-save-confirm-card .pod-dialog-content li + li {
  margin-top: 3px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  position: relative;
}

.timeline-item:not(.is-latest)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: -10px;
  width: 1px;
  background: var(--accent-soft);
}

.timeline-marker {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--success-soft);
  border: 2px solid rgba(38, 122, 72, 0.48);
  box-shadow: 0 0 0 4px rgba(38, 122, 72, 0.08);
}

.timeline-body {
  display: grid;
  gap: 2px;
  padding-bottom: 4px;
}

.timeline-time {
  font-size: 0.76rem;
  color: var(--muted);
}

.timeline-text {
  font-size: 0.82rem;
  line-height: 1.2;
}

.timeline-location {
  font-size: 0.72rem;
  color: var(--muted);
}

.pod-dialog-link {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 8px;
  color: var(--accent);
  text-decoration: none;
}

.pod-dialog-link:hover {
  text-decoration: underline;
}

.status-email-actions {
  display: grid;
  gap: 12px;
}

.status-email-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.status-email-message {
  color: var(--muted);
  line-height: 1.5;
}

.status-email-recipient-list {
  display: grid;
  gap: 10px;
}

.status-email-recipient {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  box-shadow: inset 0 0 0 1px transparent;
}

.status-email-recipient-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.status-email-recipient-label {
  font-weight: 700;
}

.status-email-recipient-address {
  font-family: Consolas, "Courier New", monospace;
  word-break: break-word;
}

.status-email-recipient-note {
  color: var(--muted);
  line-height: 1.45;
}

.status-email-recipient.is-ready {
  border-color: rgba(0, 97, 124, 0.24);
  background: var(--info-soft);
}

.status-email-recipient.is-sent {
  border-color: rgba(38, 122, 72, 0.35);
  background: var(--success-soft);
  box-shadow: inset 0 0 0 1px rgba(38, 122, 72, 0.08);
}

.status-email-recipient.is-failed {
  border-color: rgba(162, 63, 50, 0.32);
  background: var(--danger-soft);
}

.status-email-recipient.is-missing {
  border-color: rgba(181, 81, 69, 0.28);
  background: var(--danger-soft);
}

.status-email-recipient.is-blocked {
  border-color: rgba(163, 112, 27, 0.34);
  background: var(--warning-soft);
  box-shadow: inset 0 0 0 1px rgba(163, 112, 27, 0.06);
}

.status-email-preview {
  white-space: pre-wrap;
  line-height: 1.5;
}

small {
  color: var(--muted);
}

@media (max-width: 980px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .grid-form,
  .grid-form.compact,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: calc(100vw - 12px);
    max-width: 100%;
    margin: 10px auto 24px;
    display: block;
  }

  .panel {
    padding: 18px;
  }

  .top-nav {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    max-height: none;
    margin-bottom: 14px;
    top: 8px;
    align-items: stretch;
  }

  .nav-brand {
    border-bottom: 0;
    margin-bottom: 0;
    flex: 1 0 100%;
    justify-content: center;
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
  }

  .brand-logo {
    max-width: 148px;
  }

  .nav-link {
    flex: 1 1 calc(33.333% - 8px);
    justify-content: center;
    text-align: center;
    max-width: none;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    white-space: normal;
    line-height: 1.15;
  }

  .admin-auth-link {
    margin-left: auto;
    margin-top: 0;
    border-top: 0;
    padding-top: 9px;
  }

  .top-nav .settings-side-nav {
    flex: 0 0 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .settings-menu-link {
    padding-left: 10px;
    text-align: center;
    white-space: nowrap;
  }

  .toolbar input,
  .toolbar select {
    min-width: 0;
    width: 100%;
  }

  #report-view .flow-toolbar {
    grid-template-columns: 1fr;
  }

  .log-row {
    grid-template-columns: 1fr;
  }

  .mail-log-row {
    grid-template-columns: 1fr;
  }

  .shipments table th:nth-child(2),
  .shipments table td:nth-child(2),
  .shipments table th:nth-child(4),
  .shipments table td:nth-child(4),
  .shipments table th:nth-child(5),
  .shipments table td:nth-child(5),
  .shipments table th:nth-child(8),
  .shipments table td:nth-child(8),
  .shipments table th:nth-child(9),
  .shipments table td:nth-child(9),
  .shipments table th:nth-child(10),
  .shipments table td:nth-child(10) {
    display: none;
  }

  .shipments table {
    min-width: 520px;
  }

  #flow-view .table-wrap,
  .admin-table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .admin-table-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    display: block;
  }

  #flow-view table {
    width: 760px;
    min-width: 760px;
  }

  #flow-view table th:nth-child(1),
  #flow-view table td:nth-child(1) {
    width: 150px;
    min-width: 150px;
  }

  #flow-view table th:nth-child(2),
  #flow-view table td:nth-child(2) {
    width: 170px;
    min-width: 170px;
  }

  #flow-view table th:nth-child(11),
  #flow-view table td:nth-child(11) {
    width: 290px;
    min-width: 290px;
    position: static;
    box-shadow: none;
  }

  #flow-view .flow-match-cell {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) repeat(2, 50px);
    align-items: center;
  }

  #flow-view .flow-match-input {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  #flow-view .flow-match-link {
    grid-column: 1 / -1;
  }

  .admin-users-table {
    width: 1155px;
    min-width: 1155px;
  }

  .admin-user-email {
    width: 280px;
  }

  .admin-user-name {
    width: 110px;
  }

  .admin-user-role {
    width: 105px;
  }

  .admin-user-permissions-cell {
    width: 310px;
  }

  .admin-landing-cell {
    width: 170px;
  }

  .admin-users-table th:nth-child(6),
  .admin-users-table td:nth-child(6) {
    width: 170px;
  }

  #shipments-view table {
    min-width: 520px;
  }

  #shipments-view table th:nth-child(1),
  #shipments-view table td:nth-child(1) {
    width: 130px;
  }

  #shipments-view table th:nth-child(3),
  #shipments-view table td:nth-child(3) {
    width: 150px;
  }

  #shipments-view table th:nth-child(11),
  #shipments-view table td:nth-child(11) {
    width: 116px;
    position: static;
    box-shadow: none;
  }

  #shipments-view .actions-cell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: stretch;
  }

  #shipments-view .mini-button {
    width: 100%;
    height: 22px;
    min-height: 22px;
    font-size: 0.5rem;
  }

  .health-status-grid {
    grid-template-columns: 1fr;
  }

  .health-status-head,
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-links {
    padding: 12px 14px;
  }

  .health-status-card {
    padding: 14px 15px;
  }

  .status-pill {
    width: fit-content;
  }

  .uninvoiced-group-head {
    flex-direction: column;
  }

  .uninvoiced-group-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .uninvoiced-recipient-input {
    min-width: 0;
    width: 100%;
  }

  .admin-users-paging {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users-tools {
    grid-template-columns: 1fr;
  }

  .admin-users-page-controls {
    width: 100%;
  }

  .admin-users-page-controls .button {
    flex: 1 1 90px;
  }

  .invoice-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #admin-login-dialog .pod-dialog-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-input-email,
  .admin-login-input-password {
    min-width: 0;
  }

  #shipments-view .table-wrap,
  #archived-view .table-wrap,
  #tsgg-view .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  #shipments-view table,
  #archived-view table,
  #tsgg-view table {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #shipments-view thead,
  #archived-view thead,
  #tsgg-view thead {
    display: none;
  }

  #shipments-view tbody,
  #archived-view tbody,
  #tsgg-view tbody {
    display: grid;
    gap: 10px;
  }

  #shipments-view tbody tr,
  #archived-view tbody tr,
  #tsgg-view tbody tr {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 34, 67, 0.08);
  }

  #shipments-view tbody td,
  #archived-view tbody td,
  #tsgg-view tbody td {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    line-height: 1.25;
  }

  #shipments-view tbody td::before,
  #archived-view tbody td::before,
  #tsgg-view tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  #shipments-view tbody td.actions-cell,
  #archived-view tbody td.actions-cell,
  #tsgg-view tbody td.tsgg-shipping-actions-cell {
    grid-template-columns: 1fr;
  }

  #shipments-view tbody td.actions-cell::before,
  #archived-view tbody td.actions-cell::before,
  #tsgg-view tbody td.tsgg-shipping-actions-cell::before {
    content: "";
    display: none;
  }

  #shipments-view table th:nth-child(11),
  #shipments-view table td:nth-child(11),
  #archived-view table th:nth-child(11),
  #archived-view table td:nth-child(11),
  #tsgg-view table th:nth-child(10),
  #tsgg-view table td:nth-child(10) {
    position: static;
    box-shadow: none;
  }

  #shipments-view .actions-cell,
  #archived-view .actions-cell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #shipments-view .mini-button,
  #archived-view .mini-button {
    width: 100%;
    min-height: 30px;
    height: auto;
    max-height: none;
    font-size: 0.58rem;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100vw - 12px);
  }

  .panel {
    padding: 16px 18px;
  }

  .top-nav {
    gap: 7px;
    padding: 8px;
  }

  .nav-brand {
    padding-left: 8px;
    padding-right: 8px;
  }

  .nav-link {
    max-width: 96px;
    flex-basis: calc(33.333% - 8px);
    max-width: none;
    min-height: 46px;
    padding: 8px 9px;
  }

  .toolbar {
    width: 100%;
  }

  .toolbar .button,
  .toolbar button {
    width: fit-content;
  }

  .toast-stack {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    max-width: none;
  }

  .invoice-summary-strip {
    grid-template-columns: 1fr;
  }
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select:not([multiple]),
textarea:not([data-unstyled]) {
  border-width: 2px;
  border-color: var(--field-border);
  background-color: var(--field-bg);
  color: var(--ink);
  box-shadow: var(--field-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
select:not([multiple]):hover,
textarea:not([data-unstyled]):hover {
  border-color: var(--field-border-hover);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:not([multiple]):focus,
textarea:not([data-unstyled]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
select:not([multiple]):focus-visible,
textarea:not([data-unstyled]):focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--field-focus-shadow);
}

input::placeholder,
textarea::placeholder {
  color: #53677f;
  opacity: 1;
}

input:disabled,
select:not([multiple]):disabled,
textarea:not([data-unstyled]):disabled {
  background-color: #eef2f6;
  border-color: rgba(18, 49, 95, 0.28);
  color: var(--muted);
  box-shadow: none;
}

.shipping-dashboard { padding: 0; overflow: hidden; border-radius: 8px; }
.shipping-dashboard-head { margin: 0; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-strong); gap: 18px; }
.shipping-title-block { display: flex; align-items: center; gap: 12px; }
.shipping-title-block h2 { text-transform: none; letter-spacing: 0; font-size: 1.45rem; }
.shipping-title-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--primary); }
.shipping-title-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.shipment-status-pills { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 320px; flex-wrap: wrap; }
.shipment-status-pill { border: 1px solid var(--line-strong); background: #fff; color: var(--text); border-radius: 12px; padding: 9px 14px; min-height: 42px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(15, 34, 67, 0.05); }
.shipment-status-pill.is-active { border-color: rgba(37, 99, 235, 0.35); background: #f5f9ff; }
.shipment-status-pill strong { min-width: 30px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; background: #edf4ff; color: #1d4ed8; }
.shipment-filter-panel { display: grid; grid-template-columns: minmax(190px, 1.6fr) minmax(180px, 1.45fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(220px, 1.65fr) auto; gap: 10px; align-items: end; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-strong); background: #fbfcff; }
.shipment-filter-panel input, .shipment-filter-panel select { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 8px 12px; color: var(--text); }
.shipment-filter-field { display: grid; gap: 4px; margin: 0; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.shipment-date-field { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.shipment-date-field span { grid-column: 1 / -1; }
.shipment-clear-filter-button, .shipment-top-filter-button, .shipment-refresh-button { min-height: 38px; }
.shipment-dashboard-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.shipment-dashboard-table thead th { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #111827; border-bottom: 1px solid #bfd4f7; padding: 10px 12px; font-size: 0.84rem; line-height: 1.2; text-align: left; white-space: nowrap; }
.shipment-dashboard-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); vertical-align: middle; line-height: 1.3; background: #fff; font-size: 0.86rem; }
.shipment-dashboard-table tbody tr:hover td, .shipment-dashboard-table tbody tr:first-child td { background: #f3f8ff; }
.shipment-dashboard-table tbody tr.is-expanded td { background: #eef6ff; border-top: 1px solid #93c5fd; border-bottom-color: #93c5fd; }
#tsgg-view .tsgg-sort-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
#tsgg-view .tsgg-sort-header::after {
  content: "";
  color: #2563eb;
  font-size: 0.72rem;
}
#tsgg-view .tsgg-sort-header.is-active::after {
  content: "↑";
}
#tsgg-view .tsgg-sort-header.is-active[data-sort-direction="desc"]::after {
  content: "↓";
}
.shipment-col-expand { width: 46px; }
.shipment-col-project { width: 15%; }
.shipment-col-reference { width: 13%; }
.shipment-col-customer { width: 15%; }
.shipment-col-content { width: 21%; }
.shipment-col-status { width: 17%; }
.shipment-col-weight { width: 8%; }
.shipment-col-date { width: 14%; }
.shipment-col-actions { width: 14%; }
.tsgg-expand-button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--primary); font-size: 1.45rem; cursor: pointer; }
.tsgg-dashboard-table .subline { margin-top: 3px; color: var(--muted); font-size: 0.8rem; }
#tsgg-view #tsgg-count { display: none; }
#tsgg-view #tsgg-status,
#tsgg-view #tsgg-search-status {
  display: flex;
  align-items: center;
  min-height: 34px;
}

#tsgg-view #tsgg-search-status:not(.is-loading):not(.status-error):not(.status-warning) {
  display: none !important;
}

#tsgg-view #tsgg-status:not(.is-loading),
#tsgg-view #tsgg-search-status.status-muted,
#tsgg-view #tsgg-search-status.status-success {
  display: none !important;
}
#tsgg-view .tsgg-loading-row {
  text-align: left;
}
#tsgg-view .tsgg-dashboard-table td[data-label="Projekt"],
#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] {
  overflow: hidden;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Projekt"] > .subline,
#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Projekt"] > .subline {
  -webkit-line-clamp: 1;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] {
  -webkit-line-clamp: 2;
  line-height: 1.25;
}
.tsgg-dashboard-table .badge, .tsgg-shipping-chip { border-radius: 6px; padding: 3px 7px; font-size: 0.72rem; line-height: 1.1; white-space: nowrap; }
.tsgg-weight-cell, .tsgg-date-cell { white-space: nowrap; }
.tsgg-documents-row { display: flex; gap: 8px; justify-content: flex-end; }
.tsgg-dashboard-action { width: 48px; min-height: 50px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: #2563eb; display: grid; place-items: center; gap: 2px; font-size: 0.68rem; font-weight: 700; cursor: pointer; }
.tsgg-dashboard-action span { width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 3px; }
.tsgg-dashboard-action.has-indicator { position: relative; }
.tsgg-dashboard-action.has-indicator::after { content: ""; position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 999px; background: #2563eb; }
.tsgg-dashboard-action.is-note { color: #d97706; }
.tsgg-dashboard-action.is-track { color: #2563eb; }
.tsgg-dashboard-action.is-archive { color: #64748b; }
.tsgg-dashboard-action.is-delete { color: #b91c1c; border-color: #fecaca; background: #fff7f7; }
.tsgg-dashboard-action:disabled { color: #a8b2c3; cursor: not-allowed; background: #f8fafc; }
.tsgg-expanded-detail-row > td { padding: 0 20px 10px !important; background: #f3f8ff !important; border-bottom: 1px solid #bfd4f7 !important; }
.tsgg-expanded-detail-row + tr td { border-top: 0; }
.tsgg-detail-panel { margin: 0; border: 1px solid #bfd4f7; border-radius: 8px; background: #f8fbff; overflow: hidden; }
.tsgg-detail-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-strong); color: var(--primary); font-weight: 700; }
.tsgg-detail-head div { display: flex; gap: 14px; flex-wrap: wrap; }
.tsgg-detail-close { border: 0; background: transparent; color: #2563eb; font-size: 1.4rem; cursor: pointer; }
.tsgg-detail-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.2fr 1.4fr 1.2fr 1.3fr; gap: 0; }
.tsgg-detail-grid section { padding: 14px 18px; border-right: 1px solid var(--line-strong); min-height: 142px; }
.tsgg-detail-grid section:last-child { border-right: 0; }
.tsgg-detail-grid h3 { margin: 0 0 10px; color: var(--primary); font-size: 0.86rem; }
.tsgg-detail-grid p { margin: 0 0 8px; color: var(--text); font-size: 0.82rem; line-height: 1.35; }
.tsgg-archive-section { padding: 20px; }

@media (max-width: 1100px) {
  .shipment-filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tsgg-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.webshop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
  align-items: start;
}

#webshop-products-view .flow-panel {
  max-width: none;
  margin: 0;
}

#webshop-products-view .panel-head {
  align-items: flex-start;
  gap: 16px;
}

#webshop-products-view .toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px repeat(5, auto);
  gap: 8px;
  align-items: center;
}

#webshop-products-view .toolbar-search-clear {
  position: relative;
  min-width: 220px;
}

#webshop-products-view .toolbar-search-clear input {
  width: 100%;
  padding-right: 34px;
}

#webshop-products-view .toolbar-search-clear-button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

#webshop-products-view .toolbar-search-clear-button:hover {
  background: #e8eef5;
  color: #111827;
}

#webshop-products-view .toolbar input,
#webshop-products-view .toolbar select,
#webshop-products-view .toolbar .button {
  min-height: 38px;
  font-size: 0.76rem;
}

.webshop-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 6px;
}

.webshop-status-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  background: #fff;
  color: #53657c;
  font-weight: 700;
  cursor: pointer;
}

.webshop-status-tabs button.is-active {
  border-color: #176b87;
  background: #ecfeff;
  color: #0f2243;
}

.webshop-status-tabs strong {
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2563eb;
  text-align: center;
}

.webshop-create-product-card {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  margin-inline: auto;
  gap: 14px;
  padding: 16px !important;
  border-radius: 8px !important;
}

.webshop-create-product-card .pod-dialog-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9e2ef;
  background: transparent !important;
}

.webshop-create-product-card .pod-dialog-head h2 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.webshop-create-product-card .pod-dialog-panel {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.webshop-create-product-card label {
  display: grid;
  gap: 4px;
}

.webshop-create-product-card label span {
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-create-product-card input {
  min-height: 38px;
  padding: 5px 9px;
  font-size: 0.875rem;
}

.webshop-create-product-card .settings-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

#webshop-create-product-dialog .pod-dialog-content:not(.status-email-actions) {
  max-height: min(54dvh, 500px);
}

#webshop-create-product-status.status-error,
#webshop-create-product-status.status-warning,
#webshop-create-product-status.status-success {
  padding: 8px 10px;
  border: 1px solid;
  border-radius: 7px;
}

#webshop-create-product-status.status-error {
  border-color: #e7b9b4;
  background: #fff3f1;
  color: #9f1d17 !important;
}

#webshop-create-product-status.status-warning {
  border-color: #ebd7a2;
  background: #fff9e9;
  color: #76510a !important;
}

#webshop-create-product-status.status-success {
  border-color: #b5d8c7;
  background: #edf8f2;
  color: #21674a !important;
}

.webshop-create-product-card .settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.webshop-create-product-card .settings-actions .button {
  width: auto;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 850;
}

#webshop-products-view .webshop-status-tabs {
  gap: 5px;
  margin: 8px 0 4px;
}

#webshop-products-view .webshop-status-tabs button {
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.72rem;
}

#webshop-products-view .webshop-status-tabs strong {
  min-width: 18px;
  padding: 1px 5px;
  font-size: 0.68rem;
}

#webshop-products-view #webshop-products-status {
  display: block;
  margin-top: 4px;
  padding: 5px 8px;
  font-size: 0.74rem;
}

#webshop-products-view .webshop-products-list-controls {
  display: grid;
  gap: 7px;
  margin: 10px 0 10px;
  padding: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

#webshop-products-view .webshop-products-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#webshop-products-view .webshop-products-list-actions .button {
  width: auto;
  min-height: 30px;
  justify-content: center;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#webshop-products-view .webshop-fortnox-sync-log {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 7px;
  background: var(--paper-strong);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

#webshop-products-view .webshop-fortnox-sync-log.status-success { border-left-color: var(--success); }
#webshop-products-view .webshop-fortnox-sync-log.status-warning { border-left-color: var(--warning); }
#webshop-products-view .webshop-fortnox-sync-log.status-error { border-left-color: var(--danger); }

#webshop-products-view .webshop-products-list-controls-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px;
  gap: 8px;
  align-items: center;
}

#webshop-products-view .webshop-products-list-controls-head .toolbar-search-clear input,
#webshop-products-view .webshop-products-list-controls-head select {
  min-height: 30px;
  font-size: 0.78rem;
}

#webshop-products-view .webshop-admin-menu-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 220px));
  gap: 8px;
  align-items: end;
  margin: 0;
}

#webshop-products-view .webshop-admin-menu-filters label {
  display: grid;
  gap: 4px;
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 700;
}

#webshop-products-view .webshop-admin-menu-filters select {
  min-height: 30px;
  border: 1px solid #d8e3e5;
  border-radius: 7px;
  background: #fff;
  color: #1f2933;
  font-size: 0.78rem;
}

#webshop-products-view .webshop-admin-blikk-sync-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: text-bottom;
}

.webshop-fortnox-panel {
  display: grid;
  gap: 8px;
}

.webshop-fortnox-toolbar,
.webshop-fortnox-bulkbar {
  display: grid;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-fortnox-toolbar {
  grid-template-columns: minmax(280px, 1fr) auto;
}

.webshop-fortnox-bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
}

.webshop-fortnox-toolbar-actions,
.webshop-fortnox-bulk-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.webshop-fortnox-bulkbar > strong {
  align-self: center;
  min-width: 76px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 900;
}

.webshop-fortnox-toolbar .toolbar-search-clear {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.webshop-fortnox-toolbar .toolbar-search-clear input {
  width: 100%;
  min-height: 30px;
  padding-right: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius: 7px;
  font-size: 0.82rem;
}

.webshop-fortnox-toolbar .toolbar-search-clear-button {
  position: static;
  width: 30px;
  height: 30px;
  transform: none;
}

.webshop-fortnox-toolbar .button,
.webshop-fortnox-bulkbar .button {
  width: auto;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

#fortnox-search-articles,
#fortnox-load-articles,
#fortnox-save-article-changes {
  border-color: #3e8ba4 !important;
  background: #3e8ba4 !important;
  color: #fff !important;
}

#fortnox-search-articles:hover,
#fortnox-load-articles:hover,
#fortnox-save-article-changes:hover {
  border-color: #32758b !important;
  background: #32758b !important;
  color: #fff !important;
}

#fortnox-save-article-changes.has-unsaved-changes {
  border-color: #b45309 !important;
  background: #f59e0b !important;
  color: #1f1300 !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
}

#fortnox-save-article-changes.has-unsaved-changes:hover {
  border-color: #92400e !important;
  background: #d97706 !important;
  color: #fff !important;
}

.webshop-fortnox-bulkbar label {
  display: grid;
  gap: 4px;
  min-width: 112px;
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 800;
}

.webshop-fortnox-bulkbar label:nth-of-type(3) {
  min-width: 116px;
}

.webshop-fortnox-bulkbar input,
.webshop-fortnox-bulkbar select {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 0.78rem;
}

@media (max-width: 1120px) {
  .webshop-fortnox-toolbar {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .webshop-fortnox-bulkbar {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }
}

@media (max-width: 760px) {
  .webshop-fortnox-toolbar,
  .webshop-fortnox-bulkbar,
  .fortnox-filter-row {
    grid-template-columns: 1fr;
  }

  .webshop-fortnox-toolbar .button,
  .webshop-fortnox-bulkbar .button {
    justify-content: center;
  }
}

#fortnox-articles-status {
  display: none;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 850;
}

#fortnox-articles-status.status-muted,
#fortnox-articles-status.status-error,
#fortnox-articles-status.status-warning,
#fortnox-articles-status.status-success {
  display: block;
}

.webshop-fortnox-summary {
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 700;
}

.fortnox-filter-switch {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.fortnox-filter-switch .toggle-copy strong {
  font-size: 0.78rem;
  line-height: 1;
}

.fortnox-filter-switch .switch {
  width: 42px;
  height: 24px;
}

.fortnox-filter-switch .switch .slider::before {
  width: 16px;
  height: 16px;
}

.fortnox-filter-switch .switch input:checked + .slider::before {
  transform: translateX(18px);
}

.fortnox-articles-log {
  display: grid;
  align-content: start;
  gap: 1px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  overflow-y: auto;
  padding: 5px 8px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.fortnox-filter-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px minmax(150px, 0.8fr) 150px;
  gap: 6px;
}

.fortnox-filter-row input,
.fortnox-filter-row select {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 4px 7px;
  background: #fff;
  color: #162235;
  font-size: 0.76rem;
}

.fortnox-log-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-height: 14px;
  color: #475569;
  font-size: 0.72rem;
  line-height: 1.15;
}

.fortnox-log-row span {
  flex: 0 0 auto;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fortnox-log-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fortnox-log-row.is-success strong {
  color: #166534;
}

.fortnox-log-row.is-warning strong {
  color: #8c6a2e;
}

.fortnox-log-row.is-error strong {
  color: #9f1d17;
}

.fortnox-ai-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
}

.fortnox-ai-input-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.fortnox-ai-input-row select,
.fortnox-ai-input-row input {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #162235;
  font-size: 0.86rem;
}

.fortnox-ai-scope-line {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.fortnox-ai-note {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.25;
}

.fortnox-ai-answer {
  min-height: 36px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  line-height: 1.35;
}

.fortnox-ai-answer ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.fortnox-ai-answer li + li {
  margin-top: 3px;
}

.fortnox-verification-panel {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.fortnox-verification-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #334155;
  font-size: 0.76rem;
}

.fortnox-verification-head span {
  color: #64748b;
}

.fortnox-verification-log {
  display: grid;
  gap: 2px;
  max-height: 96px;
  overflow-y: auto;
}

.fortnox-verification-row {
  display: grid;
  grid-template-columns: 60px 120px 140px minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  font-size: 0.7rem;
  line-height: 1.15;
  color: #475569;
}

.fortnox-verification-row span {
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fortnox-verification-row em {
  font-style: normal;
  font-weight: 800;
}

.fortnox-verification-row small {
  overflow-wrap: anywhere;
}

.fortnox-verification-row.is-success em {
  color: #166534;
}

.fortnox-verification-row.is-error em {
  color: #9f1d17;
}

.fortnox-row-refresh {
  min-height: 24px !important;
  padding: 0 7px !important;
  font-size: 0.66rem !important;
}

@media (max-width: 760px) {
  .fortnox-ai-input-row {
    grid-template-columns: 1fr;
  }

  .fortnox-verification-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}

.webshop-fortnox-table-wrap {
  max-height: min(2160px, calc(300vh - 930px));
  overflow: auto;
}

.webshop-fortnox-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-size: 0.74rem;
}

#own-prices-view .webshop-fortnox-table-wrap {
  max-height: min(1500px, calc(100vh - 280px));
  border: 1px solid #d9e2ef;
  border-radius: 8px;
}

#own-prices-view .webshop-fortnox-table {
  min-width: 980px;
  font-size: 0.7rem;
}

#own-prices-view .webshop-fortnox-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

#own-prices-view .webshop-fortnox-table th,
#own-prices-view .webshop-fortnox-table td {
  padding: 4px 6px;
}

#own-prices-view .webshop-fortnox-table input {
  min-height: 26px;
  padding: 3px 5px;
  font-size: 0.7rem;
}

#own-prices-view .own-prices-identity {
  display: grid;
  gap: 2px;
  min-width: 320px;
}

#own-prices-view .own-prices-identity strong {
  color: #27364a;
  font-size: 0.66rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#own-prices-view .own-prices-identity input {
  width: 100%;
}

#own-prices-view .webshop-fortnox-table td:nth-child(2),
#own-prices-view .webshop-fortnox-table td:nth-child(3) {
  width: 92px;
}

#own-prices-view .webshop-fortnox-table td:nth-child(6) {
  width: 54px;
  text-align: center;
}

#own-prices-view .webshop-fortnox-table tr.is-inactive td {
  background: #f8fafc;
  color: #64748b;
}

#own-prices-view .webshop-fortnox-table tr.is-changed td {
  background: #fff7ed;
}

.supplier-import-panel {
  display: grid;
  gap: 10px;
}

.supplier-import-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.supplier-import-toolbar label {
  display: grid;
  gap: 5px;
  color: #53657c;
  font-size: 0.76rem;
  font-weight: 800;
}

.supplier-import-toolbar input {
  min-height: 34px;
}

.supplier-import-help {
  color: #53657c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.supplier-prefix-map,
.supplier-import-summary,
.supplier-import-prefixes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.supplier-prefix-map span,
.supplier-import-summary div,
.supplier-import-prefixes div {
  padding: 7px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  font-size: 0.76rem;
}

.supplier-import-summary div {
  display: grid;
  gap: 2px;
  min-width: 150px;
}

.supplier-import-summary span {
  color: #64748b;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.supplier-import-prefixes .is-suggested {
  border-color: #3e8ba4;
  background: #eaf7fa;
}

.supplier-import-prefixes em {
  margin-left: 6px;
  color: #64748b;
  font-style: normal;
}

.supplier-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.supplier-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.supplier-import-actions label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #27364a;
  font-size: 0.78rem;
  font-weight: 800;
}

.supplier-import-process {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.supplier-import-process[hidden] {
  display: none;
}

.supplier-import-process.is-done {
  border-color: #86efac;
  background: #f0fdf4;
}

.supplier-import-process.is-error {
  border-color: #fecaca;
  background: #fff1f2;
}

.supplier-import-process-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #1f2a3d;
  font-size: 0.82rem;
}

.supplier-import-process-head span {
  color: #53657c;
  font-weight: 800;
}

.supplier-import-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.supplier-import-progress div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #14b8c4;
  transition: width 180ms ease;
}

.supplier-import-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.supplier-import-step {
  padding: 7px 8px;
  border: 1px solid #dbe4f0;
  border-radius: 7px;
  background: #fff;
  font-size: 0.72rem;
}

.supplier-import-step span {
  display: block;
  color: #64748b;
  font-size: 0.64rem;
  text-transform: uppercase;
}

.supplier-import-step strong {
  display: block;
  margin-top: 2px;
  color: #27364a;
}

.supplier-import-step.is-done {
  border-color: #86efac;
}

.supplier-import-step.is-warning {
  border-color: #fbbf24;
}

.supplier-import-step.is-pending {
  opacity: 0.72;
}

.supplier-import-process-log {
  max-height: 96px;
  overflow: auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  color: #53657c;
  font-size: 0.72rem;
  line-height: 1.35;
}

.supplier-import-price-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.supplier-import-price-panel h3 {
  margin: 0;
  color: #182235;
  font-size: 0.9rem;
}

.supplier-import-price-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) auto auto;
  gap: 10px;
  align-items: end;
}

.supplier-import-price-controls label {
  display: grid;
  gap: 4px;
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 800;
}

.supplier-import-price-controls input,
.supplier-import-price-controls select {
  min-height: 34px;
}

.supplier-price-check {
  display: inline-flex !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  gap: 6px !important;
  align-items: center;
  min-height: 34px;
}

.supplier-price-check input {
  width: 14px;
  height: 14px;
  min-height: 0;
}

.supplier-price-preview {
  display: grid;
  gap: 6px;
}

.supplier-price-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #53657c;
  font-size: 0.76rem;
}

.supplier-price-preview-summary span {
  padding: 5px 8px;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  background: #f8fafc;
}

.supplier-price-report-link {
  justify-self: start;
  margin: 2px 0;
}

.supplier-price-view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.supplier-price-view-controls label {
  display: grid;
  gap: 3px;
  color: #53657c;
  font-size: 0.7rem;
  font-weight: 800;
}

.supplier-price-view-controls select,
.supplier-price-view-controls input {
  min-height: 32px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}

.supplier-price-view-controls input {
  min-width: min(360px, 100%);
}

.supplier-price-table-head,
.supplier-price-row {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(5, minmax(80px, 1fr));
  gap: 8px;
  align-items: center;
}

.supplier-price-table-head {
  padding: 6px 8px;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-price-table {
  display: grid;
  align-content: start;
  max-height: 620px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.supplier-price-row {
  padding: 5px 8px;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.72rem;
}

.supplier-price-row strong {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.supplier-price-row strong span,
.supplier-price-row strong small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-price-row strong small {
  color: #64748b;
  font-weight: 600;
}

.supplier-price-row:last-child {
  border-bottom: 0;
}

.supplier-price-warnings {
  display: grid;
  gap: 3px;
  max-height: 110px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  color: #755f16;
  font-size: 0.72rem;
}

.supplier-import-wide {
  grid-column: 1 / -1;
}

.supplier-import-grid section {
  min-width: 0;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.supplier-import-grid h3 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 0.8rem;
}

.supplier-import-list {
  display: grid;
  gap: 1px;
  align-content: start;
  max-height: 310px;
  overflow: auto;
}

.supplier-import-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 4px 8px;
  padding: 4px 8px;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.72rem;
  line-height: 1.2;
}

.supplier-import-row.is-selectable {
  grid-template-columns: 22px 150px minmax(0, 1fr);
}

.supplier-import-row input {
  margin-top: 2px;
  width: 14px;
  height: 14px;
  min-height: 0;
}

.supplier-import-row span,
.supplier-import-row small {
  overflow-wrap: anywhere;
}

.supplier-import-row small {
  grid-column: 2;
  color: #64748b;
}

.supplier-import-row.is-selectable small {
  grid-column: 3;
}

.supplier-import-empty {
  padding: 8px 10px;
  color: #64748b;
  font-size: 0.74rem;
}

@media (max-width: 900px) {
  .supplier-import-toolbar,
  .supplier-import-grid {
    grid-template-columns: 1fr;
  }

  .supplier-import-process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .supplier-import-price-controls {
    grid-template-columns: 1fr;
  }

  .supplier-price-table-head,
  .supplier-price-row {
    grid-template-columns: 130px repeat(5, minmax(70px, 1fr));
  }
}

.webshop-fortnox-table th,
.webshop-fortnox-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 3px 5px;
  text-align: left;
  vertical-align: middle;
}

.webshop-fortnox-table th:nth-child(1),
.webshop-fortnox-table td:nth-child(1) {
  width: 34px;
}

.webshop-fortnox-table th:nth-child(8),
.webshop-fortnox-table td:nth-child(8) {
  width: 72px;
  text-align: center;
}

.webshop-fortnox-table th:nth-child(9),
.webshop-fortnox-table td:nth-child(9) {
  width: 94px;
}

.webshop-fortnox-table th:nth-child(10),
.webshop-fortnox-table td:nth-child(10) {
  width: 72px;
}

.webshop-fortnox-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.webshop-fortnox-table input[type="text"],
.webshop-fortnox-table input:not([type]) {
  width: 100%;
}

.webshop-fortnox-table input[data-fortnox-field] {
  width: 100%;
  min-height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.74rem;
  line-height: 1.15;
}

.webshop-fortnox-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
}

.webshop-fortnox-table tr.is-changed {
  background: #fffbea;
}

.webshop-fortnox-table tr.has-unknown-active:not(.is-changed) {
  background: #f8fafc;
}

.webshop-fortnox-table tr.has-unknown-active .webshop-fortnox-row-status {
  color: #8c6a2e;
}

.webshop-fortnox-row-status {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.fortnox-active-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}

.fortnox-active-all input {
  margin: 0;
}

.webshop-admin-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(520px, 1fr);
  gap: 18px;
  align-items: start;
  height: min(980px, calc(100vh - 250px));
  min-height: 520px;
  margin-top: 16px;
  overflow: hidden;
}

.webshop-collections-manager {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-collections-manager-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.webshop-collections-manager h3 {
  margin: 0 0 3px;
  color: #0f2243;
  font-size: 0.98rem;
}

.webshop-collections-manager p {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
}

.webshop-collections-create {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 8px;
}

.webshop-collections-manager-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webshop-collection-manager-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  max-width: 100%;
  padding: 0 4px 0 10px;
  border: 1px solid #c9d6e6;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-collection-manager-item > button:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.webshop-collection-manager-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webshop-collection-manager-item strong {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #2563eb;
  text-align: center;
}

.webshop-collection-delete {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.webshop-collection-delete:hover {
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
}

.webshop-admin-list {
  display: grid;
  align-content: start;
  gap: 7px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

@media (max-width: 1180px) {
  .webshop-admin-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .webshop-admin-editor {
    position: static;
  }

  .webshop-admin-list {
    max-height: 42vh;
  }
}

.webshop-admin-product {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 86px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  background: #fff;
  color: #10213e;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 34, 67, 0.04);
}

.webshop-admin-product.is-selected {
  border-color: #7fb6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.webshop-admin-product.is-missing-article {
  border-color: #f59e0b;
  background: #fffbeb;
}

.webshop-admin-product.is-missing-article.is-selected {
  border-color: #7fb6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.webshop-admin-missing-article {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  background: #fef3c7;
  color: #475569 !important;
  font-weight: 700;
}

.webshop-admin-thumb {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #dfe7f1;
  border-radius: 7px;
  background: #f8fafc;
  overflow: hidden;
}

.webshop-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.webshop-admin-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.webshop-admin-summary strong {
  overflow: hidden;
  color: #0f2243;
  font-size: 0.88rem;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webshop-admin-summary span,
.webshop-admin-price {
  overflow: hidden;
  color: #586a82;
  font-size: 0.72rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webshop-admin-summary .webshop-admin-menu-assignment {
  color: #176b87;
  font-weight: 700;
}

.webshop-admin-price {
  justify-self: end;
  color: #0f2243;
  font-weight: 700;
}

.webshop-admin-editor {
  position: sticky;
  top: 16px;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 34, 67, 0.07);
}

.webshop-admin-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.webshop-admin-editor-head h3 {
  margin: 0;
  color: #0f2243;
  font-size: 1rem;
  line-height: 1.2;
}

.webshop-admin-editor-media {
  display: grid;
  place-items: center;
  min-height: 148px;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.webshop-admin-editor-media img {
  max-width: 160px;
  max-height: 136px;
  object-fit: contain;
}

.webshop-admin-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.webshop-admin-form label {
  display: grid;
  gap: 4px;
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 700;
}

.webshop-admin-form input,
.webshop-admin-form select,
.webshop-admin-form textarea {
  width: 100%;
}

.webshop-admin-form .full-width {
  grid-column: 1 / -1;
}

.webshop-editor-group {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfcff;
}

.webshop-editor-group h4 {
  margin: 0 0 8px;
  color: #0f2243;
  font-size: 0.82rem;
}

.webshop-editor-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#webshop-product-editor .webshop-title-field {
  grid-column: 1 / -1;
}

#webshop-product-editor .webshop-title-field input {
  min-height: 38px;
  font-size: 0.92rem;
}

#webshop-product-editor .webshop-editor-group-grid label:not(.webshop-title-field),
#webshop-product-editor .webshop-menu-field-pair label {
  font-size: 0.68rem;
}

#webshop-product-editor .webshop-editor-group-grid label:not(.webshop-title-field) input,
#webshop-product-editor .webshop-editor-group-grid label:not(.webshop-title-field) select,
#webshop-product-editor .webshop-menu-field-pair input,
#webshop-product-editor .webshop-menu-field-pair select {
  min-height: 28px;
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: 0.76rem;
}

#webshop-product-editor .webshop-vendor-field input[readonly] {
  border-color: #d8e0ea !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
}

.webshop-collection-editor {
  display: grid;
  gap: 8px;
}

.webshop-selected-collections {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-selected-collection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid #a8c7ee;
  border-radius: 999px;
  background: #edf4ff;
  color: #0f2243;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-selected-collection span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webshop-selected-collection strong {
  color: #2563eb;
  font-size: 0.9rem;
}

.webshop-selected-collections-empty {
  align-self: center;
  color: #64748b;
  font-size: 0.78rem;
}

.webshop-collection-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.webshop-existing-collection-select {
  width: 100%;
  min-height: 38px;
}

.webshop-variant-editor {
  padding: 8px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-variant-head {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.webshop-edit-variants-list {
  display: grid;
  gap: 8px;
}

.webshop-variant-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr) 68px 26px;
  gap: 5px;
  align-items: end;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fbfcff;
}

.webshop-variant-row label {
  min-width: 0;
}

.webshop-variant-row label:nth-of-type(1) {
  grid-column: 2;
  grid-row: 1;
}

.webshop-variant-row label:nth-of-type(2) {
  grid-column: 3;
  grid-row: 1;
}

.webshop-variant-row .webshop-variant-sync-button {
  grid-column: 4;
  grid-row: 1;
}

.webshop-variant-row [data-remove-variant] {
  grid-column: 5;
  grid-row: 1;
}

.webshop-variant-row label:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
}

.webshop-variant-row label:nth-of-type(4) {
  grid-column: 3;
  grid-row: 2;
}

.webshop-variant-row .webshop-variant-active-button {
  grid-column: 4;
  grid-row: 2;
}

.webshop-variant-row label:nth-of-type(5) {
  grid-column: 2;
  grid-row: 3;
}

.webshop-variant-row label:nth-of-type(6) {
  grid-column: 3;
  grid-row: 3;
}

.webshop-variant-fortnox-status {
  grid-column: 2 / span 4;
  grid-row: 4;
  min-height: 18px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
}

.webshop-variant-fortnox-status.is-synced {
  color: #166534;
}

.webshop-variant-fortnox-status.is-error {
  color: #9f1d17;
}

.webshop-variant-row input {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 0.76rem;
}

.webshop-variant-row input[data-variant-field="price"],
.webshop-variant-row input[data-variant-field="purchase_price"] {
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.webshop-variant-row.is-dragging {
  opacity: 0.55;
}

.webshop-variant-drag-handle {
  grid-column: 1;
  grid-row: 1 / span 4;
  align-self: end;
  color: #7c8da3;
  cursor: grab;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  user-select: none;
}

.webshop-variant-row [data-remove-variant] {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #b55145;
  cursor: pointer;
}

.webshop-variant-sync-button,
.webshop-variant-active-button {
  height: 28px;
  min-height: 28px;
  box-sizing: border-box;
  padding: 0 7px;
  border: 1px solid #b9c6d8;
  border-radius: 6px;
  background: #fff;
  color: #16345d;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.webshop-variant-sync-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.webshop-variant-active-button.is-active {
  border-color: #9bd5ad;
  background: #edfdf3;
  color: #166534;
}

.webshop-variant-active-button.is-inactive {
  border-color: #f0b4ae;
  background: #fff1f0;
  color: #9f1d17;
}

@media (max-width: 720px) {
  .webshop-variant-row {
    grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr);
  }

  .webshop-variant-row .webshop-variant-sync-button {
    grid-column: 2;
    grid-row: 4;
  }

  .webshop-variant-row .webshop-variant-active-button {
    grid-column: 3;
    grid-row: 4;
  }

  .webshop-variant-row [data-remove-variant] {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .webshop-variant-fortnox-status {
    grid-column: 2 / span 2;
    grid-row: 5;
  }
}

.webshop-field-label {
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.webshop-edit-images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.webshop-edit-image-item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
  cursor: grab;
  overflow: hidden;
}

.webshop-edit-image-item.is-dragging {
  opacity: 0.5;
}

.webshop-edit-image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.webshop-edit-image-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 4px;
}

.webshop-edit-image-actions button {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 34, 67, 0.86);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

#webshop-image-editor-dialog {
  width: min(1180px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
}

.webshop-image-editor-card {
  width: min(1180px, calc(100vw - 24px));
  box-sizing: border-box;
  max-height: calc(100vh - 24px);
  overflow: auto;
  gap: 14px;
  padding: 14px;
}

.webshop-image-editor-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.webshop-image-editor-stage {
  display: grid;
  place-items: center;
  width: min(100%, 720px, calc(100vh - 230px));
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
}

.webshop-image-editor-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 34, 67, 0.16);
  touch-action: none;
}

.webshop-image-editor-stage canvas.is-moving {
  cursor: grab;
}

.webshop-image-editor-stage canvas.is-moving:active {
  cursor: grabbing;
}

.webshop-image-editor-controls {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fbfcff;
}

.webshop-image-editor-controls label:not(.webshop-check-field) {
  display: grid;
  gap: 6px;
  color: #53657c;
  font-size: 0.76rem;
  font-weight: 800;
}

.webshop-image-editor-controls input[type="range"] {
  width: 100%;
}

.webshop-image-scale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px auto;
  gap: 8px;
  align-items: center;
}

.webshop-image-scale-row input[type="number"] {
  width: 68px;
  min-height: 34px;
  padding: 0 8px;
}

.webshop-image-scale-row span {
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-image-editor-controls input[type="color"] {
  width: 76px;
  height: 40px;
  padding: 2px;
}

.webshop-image-color-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.webshop-image-color-row input[type="text"] {
  min-height: 38px;
  padding: 0 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}

.webshop-image-favorite-colors {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-image-color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 5px;
}

.webshop-image-color-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 4px;
  align-items: center;
}

.webshop-image-color-item:not(:has(.webshop-image-color-remove)) {
  grid-template-columns: minmax(0, 1fr);
}

.webshop-image-color-select {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-height: 26px;
  padding: 2px 5px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.webshop-image-color-swatch {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #d9e2ef;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 34, 67, 0.12);
}

.webshop-image-color-name {
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webshop-image-color-item.is-active .webshop-image-color-select {
  border-color: #0f2243;
  box-shadow: 0 0 0 2px rgba(15, 34, 67, 0.16);
}

.webshop-image-color-remove {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  background: #fff;
  color: #53657c;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.webshop-image-color-remove:hover {
  border-color: #efb4b4;
  background: #fff5f5;
  color: #b42318;
}

.webshop-image-color-empty {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.webshop-image-favorite-colors .button {
  min-height: 28px;
  justify-self: start;
  padding: 0 10px;
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .webshop-image-editor-layout {
    grid-template-columns: 1fr;
  }

  .webshop-image-editor-stage canvas {
    width: 100%;
  }

  .webshop-image-editor-stage {
    width: min(100%, calc(100vh - 330px));
  }
}

@media (min-width: 900px) and (max-height: 820px) {
  .webshop-image-editor-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .webshop-image-favorite-colors,
  .webshop-image-editor-controls .settings-note,
  .webshop-image-editor-controls .settings-actions {
    grid-column: 1 / -1;
  }

  .webshop-image-favorite-colors {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 8px;
  }

  .webshop-image-favorite-colors .webshop-field-label,
  .webshop-image-favorite-colors .webshop-image-color-swatches {
    grid-column: 1;
  }

  .webshop-image-favorite-colors .button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .webshop-image-color-swatches {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }

  .webshop-image-color-swatch {
    width: 18px;
    height: 18px;
  }
}

#webshop-orders-view .flow-panel {
  max-width: none;
  margin: 0;
}

.webshop-orders-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.webshop-orders-summary-item {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-orders-summary-item span {
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.webshop-orders-summary-item strong {
  color: #0f2243;
  font-size: 1.18rem;
  line-height: 1;
}

.webshop-orders-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
  align-items: end;
  margin-bottom: 10px;
}

.webshop-orders-search {
  display: grid;
  gap: 4px;
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.webshop-orders-search input {
  min-height: 38px;
}

.webshop-orders-table th,
.webshop-orders-table td {
  vertical-align: top;
}

.webshop-orders-table {
  table-layout: fixed;
  width: 100%;
  min-width: 980px;
}

.webshop-orders-table th:nth-child(1),
.webshop-orders-table td:nth-child(1) {
  width: 24%;
}

.webshop-orders-table th:nth-child(2),
.webshop-orders-table td:nth-child(2) {
  width: 30%;
}

.webshop-orders-table th:nth-child(3),
.webshop-orders-table td:nth-child(3) {
  width: 24%;
}

.webshop-orders-table th:nth-child(4),
.webshop-orders-table td:nth-child(4) {
  width: 22%;
}

.webshop-order-row td {
  padding: 14px 16px;
}

.webshop-order-row.needs-attention td {
  background: #fff7ed;
  border-top-color: #fed7aa;
  border-bottom-color: #fed7aa;
}

.webshop-order-row.needs-attention td:first-child {
  box-shadow: inset 4px 0 0 #f97316;
}

.webshop-order-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.webshop-order-attention-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #fdba74;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 0.68rem;
  font-weight: 900;
}

.webshop-order-toggle {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f2243;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.webshop-order-primary {
  margin-top: 5px;
  color: #0f2243;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.webshop-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  color: #53657c;
  font-size: 0.72rem;
  line-height: 1.25;
}

.webshop-order-meta strong {
  color: #0f2243;
}

.webshop-order-products {
  display: grid;
  gap: 5px;
}

.webshop-order-product-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  color: #0f2243;
  font-size: 0.84rem;
  line-height: 1.28;
}

.webshop-order-product-line strong {
  color: #53657c;
  font-size: 0.76rem;
}

.webshop-order-product-line span,
.webshop-order-address {
  overflow-wrap: anywhere;
}

.webshop-order-address {
  color: #0f2243;
  font-size: 0.86rem;
  line-height: 1.3;
}

.webshop-order-status-stack {
  display: grid;
  gap: 7px;
  align-content: start;
  justify-items: start;
}

.webshop-order-status-stack .badge {
  max-width: 100%;
  white-space: nowrap;
}

.webshop-order-status-badge {
  border-radius: 999px;
}

.webshop-order-row.is-expanded {
  background: #f8fafc;
}

.webshop-order-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.webshop-order-actions .mini-match-button {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.webshop-order-status-control {
  display: grid;
  gap: 4px;
  width: 100%;
  color: #53657c;
  font-size: 0.7rem;
  font-weight: 700;
}

.webshop-order-status-control select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fff;
  color: #0f2243;
  font-size: 0.8rem;
}

.webshop-order-blikk-number {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #0f2243;
}

.webshop-order-blikk-number span,
.webshop-order-blikk-number small {
  color: #53657c;
  font-size: 0.68rem;
  line-height: 1.1;
}

.webshop-order-blikk-number strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.webshop-order-blikk-number a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.webshop-order-blikk-number a:hover {
  color: #0ea5b7;
}

.webshop-order-locked-note {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  background: #f8fafc;
  color: #53657c;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.webshop-send-blikk-card {
  width: min(1380px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

#webshop-send-blikk-dialog {
  width: min(1380px, calc(100vw - 32px));
  max-width: none;
}

.webshop-send-blikk-card .pod-dialog-content {
  max-height: none;
}

.webshop-send-blikk-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.webshop-send-blikk-fields label {
  display: grid;
  gap: 5px;
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 700;
}

.webshop-send-blikk-fields select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd9e6;
  border-radius: 8px;
  background: #fff;
  color: #0f2243;
}

.webshop-send-blikk-summary-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 8px;
  margin-bottom: 12px;
}

.webshop-send-blikk-summary-head div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #f8fafc;
}

.webshop-send-blikk-summary-head span {
  color: #53657c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.webshop-send-blikk-summary-head strong {
  color: #0f2243;
  font-size: 0.86rem;
}

.webshop-send-blikk-products {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}

.webshop-send-blikk-products h3 {
  margin: 0;
  color: #0f2243;
  font-size: 0.9rem;
}

.webshop-send-blikk-products table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.webshop-send-blikk-products th,
.webshop-send-blikk-products td {
  padding: 7px 8px;
  border-bottom: 1px solid #e5edf6;
  text-align: left;
  vertical-align: top;
}

.webshop-send-blikk-products th {
  color: #53657c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .webshop-send-blikk-fields,
  .webshop-send-blikk-summary-head {
    grid-template-columns: 1fr;
  }

  .webshop-send-blikk-card {
    width: min(100vw - 16px, 720px);
    max-height: calc(100vh - 16px);
    padding: 14px;
  }
}

.webshop-order-detail-row > td {
  padding: 0;
  background: #f8fafc;
}

.webshop-order-detail-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid #d9e2ef;
}

.webshop-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.webshop-orders-table th {
  padding-top: 8px;
  padding-bottom: 8px;
}

.webshop-order-row td {
  padding: 8px 12px;
}

.webshop-order-primary {
  margin-top: 2px;
  font-size: 0.8rem;
}

.webshop-order-meta {
  gap: 4px 8px;
  margin-top: 4px;
  font-size: 0.68rem;
}

.webshop-order-products {
  gap: 2px;
}

.webshop-order-product-line {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 4px;
  font-size: 0.78rem;
  line-height: 1.18;
}

.webshop-order-product-line strong {
  font-size: 0.7rem;
}

.webshop-order-address {
  font-size: 0.8rem;
  line-height: 1.2;
}

.webshop-order-status-stack {
  gap: 4px;
}

.webshop-order-actions {
  gap: 4px;
}

.webshop-order-actions .mini-match-button {
  min-height: 26px;
  padding: 0 6px;
  font-size: 0.7rem;
}

.webshop-order-status-control {
  gap: 2px;
  font-size: 0.66rem;
}

.webshop-order-status-control select {
  min-height: 28px;
  font-size: 0.74rem;
}

.webshop-orders-mobile-hint,
.webshop-order-mobile-status {
  display: none;
}

@media (max-width: 760px) {
  .webshop-orders-mobile-hint {
    display: block;
    margin: 8px 0;
    color: #32758b;
    font-size: 0.76rem;
    font-weight: 700;
  }

  .webshop-order-mobile-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
  }

  .webshop-orders-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .webshop-orders-summary-item {
    min-height: 66px;
    padding: 9px 10px;
  }

  .webshop-orders-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #webshop-orders-status-tabs.webshop-status-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  #webshop-orders-status-tabs.webshop-status-tabs button {
    flex: 0 0 auto;
  }

  .webshop-orders-search {
    text-transform: none;
  }

  .webshop-orders-wrap {
    overflow-x: auto;
  }

  .webshop-order-detail-grid {
    grid-template-columns: 1fr;
  }
}

.webshop-order-detail-grid section,
.webshop-order-lines {
  padding: 12px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-order-detail-grid h3,
.webshop-order-lines h3 {
  margin: 0 0 8px;
  color: #0f2243;
  font-size: 0.86rem;
  line-height: 1.2;
}

.webshop-order-detail-grid p {
  margin: 0 0 5px;
  color: #53657c;
  font-size: 0.76rem;
  line-height: 1.35;
}

.webshop-order-line-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  background: #fff;
}

.webshop-order-total-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
  color: #53657c;
  font-size: 0.78rem;
}

.webshop-order-total-strip strong {
  color: #0f2243;
}

.webshop-main-image-label {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 107, 135, 0.92);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
}

.webshop-image-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.webshop-image-upload {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 9px;
  border: 1px solid #c9d6e6;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.webshop-image-file-input,
.webshop-image-upload input {
  display: none;
}

.webshop-description-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.webshop-description-toolbar button,
.webshop-description-toolbar select,
.webshop-description-size {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #c9d6e6;
  border-radius: 7px;
  background: #fff;
  color: #0f2243;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.webshop-description-toolbar select {
  width: auto;
  min-width: 112px;
  max-width: 150px;
}

.webshop-description-size {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

.webshop-description-size input {
  width: 46px;
  min-height: 22px;
  padding: 0 3px;
  font-size: 0.76rem;
  appearance: auto;
  -moz-appearance: number-input;
}

.webshop-description-size input::-webkit-inner-spin-button,
.webshop-description-size input::-webkit-outer-spin-button {
  display: block;
  opacity: 1;
  margin: 0;
  -webkit-appearance: inner-spin-button;
}

.webshop-description-input {
  min-height: 132px;
  padding: 10px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  background: #fff;
  color: #0f2243;
  line-height: 1.5;
  outline: none;
}

.webshop-description-input:focus {
  border-color: #176b87;
  box-shadow: 0 0 0 3px rgba(23, 107, 135, 0.14);
}

.webshop-product-preview {
  padding: 10px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
}

.webshop-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #53657c;
  font-size: 0.72rem;
  font-weight: 800;
}

.webshop-preview-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.webshop-preview-card:hover .webshop-preview-image {
  border-color: #9bb8d8;
}

.webshop-preview-image {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.webshop-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.webshop-preview-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.webshop-preview-copy strong {
  color: #0f2243;
}

.webshop-preview-copy span,
.webshop-preview-copy div {
  color: #53657c;
  font-size: 0.78rem;
  line-height: 1.35;
}

.webshop-hide-price {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.webshop-hide-price input {
  width: auto;
}

.webshop-variant-select {
  display: grid;
  gap: 6px;
  max-width: 280px;
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-variant-select select {
  min-height: 38px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.webshop-variant-options {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.webshop-variant-options-title {
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-variant-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  background: #fff;
  color: #0f2243;
  cursor: pointer;
  text-align: left;
}

.webshop-variant-option.is-selected {
  border-color: #1f5d9f;
  box-shadow: 0 0 0 2px rgba(31, 93, 159, 0.14);
}

.webshop-variant-option span,
.webshop-variant-option strong,
.webshop-variant-option small {
  min-width: 0;
}

.webshop-variant-option span {
  font-weight: 800;
}

.webshop-variant-option strong {
  font-size: 0.86rem;
}

.webshop-variant-option small {
  grid-column: 1 / -1;
  color: #53657c;
  font-size: 0.72rem;
}

#webshop-products-view .webshop-admin-thumb,
#webshop-products-view .webshop-admin-editor-media,
#webshop-products-view .webshop-admin-editor-media img,
#webshop-products-view .webshop-edit-image-item,
#webshop-product-preview .webshop-preview-image,
#webshop-view .webshop-image-wrap,
#webshop-view .webshop-product-image {
  aspect-ratio: 1 / 1 !important;
}

#webshop-products-view .webshop-admin-editor-media {
  width: min(100%, 220px);
  min-height: 0;
  justify-self: center;
}

#webshop-products-view .webshop-admin-editor-media img,
#webshop-view .webshop-product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#webshop-product-detail .webshop-product-modal {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Final webshop UI polish overrides. */
#webshop-view .webshop-checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  gap: 20px !important;
  align-items: start !important;
}

#webshop-view .webshop-checkout-main {
  min-width: 0 !important;
}

#webshop-view .webshop-order-summary {
  position: sticky !important;
  top: 16px !important;
  align-self: start !important;
}

#webshop-view .webshop-products-grid {
  align-items: stretch !important;
}

#webshop-view .webshop-product-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(42px, auto) auto 1fr auto !important;
  height: 100% !important;
  min-height: 326px !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

#webshop-view .webshop-product-card:hover {
  transform: translateY(-2px) !important;
  border-color: #d8e7ec !important;
  box-shadow: 0 12px 28px rgba(15, 34, 67, 0.08) !important;
}

#webshop-view .webshop-product-card .webshop-image-wrap {
  place-self: center !important;
}

#webshop-view .webshop-product-title {
  display: -webkit-box !important;
  min-height: 38px !important;
  max-height: 46px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-product-price {
  min-height: 24px !important;
  align-self: start !important;
  font-size: 0.8rem !important;
}

#webshop-view .webshop-card-buy {
  align-self: end !important;
  margin-top: 0 !important;
}

#webshop-view .webshop-card-buy button {
  min-height: 42px !important;
}

#webshop-product-detail .webshop-detail-main-image {
  display: grid !important;
  place-items: center !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  display: block !important;
  width: 82% !important;
  height: 82% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

#webshop-product-detail .webshop-detail-thumbs button {
  display: grid !important;
  place-items: center !important;
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  min-height: 82px !important;
  padding: 5px !important;
}

#webshop-product-detail .webshop-detail-thumbs img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  #webshop-view .webshop-checkout-layout {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-order-summary {
    position: static !important;
  }
}

/* Webshop UI polish: checkout layout, product popup media, and product cards. */
#webshop-view .webshop-checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  gap: 20px !important;
  align-items: start !important;
}

#webshop-view .webshop-checkout-main {
  min-width: 0 !important;
}

#webshop-view .webshop-order-summary {
  position: sticky !important;
  top: 16px !important;
  align-self: start !important;
}

#webshop-view .webshop-products-grid {
  align-items: stretch !important;
}

#webshop-view .webshop-product-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(42px, auto) auto 1fr auto !important;
  height: 100% !important;
  min-height: 326px !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

#webshop-view .webshop-product-card:hover {
  transform: translateY(-2px) !important;
  border-color: #d8e7ec !important;
  box-shadow: 0 12px 28px rgba(15, 34, 67, 0.08) !important;
}

#webshop-view .webshop-product-card .webshop-image-wrap {
  place-self: center !important;
}

#webshop-view .webshop-product-title {
  display: -webkit-box !important;
  min-height: 48px !important;
  max-height: 57px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-product-price {
  min-height: 24px !important;
  align-self: start !important;
}

#webshop-view .webshop-card-buy {
  align-self: end !important;
  margin-top: 0 !important;
}

#webshop-view .webshop-card-buy button {
  min-height: 42px !important;
}

#webshop-product-detail .webshop-detail-main-image {
  display: grid !important;
  place-items: center !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  display: block !important;
  width: 82% !important;
  height: 82% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

#webshop-product-detail .webshop-detail-thumbs button {
  display: grid !important;
  place-items: center !important;
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  padding: 5px !important;
}

#webshop-product-detail .webshop-detail-thumbs img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  #webshop-view .webshop-checkout-layout {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-order-summary {
    position: static !important;
  }
}

#webshop-product-detail .webshop-product-modal {
  border-radius: 16px !important;
  overflow: hidden !important;
}

@keyframes webshopImageBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-6px) scale(1.035);
  }
  65% {
    transform: translateY(2px) scale(0.995);
  }
}

@media (hover: hover) and (pointer: fine) {
  #webshop-view .webshop-product-card .webshop-product-image {
    transform-origin: center;
    will-change: transform;
  }

  #webshop-view .webshop-product-card:hover .webshop-product-image {
    animation: webshopImageBounce 0.42s ease-out;
  }
}

#webshop-view #webshop-delivery-card .webshop-form-grid label > span,
#webshop-view #webshop-delivery-card .webshop-checkout-meta-row label > span {
  font-weight: 700;
}

#webshop-product-detail .webshop-product-modal {
  border-radius: 10px !important;
  overflow: hidden;
}

#webshop-product-detail .webshop-detail-cart {
  border-width: 2px !important;
}

#webshop-view .webshop-cart-line {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) auto 28px !important;
}

#webshop-view .webshop-cart-total,
#webshop-view .webshop-summary-total {
  display: flex !important;
}

#webshop-view .webshop-cart-remove {
  display: inline-grid !important;
}

#webshop-view .webshop-checkout-card-head {
  display: flex !important;
}

#webshop-view .webshop-checkout-card-head,
#webshop-review-dialog .webshop-review-products,
#webshop-review-dialog .webshop-review-grid > div {
  border-color: #E6EEF0 !important;
  background: transparent !important;
}

#webshop-view .webshop-checkout-card-head p,
#webshop-view .webshop-checkout-card-head > span {
  color: #5B6870 !important;
}

#webshop-view .webshop-checkout-error-summary {
  border-color: #FECACA !important;
  background: #FFF7F7 !important;
  color: #991B1B !important;
}

#webshop-review-dialog .webshop-review-hero {
  display: flex !important;
  border-color: #BFDBFE !important;
  background: #EFF6FF !important;
}

#webshop-review-dialog .webshop-review-hero span {
  color: #1E3A8A !important;
}

#webshop-review-dialog .webshop-review-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#webshop-view .webshop-card-buy button,
#webshop-product-detail .webshop-detail-cart,
#webshop-product-detail .webshop-detail-buy {
  width: auto !important;
  min-width: 118px !important;
  max-width: max-content !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

#webshop-view .webshop-order-summary .button {
  width: auto !important;
}

#webshop-view .button:disabled,
#webshop-view button:disabled {
  cursor: not-allowed !important;
  opacity: 0.55 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  #webshop-review-dialog .webshop-review-grid {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-checkout-card-head {
    display: grid !important;
  }

  #webshop-view .webshop-checkout-card-head > span {
    max-width: none;
    text-align: left;
  }
}

.webshop-blikk-send-log {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.webshop-blikk-log-entry {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
  background: #f8fbfc;
}

.webshop-blikk-log-entry span,
.webshop-blikk-log-entry small {
  color: #667985;
  font-size: 0.78rem;
}

.webshop-blikk-log-entry strong {
  color: #1f2933;
}

.webshop-blikk-log-entry.is-error {
  border-color: #fecaca;
  background: #fff7f7;
}

.webshop-blikk-log-entry.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.webshop-blikk-log-entry.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

#webshop-review-dialog::backdrop {
  background: rgba(245, 248, 249, 0.78);
  backdrop-filter: blur(2px);
}

#webshop-review-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
}

#webshop-review-dialog .webshop-review-dialog-card {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  margin: 0 auto;
  background: #ffffff !important;
  border: 1px solid #e7eef0 !important;
  box-shadow: 0 18px 48px rgba(31, 41, 51, 0.12) !important;
}

#webshop-review-dialog .pod-dialog-head {
  background: #ffffff !important;
  border-color: transparent !important;
  padding-bottom: 2px;
}

#webshop-review-dialog .webshop-review-content {
  gap: 10px;
}

#webshop-review-dialog .webshop-review-content > div {
  background: #fbfcfd !important;
  border: 1px solid #e6eef0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 10px 12px;
  color: #1f2933 !important;
}

#webshop-review-dialog .webshop-review-content span {
  color: #667985 !important;
}

#webshop-review-dialog .webshop-review-content strong,
#webshop-review-dialog .webshop-review-section-title {
  color: #18232f !important;
}

#webshop-review-dialog .webshop-review-product {
  background: #ffffff;
  border-color: #e7eef0;
  box-shadow: none;
}

#webshop-view #webshop-delivery-card .webshop-field-invalid {
  border-color: #dc2626 !important;
  background: #fff7f7 !important;
  outline: 2px solid #dc2626 !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

#webshop-view #webshop-delivery-card label:has(.webshop-field-invalid) span {
  color: #b91c1c !important;
}

#webshop-product-detail .webshop-detail-copy {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

#webshop-product-detail .webshop-detail-nav {
  justify-content: flex-end !important;
}

#webshop-product-detail .webshop-quantity-control input {
  appearance: auto !important;
  -moz-appearance: number-input !important;
  padding: 4px 4px 4px 8px !important;
}

#webshop-product-detail .webshop-quantity-control input::-webkit-inner-spin-button,
#webshop-product-detail .webshop-quantity-control input::-webkit-outer-spin-button {
  display: block !important;
  opacity: 1 !important;
  margin: 0 !important;
  -webkit-appearance: inner-spin-button !important;
}

#webshop-product-detail .webshop-detail-cart,
#webshop-product-detail .webshop-detail-buy {
  width: auto !important;
  min-width: 150px !important;
  justify-self: start !important;
  padding-inline: 18px !important;
}

#webshop-product-detail .webshop-detail-media {
  display: grid !important;
  place-items: center !important;
  max-width: 420px !important;
  min-height: 0 !important;
  padding: 18px !important;
  justify-self: center !important;
}

#webshop-product-detail .webshop-detail-main-image {
  width: min(100%, 360px) !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
  display: grid !important;
  place-items: center !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: auto !important;
  object-fit: contain !important;
}

#webshop-product-detail .webshop-detail-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
}

#webshop-product-detail .webshop-detail-thumbs button {
  width: 58px !important;
  height: 58px !important;
  padding: 4px !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
}

#webshop-view .webshop-detail-thumbs button.is-active {
  border-color: #176b87 !important;
  box-shadow: 0 0 0 2px rgba(23, 107, 135, 0.16) !important;
}

#webshop-view .webshop-detail-thumbs img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}

body.webshop-modal-open {
  overflow: hidden;
}

#webshop-product-detail.webshop-product-detail:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 18px !important;
  background: transparent !important;
  border: 0 !important;
}

#webshop-product-detail .webshop-product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 67, 0.46);
}

#webshop-product-detail .webshop-product-modal {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 34, 67, 0.28);
}

#webshop-product-detail .webshop-detail-nav {
  position: sticky !important;
  top: 0 !important;
  max-width: none !important;
  margin: 0 0 16px !important;
  padding: 0 0 10px !important;
  background: #fff !important;
}

#webshop-product-detail .webshop-detail-grid {
  max-width: none !important;
  margin: 0 !important;
  grid-template-columns: minmax(300px, 420px) minmax(320px, 1fr) !important;
  gap: 34px !important;
}

#tsgg-view .shipment-filter-panel {
  grid-template-columns: minmax(260px, 2fr) minmax(120px, 1fr) minmax(110px, 0.9fr) minmax(130px, 0.9fr) auto !important;
  gap: 8px !important;
  padding: 10px 14px !important;
}

#tsgg-view .shipment-status-pills {
  gap: 6px !important;
  min-width: 0 !important;
}

#tsgg-view .shipment-status-pill {
  min-height: 30px !important;
  padding: 4px 8px !important;
  gap: 6px !important;
  border-radius: 8px !important;
  font-size: 0.68rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#tsgg-view .shipment-status-pill strong {
  min-width: 22px !important;
  height: 20px !important;
  padding: 0 5px !important;
  font-size: 0.66rem !important;
}

#tsgg-view .shipping-dashboard-head {
  min-height: 48px !important;
  padding: 10px 14px !important;
}

#webshop-products-view .webshop-admin-editor {
  max-height: 100% !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#webshop-products-view .webshop-admin-editor-head {
  position: sticky;
  top: -14px;
  z-index: 2;
  padding-top: 14px;
  padding-bottom: 10px;
  background: #fff;
}

.webshop-contact-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.webshop-checkout-meta-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.webshop-billing-selector {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: #53657c;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-billing-selector select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.webshop-delivery-address-hint {
  margin: -4px 0 4px;
  color: #53657c;
  font-size: 0.78rem;
}

.webshop-billing-new {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.webshop-billing-new[hidden],
.webshop-billing-box[hidden] {
  display: none !important;
}

.webshop-billing-new label {
  display: grid;
  gap: 5px;
  font-size: 0.86rem;
  color: #1f2a3a;
}

.webshop-billing-new input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8dce2;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

@media (max-width: 760px) {
  .webshop-billing-new { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .webshop-contact-row,
  .webshop-checkout-meta-row {
    grid-template-columns: 1fr;
  }
}

#webshop-product-detail .webshop-quantity-control {
  width: 112px !important;
}

#webshop-product-detail .webshop-quantity-control input {
  width: 72px !important;
  min-height: 34px !important;
  padding: 4px 8px !important;
  text-align: center !important;
}

#webshop-product-detail .webshop-detail-media {
  max-width: 420px !important;
  justify-self: center !important;
}

#webshop-product-detail .webshop-detail-main-image {
  display: grid !important;
  place-items: center !important;
  width: min(100%, 360px) !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  width: 100% !important;
  height: 100% !important;
  margin: auto !important;
  object-fit: contain !important;
}

#webshop-products[hidden],
#webshop-product-detail[hidden],
#webshop-checkout[hidden] {
  display: none !important;
}

.webshop-shell {
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 26px 34px 40px;
}

#webshop-view .flow-search-status {
  margin: 4px 0 22px;
  color: #555;
  background: transparent;
  border: 0;
  padding: 0;
}

.webshop-inline-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid #e6e8eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 34, 67, 0.06);
}

.webshop-inline-cart[hidden] {
  display: none !important;
}

.webshop-inline-cart div {
  display: grid;
  gap: 3px;
}

.webshop-inline-cart span {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.webshop-inline-cart strong {
  color: #111;
  font-size: 1.02rem;
}

.webshop-product-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  background: transparent;
}

.webshop-image-wrap {
  display: block;
  width: 82%;
  max-width: 210px;
  justify-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  overflow: hidden;
  cursor: pointer;
}

.webshop-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  display: block;
}

.webshop-product-title {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.webshop-product-title:hover {
  text-decoration: underline;
}

.webshop-product-vendor {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.webshop-product-outgoing {
  align-self: flex-start;
  display: inline-flex;
  border: 1px solid #b45309;
  border-radius: 4px;
  background: #fff7ed;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 7px;
  text-transform: uppercase;
}

.webshop-product-price {
  color: #111;
  font-size: 1.03rem;
  letter-spacing: 0.06em;
}

.webshop-card-buy {
  display: block;
  margin-top: 10px;
}

.webshop-card-buy button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #3e8ba4;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.webshop-card-buy button:hover {
  background: #3e8ba4;
  color: #fff;
}

.webshop-head {
  align-items: center;
  border-bottom: 0;
}

.webshop-head .toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 8px;
}

.webshop-cart-button {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

.webshop-cart-button strong {
  position: absolute;
  right: -4px;
  top: -7px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2d81ff;
  color: #fff;
  font-size: 0.72rem;
}

.webshop-collection-filter {
  display: flex;
  gap: 8px;
  margin: 4px 0 14px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.webshop-collection-filter[hidden] {
  display: none !important;
}

.webshop-collection-filter button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #c9d6e6;
  border-radius: 999px;
  background: #fff;
  color: #53657c;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.webshop-collection-filter button.is-active {
  border-color: #176b87;
  background: #ecfeff;
  color: #0f2243;
  box-shadow: 0 0 0 2px rgba(23, 107, 135, 0.12);
}

.webshop-cart-drawer {
  position: fixed;
  right: 24px;
  top: 82px;
  width: min(380px, calc(100vw - 48px));
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 34, 67, 0.18);
  z-index: 50;
  transform: translateX(calc(100% + 40px));
  transition: transform 0.18s ease;
}

@media (min-width: 1120px) {
  .webshop-cart-drawer.is-open {
    right: 18px;
    width: 360px;
  }
}

.webshop-cart-drawer.is-open {
  transform: translateX(0);
}

.webshop-cart-head,
.webshop-cart-line,
.webshop-summary-line,
.webshop-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.webshop-cart-head button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.webshop-cart-line,
.webshop-summary-line {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.webshop-cart-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto 28px;
  align-items: center;
}

.webshop-summary-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
}

.webshop-order-summary .webshop-summary-line {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
}

.webshop-order-summary .webshop-summary-line > b {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  white-space: nowrap;
}

.webshop-order-summary .webshop-summary-line .webshop-cart-quantity {
  grid-column: 2 / 4;
  justify-self: start;
  margin-top: 8px;
}

.webshop-cart-line img,
.webshop-summary-line img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.webshop-cart-line div,
.webshop-summary-line div {
  flex: 1;
  display: grid;
  gap: 2px;
}

.webshop-cart-line span,
.webshop-summary-line span {
  color: var(--muted);
  font-size: 0.76rem;
}

.webshop-cart-quantity {
  display: inline-grid !important;
  grid-template-columns: 30px 42px 30px;
  align-items: center;
  gap: 4px;
}

.webshop-cart-quantity button,
.webshop-cart-quantity input {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 1px solid #d8dce2;
  border-radius: 6px;
  background: #fff;
  color: #1f2933;
  text-align: center;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1;
}

.webshop-cart-quantity input {
  width: 42px;
  padding: 0 2px;
  font-weight: 700;
}

#webshop-view .webshop-cart-quantity input[type="number"] {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 2px !important;
}

.webshop-cart-quantity input::-webkit-outer-spin-button,
.webshop-cart-quantity input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.webshop-cart-quantity button {
  cursor: pointer;
  font-weight: 900;
}

.webshop-cart-quantity button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.webshop-cart-total,
.webshop-summary-total {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 800;
}

.webshop-cart-remove {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #d8dce2;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.webshop-cart-remove:hover {
  border-color: #ef4444;
  color: #b91c1c;
}

.webshop-product-detail,
.webshop-checkout,
.webshop-order-history {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

#webshop-view .webshop-shell.is-product-detail .webshop-head .toolbar,
#webshop-view .webshop-shell.is-product-detail #webshop-status {
  display: none !important;
}

#webshop-view .webshop-shell.is-checkout .webshop-head .toolbar,
#webshop-view .webshop-shell.is-checkout #webshop-status,
#webshop-view .webshop-shell.is-checkout #webshop-inline-cart {
  display: none !important;
}

#webshop-view .webshop-shell.is-checkout .webshop-head,
#webshop-view .webshop-shell.is-checkout #webshop-collection-filter {
  display: none !important;
}

/* Checkout is a focused transaction step. The store footer must not appear
   before the form just because it is shared with the catalog markup. */
#webshop-view .webshop-shell.is-checkout .webshop-store-footer {
  display: none !important;
}

#webshop-view .webshop-shell.is-product-detail .webshop-store-footer,
#webshop-view .webshop-shell.is-order-history .webshop-head,
#webshop-view .webshop-shell.is-order-history #webshop-collection-filter,
#webshop-view .webshop-shell.is-order-history #webshop-status,
#webshop-view .webshop-shell.is-order-history #webshop-inline-cart,
#webshop-view .webshop-shell.is-order-history #webshop-cart-jump,
#webshop-view .webshop-shell.is-order-history #webshop-cart-drawer {
  display: none !important;
}

.shop-customers-admin .panel-head {
  align-items: flex-start;
}

.shop-customers-admin .panel-head p,
.shop-customer-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.shop-customer-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(160px, 220px);
  gap: 12px;
  margin: 16px 0;
}

.shop-customer-filters label,
.shop-customer-form label,
.shop-customer-add-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.shop-customer-filters input,
.shop-customer-filters select,
.shop-customer-form input,
.shop-customer-form select,
.shop-customer-add-form input,
.shop-customer-add-form select,
.shop-customers-table select {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--field-bg);
  color: var(--ink);
}

.shop-customers-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-customers-table th,
.shop-customers-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.shop-customers-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

#shop-customer-detail .shop-customer-resend {
  display: block;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

#shop-customer-detail .shop-customer-resend:hover {
  color: #176b87;
}

#shop-customer-detail .shop-customers-table td:last-child .button {
  margin: 0 6px 6px 0;
  white-space: nowrap;
}

.shop-customer-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-customer-status.is-active {
  background: var(--success-soft);
  color: var(--success);
}

.shop-customer-status.is-suspended {
  background: var(--danger-soft);
  color: var(--danger);
}

.shop-customer-detail {
  margin-top: 18px;
}

.shop-customer-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.shop-customer-detail-head h2 {
  margin: 14px 0 4px;
}

.shop-customer-detail-head p {
  margin: 0;
  color: var(--muted);
}

.shop-customer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.shop-customer-tabs button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
}

.shop-customer-tabs button.is-active {
  border-color: var(--line-strong);
  background: var(--accent-soft);
  color: var(--primary);
}

.shop-customer-tab-panel {
  padding-top: 18px;
}

.shop-customer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.shop-customer-metrics article,
.shop-address-card,
.shop-activity-list article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.shop-customer-metrics span,
.shop-address-card span,
.shop-activity-list span,
.shop-activity-list small {
  color: var(--muted);
}

.shop-customer-form,
.shop-customer-add-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shop-customer-form-actions,
.shop-customer-add-form h3 {
  grid-column: 1 / -1;
}

.shop-customer-add-form {
  margin-top: 18px;
}

.shop-address-sections,
.shop-article-sections,
.shop-activity-list {
  display: grid;
  gap: 18px;
}

.shop-address-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 900px) {
  .shop-customer-metrics,
  .shop-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .shop-customer-filters,
  .shop-customer-form,
  .shop-customer-add-form,
  .shop-customer-metrics,
  .shop-address-grid {
    grid-template-columns: 1fr;
  }
}

#webshop-view .webshop-shell.is-product-detail .webshop-head {
  margin-bottom: 42px;
}

.webshop-detail-grid {
  display: grid;
  grid-template-columns: minmax(420px, 590px) minmax(340px, 430px);
  gap: 64px;
  align-items: start;
  justify-content: center;
  max-width: 1140px;
  margin: 0 auto;
}

.webshop-detail-media {
  display: grid;
  place-items: center;
  background: #f8f8f8;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  min-height: 540px;
}

.webshop-detail-media img {
  width: 82%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: #f8f8f8;
  display: block;
}

.webshop-detail-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto 22px;
  padding: 8px 0;
  background: #fff;
}

.webshop-back-link,
.webshop-detail-close {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #2b2b2b;
  cursor: pointer;
}

.webshop-back-link {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.webshop-detail-close {
  width: 36px;
  height: 36px;
  border-radius: 20px;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
}

.webshop-back-link:hover {
  background: #111;
  color: #fff;
  text-decoration: none;
}

.webshop-detail-close:hover {
  background: #111;
  color: #fff;
}

.webshop-detail-copy {
  display: grid;
  gap: 16px;
  color: #1f1f1f;
  padding-top: 2px;
}

.webshop-detail-copy h2 {
  margin: 0;
  color: #101010;
  font-size: clamp(1.09rem, 1.5vw, 1.54rem);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
}

.webshop-detail-price {
  margin-top: 2px;
  color: #1c1c1c;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.webshop-shipping-note {
  color: #4d4d4d;
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.webshop-quantity-control {
  display: grid;
  gap: 9px;
  width: 128px;
  margin-top: 4px;
}

.webshop-quantity-control span {
  color: #333;
  font-size: 0.9rem;
  font-weight: 400;
}

.webshop-quantity-control input {
  min-height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
}

.webshop-detail-cart,
.webshop-detail-buy {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.webshop-detail-cart {
  margin-top: 6px;
  border: 1px solid #3e8ba4;
  background: #fff;
  color: #111;
}

.webshop-detail-cart:hover {
  background: #3e8ba4;
  color: #fff;
}

.webshop-detail-buy {
  border: 1px solid #3e8ba4;
  background: #3e8ba4;
  color: #fff;
}

.webshop-detail-description {
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
  background: #ffffff;
  color: #181818;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.42;
}

.webshop-detail-meta {
  margin: 0;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.35;
}

@media (min-width: 1500px) {
  .webshop-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

#webshop-product-detail .webshop-product-modal {
  width: min(1240px, calc(100vw - 44px)) !important;
  padding: 28px 34px 40px !important;
  border-radius: 0 !important;
  box-shadow: 0 18px 54px rgba(15, 34, 67, 0.18) !important;
}

#webshop-product-detail .webshop-detail-grid {
  grid-template-columns: minmax(420px, 560px) minmax(360px, 430px) !important;
  gap: 52px !important;
  align-items: start !important;
  justify-content: center !important;
}

#webshop-product-detail .webshop-detail-media {
  display: grid !important;
  grid-template-rows: auto auto !important;
  gap: 16px !important;
  place-items: center !important;
  width: 100% !important;
  max-width: 560px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#webshop-product-detail .webshop-detail-main-image {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  max-width: 520px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 auto !important;
  border-radius: 8px !important;
  background: #f7f7f7 !important;
  overflow: hidden !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  display: block !important;
  width: 82% !important;
  height: 82% !important;
  margin: auto !important;
  object-fit: contain !important;
}

#webshop-product-detail .webshop-detail-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

#webshop-product-detail .webshop-detail-thumbs button {
  width: 74px !important;
  height: 74px !important;
  padding: 4px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 10px !important;
  background: #f7f7f7 !important;
}

#webshop-product-detail .webshop-detail-copy {
  display: grid !important;
  gap: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#webshop-product-detail .webshop-detail-copy h2 {
  max-width: 430px !important;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem) !important;
  line-height: 1.18 !important;
  font-weight: 800 !important;
}

#webshop-product-detail .webshop-detail-price {
  margin: 0 !important;
  font-size: 1rem !important;
  letter-spacing: 0.02em !important;
  font-weight: 700 !important;
}

#webshop-product-detail .webshop-shipping-note {
  color: #4d4d4d !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
}

#webshop-product-detail .webshop-detail-cart,
#webshop-product-detail .webshop-detail-buy {
  width: 100% !important;
  max-width: 390px !important;
  min-height: 42px !important;
  justify-self: stretch !important;
}

#webshop-product-detail .webshop-detail-description {
  max-width: 430px !important;
  margin-top: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #242424 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

#webshop-product-detail .webshop-detail-description > *:first-child {
  margin-top: 0 !important;
}

@media (max-width: 860px) {
  #webshop-product-detail .webshop-product-modal {
    width: min(100vw - 24px, 620px) !important;
    padding: 18px !important;
  }

  #webshop-product-detail .webshop-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  #webshop-product-detail .webshop-detail-main-image,
  #webshop-product-detail .webshop-detail-thumbs,
  #webshop-product-detail .webshop-detail-copy h2,
  #webshop-product-detail .webshop-detail-description,
  #webshop-product-detail .webshop-detail-cart,
  #webshop-product-detail .webshop-detail-buy {
    max-width: none !important;
  }
}

@media (max-width: 1200px) {
  .webshop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .webshop-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 32px;
  }
}

@media (max-width: 820px) {
  .webshop-shell {
    padding: 18px 14px 28px;
  }

  .webshop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .webshop-detail-grid {
    grid-template-columns: 1fr;
  }

  .webshop-detail-copy h2 {
    font-size: 2rem;
  }
}

.webshop-checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.webshop-checkout-steps span {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  color: #6b7280;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 34, 67, 0.04);
}

.webshop-checkout-steps .is-active {
  border-color: rgba(62, 139, 164, 0.55);
  color: #101010;
}

.webshop-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.webshop-checkout-main {
  display: grid;
  gap: 14px;
}

.webshop-checkout-card,
.webshop-order-summary {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 34, 67, 0.05);
}

.webshop-checkout-card h3,
.webshop-order-summary h3 {
  margin: 0 0 14px;
  color: #111;
  font-size: 1rem;
  line-height: 1.25;
}

.webshop-checkout-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}

.webshop-checkout-card-head h3 {
  margin-bottom: 4px;
}

.webshop-checkout-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.webshop-checkout-card-head > span {
  flex: 0 0 auto;
  max-width: 220px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.webshop-order-summary {
  position: sticky;
  top: 18px;
  padding: 14px;
}

.webshop-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
  align-items: start;
}

.webshop-form-grid label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #1f2a3a;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.2;
}

.webshop-form-grid label span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.webshop-form-grid label span em {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #b42318;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
}

.webshop-form-band {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #edf0f4;
}

.webshop-form-band:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.webshop-form-band span {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
}

.webshop-form-grid input,
.webshop-form-grid select,
.webshop-checkout-card textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8dce2 !important;
  border-radius: 8px;
  background: #fff;
  color: #111;
  box-shadow: none !important;
}

.webshop-form-grid input.webshop-field-invalid,
.webshop-form-grid select.webshop-field-invalid,
.webshop-checkout-card textarea.webshop-field-invalid {
  border-color: #dc2626 !important;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14) !important;
}

.webshop-form-grid label:has(.webshop-field-invalid) span {
  color: #b91c1c;
}

.webshop-checkout-error-summary {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #991b1b;
}

.webshop-checkout-error-summary strong {
  font-size: 0.82rem;
}

.webshop-checkout-error-summary ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
}

.webshop-checkout-error-summary li {
  font-size: 0.78rem;
  line-height: 1.3;
}

.webshop-form-grid .webshop-address-start {
  margin-top: 10px;
}

.webshop-checkout-card textarea {
  max-width: 420px;
  min-height: 92px;
  padding: 10px 12px;
}

.webshop-form-grid .full-width {
  grid-column: 1 / -1;
}

.webshop-billing-box {
  border: 1px solid rgba(62, 139, 164, 0.24);
  border-radius: 8px;
  background: rgba(62, 139, 164, 0.06);
  padding: 12px;
  color: #374151;
  line-height: 1.45;
}

.webshop-billing-compact p { display: block; }

.webshop-review-content {
  display: grid;
  gap: 12px;
  color: #374151;
  font-size: 0.9rem;
}

.webshop-review-content > div:not(.webshop-review-hero),
.webshop-review-grid > div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}

.webshop-review-content > div:last-child,
.webshop-review-grid > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.webshop-review-content strong {
  color: #111;
}

.webshop-review-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
}

.webshop-review-hero span {
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
}

.webshop-review-hero strong {
  color: #0f172a;
  font-size: 1.15rem;
}

.webshop-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.webshop-review-products {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f4;
}

.webshop-review-section-title,
.webshop-review-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.webshop-review-section-title {
  color: #111;
  font-weight: 700;
}

.webshop-review-product {
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  padding: 8px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #fff;
}

.webshop-review-product img,
.webshop-review-product-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #f5f6f8;
  object-fit: contain;
}

.webshop-review-product div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.webshop-review-product span {
  color: #5f6b7a;
  font-size: 0.82rem;
}

.webshop-review-product b {
  color: #111;
  white-space: nowrap;
}

.webshop-order-summary .button {
  min-height: 34px;
  width: auto;
  margin-top: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.webshop-order-summary .button + .button {
  margin-left: 6px;
}

.webshop-order-summary h3 {
  margin-bottom: 10px;
}

.webshop-order-summary .webshop-summary-line,
.webshop-order-summary .webshop-summary-total {
  padding: 8px 0;
  font-size: 0.84rem;
}

.webshop-order-summary .webshop-summary-line img {
  width: 34px;
  height: 34px;
}

.webshop-card-buy button,
.webshop-detail-cart,
.webshop-detail-buy {
  width: auto;
  min-width: 118px;
  max-width: max-content;
  padding-inline: 18px;
}

#webshop-review-order[hidden],
#webshop-submit-order[hidden] {
  display: none !important;
}

.webshop-order-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.webshop-order-history h3 {
  margin: 0;
}

#webshop-order-history-list {
  display: block;
}

.webshop-history-table-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  overflow: auto;
}

.webshop-history-table {
  min-width: 900px;
}

.webshop-history-table tbody td {
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: top;
}

.webshop-history-row.is-current td {
  background: #ecfeff !important;
  box-shadow: inset 3px 0 0 #176b87;
}

@media (max-width: 900px) {
  .webshop-inline-cart {
    display: grid;
  }

  .webshop-checkout-layout {
    grid-template-columns: 1fr;
  }

  .webshop-checkout-steps {
    grid-template-columns: 1fr;
  }

  .webshop-form-grid {
    grid-template-columns: 1fr;
  }

  .webshop-order-summary {
    position: static;
  }
}

/* TSGG project graphics matching New layout shipping.png */
#tsgg-view .shipment-status-pill {
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 8px 18px rgba(15, 34, 67, 0.05);
}

#tsgg-view .shipment-status-pill[data-tsgg-status="all"] strong { background: #edf4ff; color: #1d4ed8; }
#tsgg-view .shipment-status-pill[data-tsgg-status="missing"] strong { background: #fff1f2; color: #e11d48; }
#tsgg-view .shipment-status-pill[data-tsgg-status="created"] strong { background: #fff7ed; color: #d97706; }
#tsgg-view .shipment-status-pill[data-tsgg-status="transit"] strong { background: #eff6ff; color: #2563eb; }
#tsgg-view .shipment-status-pill[data-tsgg-status="delivered"] strong { background: #ecfdf5; color: #059669; }
#tsgg-view .shipment-status-pill[data-tsgg-status="problems"] strong { background: #f5f3ff; color: #7c3aed; }

#tsgg-view #tsgg-search-input,
#tsgg-view #tsgg-sender-search {
  padding-right: 42px;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, #53677f 45% 58%, transparent 61%) right 17px center / 16px 16px no-repeat,
    linear-gradient(45deg, transparent 0 55%, #53677f 56% 66%, transparent 67%) right 12px bottom 12px / 13px 13px no-repeat,
    #fff;
}

#tsgg-view .shipment-dashboard-table tbody tr.is-expanded td,
#tsgg-view .shipment-dashboard-table tbody tr:hover td {
  background: #f3f8ff;
}

#tsgg-view .shipment-dashboard-table tbody tr.is-expanded td:first-child {
  box-shadow: inset 3px 0 0 #2d81ff;
}

#tsgg-view .tsgg-action-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

#tsgg-view .tsgg-dashboard-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

#tsgg-view .tsgg-dashboard-action strong {
  display: block;
  line-height: 1.1;
}

#tsgg-view .tsgg-dashboard-action.is-pdf .tsgg-action-icon,
#tsgg-view .tsgg-dashboard-action.is-track .tsgg-action-icon,
#tsgg-view .tsgg-dashboard-action.is-archive .tsgg-action-icon {
  width: 24px !important;
  height: 24px !important;
  transform: none !important;
}

#tsgg-view .shipment-filter-panel {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  align-items: end !important;
  overflow: visible !important;
}

#tsgg-view .shipment-date-field {
  grid-column: span 2;
  min-width: 0;
  max-width: 100%;
}

#tsgg-view .shipment-date-field input {
  min-width: 0;
}

#tsgg-view .shipment-clear-filter-button {
  justify-self: end;
  width: auto;
  min-width: 132px;
}

#tsgg-view .tsgg-documents-cell {
  text-align: right;
}

#tsgg-view .tsgg-documents-row {
  margin-left: auto;
  justify-content: flex-end !important;
}

#tsgg-view .tsgg-detail-grid h3::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid #2563eb;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 3px #f8fbff,
    inset 6px 0 0 rgba(37, 99, 235, 0.18);
}

#tsgg-view .tsgg-detail-panel {
  border-color: #b9d3fb;
  background: #f8fbff;
}

#tsgg-view .tsgg-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

#tsgg-view .tsgg-detail-head {
  min-height: 44px;
  background: #f3f8ff;
  border-bottom-color: #cfe0fa;
}

#tsgg-view .tsgg-detail-grid section {
  min-height: 108px;
  padding: 12px 18px;
  background: #f8fbff;
  text-align: left;
}

#tsgg-view .tsgg-detail-grid h3 {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 9px;
  font-size: 0.82rem;
}

#tsgg-view .tsgg-detail-grid p {
  font-size: 0.8rem;
  text-align: left;
}

#tsgg-view .tsgg-detail-grid p strong {
  display: inline-block;
  margin-top: 2px;
}

#tsgg-view .tsgg-detail-link {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#tsgg-view .tsgg-dashboard-action {
  border-radius: 8px;
  background: #fff;
}

#tsgg-view .tsgg-dashboard-action strong {
  display: block;
  max-width: 100%;
  font-size: 0.64rem;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

#tsgg-view .tsgg-dashboard-table tbody td {
  border-bottom-color: rgba(15, 34, 67, 0.18);
}

#tsgg-view .tsgg-dashboard-table .blikk-project-link {
  color: #2563eb;
}

#tsgg-view .tsgg-dashboard-table .subline {
  color: #425571;
}

#tsgg-view .tsgg-shipping-chip {
  font-weight: 700;
}

#tsgg-view .tsgg-detail-close {
  font-size: 1.55rem;
  line-height: 1;
}

#tsgg-view td[data-label="Shipping address"] {
  font-weight: 600;
}

#tsgg-view td[data-label="Shipping address"] .subline,
#tsgg-view td[data-label="Carrier / Status"] .subline {
  font-size: 0.72rem;
  word-break: break-word;
}

#tsgg-view .tsgg-carrier-status {
  display: grid;
  grid-template-columns: 44px max-content;
  align-items: center;
  column-gap: 8px;
  min-width: 0;
}

#tsgg-view .tsgg-carrier-status strong {
  display: block;
  width: 44px;
  color: #0f2243;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

#tsgg-view .tsgg-carrier-status .tsgg-shipping-chip {
  justify-self: start;
}

#tsgg-view.view-section.is-active {
  gap: 0;
}

#tsgg-view .shipping-dashboard {
  box-shadow: 0 10px 28px rgba(15, 34, 67, 0.08);
}

#tsgg-view .shipping-dashboard-head {
  min-height: 72px;
  padding: 14px 20px;
}

#tsgg-view .shipment-status-pills {
  gap: 12px;
}

#tsgg-view .shipment-status-pill {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
}

#tsgg-view .shipment-status-pill strong {
  height: 26px;
  min-width: 28px;
}

#tsgg-view .shipment-filter-panel {
  grid-template-columns: minmax(230px, 1.55fr) minmax(220px, 1.45fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(160px, 1fr) minmax(250px, 1.5fr) 132px;
  padding: 14px 18px 12px;
  background: #ffffff;
}

#tsgg-view .shipment-filter-panel input,
#tsgg-view .shipment-filter-panel select {
  min-height: 44px;
  border-width: 1px;
  border-color: rgba(15, 34, 67, 0.16);
  box-shadow: none;
}

#tsgg-view .shipment-dashboard-table thead th {
  padding: 10px 12px;
  font-size: 0.86rem;
  text-transform: none;
}

#tsgg-view .shipment-dashboard-table tbody td {
  padding: 10px 12px;
  font-size: 0.86rem;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Expand"],
#tsgg-view .tsgg-dashboard-table td[data-label="Expand"] * {
  list-style: none;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Expand"] {
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  padding: 0 4px !important;
  text-align: center;
  overflow: hidden;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Expand"]::marker,
#tsgg-view .tsgg-dashboard-table td[data-label="Expand"] *::marker {
  content: "" !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Expand"]::before,
#tsgg-view .tsgg-dashboard-table td[data-label="Expand"]::after,
#tsgg-view .tsgg-expand-button::before,
#tsgg-view .tsgg-expand-button::after {
  content: none !important;
}

#tsgg-view .tsgg-expand-button {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-decoration: none;
  list-style: none;
  overflow: hidden;
}

#tsgg-view .tsgg-project-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#tsgg-view .tsgg-project-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

#tsgg-view .tsgg-project-line .blikk-project-link,
#tsgg-view .tsgg-project-line > strong {
  font-size: 0.98rem;
  line-height: 1.15;
  font-weight: 800;
  flex: 0 0 auto;
}

#tsgg-view .tsgg-project-ref {
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

#tsgg-view .tsgg-paid-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}

#tsgg-view .tsgg-project-missing {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 999px;
  background: rgba(254, 226, 226, 0.8);
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#tsgg-view .tsgg-project-name {
  color: #0f2243;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

#tsgg-view .tsgg-customer-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

#tsgg-view .tsgg-shipping-address-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #0f2243;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.32;
}

#tsgg-view .tsgg-shipping-address-cell > span:last-child {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

#tsgg-view .tsgg-country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 34, 67, 0.16);
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 34, 67, 0.06);
}

#tsgg-view .tsgg-country-flag img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

#tsgg-view .tsgg-country-code {
  display: inline;
  color: #2563eb;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

#tsgg-view .tsgg-country-flag.is-code-only {
  width: auto;
  min-width: 28px;
  padding: 0 5px;
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

#tsgg-view .shipment-col-expand { width: 46px; }
#tsgg-view .shipment-col-project { width: 14%; }
#tsgg-view .shipment-col-reference { width: 17%; }
#tsgg-view .shipment-col-customer { width: 14%; }
#tsgg-view .shipment-col-content { width: 11%; }
#tsgg-view .shipment-col-status { width: 15%; }
#tsgg-view .shipment-col-weight { width: 8%; }
#tsgg-view .shipment-col-date { width: 11%; }
#tsgg-view .shipment-col-actions { width: 16%; }

#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] {
  display: table-cell;
  max-height: none;
  overflow: visible;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] > .tsgg-content-main {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.28;
}

#tsgg-view .tsgg-dashboard-action {
  width: 62px;
  min-height: 54px;
  border-color: rgba(15, 34, 67, 0.12);
  box-shadow: 0 4px 12px rgba(15, 34, 67, 0.04);
  padding: 5px 4px;
  overflow: hidden;
}

#tsgg-view .tsgg-documents-row {
  gap: 5px;
  justify-content: flex-start;
}

#tsgg-view .tsgg-shipping-chip.open {
  color: #a16207;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
}

#tsgg-view .tsgg-shipping-chip.transit {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
}

#tsgg-view .tsgg-shipping-chip.delivered {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

#tsgg-view .tsgg-shipping-chip.unknown {
  color: #dc2626;
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(248, 113, 113, 0.12);
}

/* Effektgruppen dark UI system */
:root {
  --bg: #000000;
  --bg-soft: #0B0B0B;
  --paper: #111111;
  --paper-strong: #151515;
  --ink: #FFFFFF;
  --text: #FFFFFF;
  --muted: #BFC4C7;
  --muted-strong: #7A7F82;
  --line: #2A2A2A;
  --line-strong: #3A3A3A;
  --primary: #00AFC4;
  --accent: #00AFC4;
  --accent-soft: rgba(0, 175, 196, 0.12);
  --accent-strong: #0088A3;
  --success: #6FD3D8;
  --success-soft: rgba(111, 211, 216, 0.12);
  --warning: #6FD3D8;
  --warning-soft: rgba(111, 211, 216, 0.10);
  --danger: #FF6B6B;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --info: #00AFC4;
  --info-soft: rgba(0, 175, 196, 0.10);
  --surface-tint: #111111;
  --surface-hover: rgba(0, 175, 196, 0.10);
  --field-bg: #0B0B0B;
  --field-border: #2A2A2A;
  --field-border-hover: #3A3A3A;
  --field-shadow: none;
  --field-focus-shadow: 0 0 0 3px rgba(0, 175, 196, 0.18);
  --brand-gradient: linear-gradient(135deg, #00AFC4, #0088A3);
  --panel-gradient: #FFFFFF;
  --section-bg: #F5F8F9;
  --section-bg-strong: #111111;
  --table-head: #111111;
  --table-row-alt: #F5F8F9;
  --table-row-hover: rgba(0, 175, 196, 0.08);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --focus: #00AFC4;
  --radius: 8px;
}

html,
body {
  background: #FFFFFF;
  color: #1F2933;
}

a,
.blikk-project-link,
.tsgg-detail-link {
  color: #00AFC4;
}

a:hover,
.blikk-project-link:hover,
.tsgg-detail-link:hover {
  color: #6FD3D8;
}

.top-nav,
.panel,
.card,
.settings-card,
.flow-card,
.modal,
.popover,
.webshop-shell,
.webshop-checkout-card,
.webshop-order-summary,
.webshop-cart-drawer,
.shipment-status-pill,
.tsgg-detail-panel,
.tsgg-status-popover,
.webshop-history-card {
  border-color: #2A2A2A !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32) !important;
}

.layout,
.view-section,
.table-wrap,
.shipment-filter-panel,
.webshop-products-grid,
.tsgg-archive-section {
  background: transparent !important;
}

.panel-head,
.section-subtitle,
.settings-note,
.table-status,
.flow-search-status,
.subline,
.compact-line,
.empty-state,
.empty-row,
.webshop-product-price,
.webshop-shipping-note,
.webshop-detail-meta,
.webshop-review-content,
.webshop-review-content span,
.webshop-history-card span,
.webshop-history-card p,
.brand-copy span {
  color: #BFC4C7 !important;
}

h1,
h2,
h3,
h4,
.panel-head h2,
.webshop-product-title,
.webshop-detail-copy h2,
.customer-name,
.tsgg-content-main,
.tsgg-project-line,
.tsgg-project-name,
.webshop-review-content strong,
strong {
  color: #FFFFFF;
}

.nav-link {
  border-radius: 8px;
  color: #BFC4C7;
}

.nav-link:hover {
  background: rgba(0, 175, 196, 0.10);
  color: #FFFFFF;
}

.nav-link.is-active {
  background: #00AFC4;
  color: #000000;
  box-shadow: inset 3px 0 0 #6FD3D8, 0 8px 20px rgba(0, 175, 196, 0.18);
}

.admin-auth-link.is-authenticated {
  background: rgba(0, 175, 196, 0.10);
  border-color: #2A2A2A;
  color: #6FD3D8;
}

input,
select,
textarea,
.shipment-filter-panel input,
.shipment-filter-panel select,
.webshop-form-grid input,
.webshop-checkout-card textarea {
  border: 1px solid #2A2A2A !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #1F2933 !important;
  box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: #7A7F82 !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid #00AFC4;
  outline-offset: 2px;
  border-color: #00AFC4 !important;
  box-shadow: 0 0 0 3px rgba(0, 175, 196, 0.18) !important;
}

.button,
.mini-button,
.icon-button,
.tsgg-dashboard-action,
.tsgg-action-button,
.webshop-card-buy button,
.webshop-detail-cart,
.webshop-detail-buy,
.webshop-cart-button,
.webshop-inline-cart .button,
.shipment-status-pill,
.tsgg-sort-header {
  min-height: 38px;
  border: 1px solid #2A2A2A !important;
  border-radius: 8px !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover,
.mini-button:hover,
.icon-button:hover,
.tsgg-dashboard-action:hover,
.tsgg-action-button:hover,
.webshop-card-buy button:hover,
.webshop-detail-cart:hover,
.webshop-cart-button:hover,
.shipment-status-pill:hover,
.tsgg-sort-header:hover {
  border-color: #00AFC4 !important;
  background: rgba(0, 175, 196, 0.10) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.button.primary,
.button.accent,
.webshop-detail-buy,
#webshop-submit-order,
#webshop-review-order,
#webshop-open-checkout,
#webshop-continue-delivery {
  border-color: #00AFC4 !important;
  background: #00AFC4 !important;
  color: #000000 !important;
  font-weight: 800;
}

.button.primary:hover,
.button.accent:hover,
.webshop-detail-buy:hover,
#webshop-submit-order:hover,
#webshop-review-order:hover,
#webshop-open-checkout:hover,
#webshop-continue-delivery:hover {
  border-color: #6FD3D8 !important;
  background: #6FD3D8 !important;
  color: #000000 !important;
}

.button.secondary,
.button.ghost {
  background: #111111 !important;
  color: #FFFFFF !important;
}

.button.danger,
.mini-button.danger {
  border-color: rgba(255, 107, 107, 0.45) !important;
  background: rgba(255, 107, 107, 0.12) !important;
  color: #FFFFFF !important;
}

button:disabled,
.button:disabled,
.mini-button:disabled,
.tsgg-dashboard-action:disabled {
  border-color: #2A2A2A !important;
  background: #F5F8F9 !important;
  color: #7A7F82 !important;
  cursor: not-allowed;
  transform: none !important;
}

table,
.shipment-dashboard-table,
.tsgg-dashboard-table {
  color: #FFFFFF;
  border-color: #2A2A2A;
}

thead th,
.shipment-dashboard-table thead th {
  background: #111111 !important;
  color: #BFC4C7 !important;
  border-bottom: 1px solid #2A2A2A !important;
}

tbody td,
.shipment-dashboard-table tbody td {
  background: #F5F8F9 !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #2A2A2A !important;
}

tbody tr:hover td,
.shipment-dashboard-table tbody tr:hover td,
.shipment-dashboard-table tbody tr:first-child td {
  background: rgba(0, 175, 196, 0.08) !important;
}

.shipment-dashboard-table tbody tr.is-expanded td,
.tsgg-expanded-detail-row > td {
  background: rgba(0, 175, 196, 0.10) !important;
  border-color: #3A3A3A !important;
}

.badge,
.status-pill,
.tsgg-shipping-chip,
.shipment-status-pill strong,
.tsgg-status-map-label {
  border: 1px solid #3A3A3A !important;
  background: #FFFFFF !important;
  color: #BFC4C7 !important;
}

.badge.open,
.badge.created,
.tsgg-shipping-chip.open,
.tsgg-shipping-chip.transit,
.tsgg-shipping-chip.delivered,
.badge.delivered,
.status-pill.success,
.status-pill.ready {
  border-color: rgba(0, 175, 196, 0.42) !important;
  background: rgba(0, 175, 196, 0.12) !important;
  color: #6FD3D8 !important;
}

.badge.warning,
.badge.problem,
.badge.error,
.status-pill.warning,
.status-pill.error,
.tsgg-shipping-chip.problem,
.tsgg-shipping-chip.unknown {
  border-color: rgba(255, 107, 107, 0.42) !important;
  background: rgba(255, 107, 107, 0.12) !important;
  color: #FFFFFF !important;
}

.system-health-banner,
.settings-warning,
.data-warning,
.tsgg-project-missing {
  border-color: rgba(255, 107, 107, 0.42) !important;
  background: rgba(255, 107, 107, 0.10) !important;
  color: #FFFFFF !important;
}

.webshop-image-wrap,
.webshop-product-image,
.webshop-detail-media,
.webshop-detail-media img,
.webshop-admin-editor-media {
  background: #FFFFFF !important;
  border-color: #2A2A2A !important;
}

.webshop-inline-cart,
.webshop-billing-box,
.webshop-checkout-steps span,
.webshop-review-content > div,
.tsgg-detail-grid section,
.nav-brand {
  border-color: #2A2A2A !important;
  background: #111111 !important;
}

.webshop-checkout-steps .is-active,
.shipment-status-pill.is-active {
  border-color: #00AFC4 !important;
  background: rgba(0, 175, 196, 0.12) !important;
  color: #FFFFFF !important;
}

.tsgg-dashboard-action.is-pdf,
.tsgg-dashboard-action.is-track,
.tsgg-dashboard-action.is-archive {
  color: #00AFC4 !important;
}

.toast {
  border: 1px solid #2A2A2A;
  background: #111111 !important;
  color: #FFFFFF !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.toast.success,
.toast.warning {
  background: #111111 !important;
}

.toast.error {
  border-color: rgba(255, 107, 107, 0.42);
}

#tsgg-view .blikk-project-link,
#tsgg-view .tsgg-project-ref {
  color: #6FD3D8 !important;
}

#tsgg-view .tsgg-project-name,
#tsgg-view .tsgg-shipping-address-cell,
#tsgg-view .tsgg-shipping-address-cell span,
#tsgg-view .subline,
#tsgg-view .compact-line {
  color: #BFC4C7 !important;
}

#tsgg-view .shipment-col-project { width: 13%; }
#tsgg-view .shipment-col-reference { width: 16%; }
#tsgg-view .shipment-col-customer { width: 12%; }
#tsgg-view .shipment-col-content { width: 10%; }
#tsgg-view .shipment-col-status { width: 12%; }
#tsgg-view .shipment-col-weight { width: 7%; }
#tsgg-view .shipment-col-date { width: 12%; }
#tsgg-view .shipment-col-actions { width: 18%; }

#tsgg-view .tsgg-documents-row {
  gap: 6px;
}

#tsgg-view .tsgg-dashboard-action {
  width: 70px;
  min-height: 56px;
}

#tsgg-view .tsgg-dashboard-action strong {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 0.62rem;
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Effektgruppen normalized interface system */
:root {
  --bg: #000000;
  --bg-soft: #0B0B0B;
  --paper: #111111;
  --paper-strong: #111111;
  --ink: #FFFFFF;
  --text: #FFFFFF;
  --muted: #BFC4C7;
  --muted-strong: #7A7F82;
  --line: #2A2A2A;
  --line-strong: #3A3A3A;
  --primary: #00AFC4;
  --accent: #00AFC4;
  --accent-strong: #0088A3;
  --accent-soft: rgba(0, 175, 196, 0.12);
  --success: #6FD3D8;
  --success-soft: rgba(111, 211, 216, 0.12);
  --warning: #BFC4C7;
  --warning-soft: rgba(191, 196, 199, 0.10);
  --danger: #FFFFFF;
  --danger-soft: rgba(255, 255, 255, 0.08);
  --info: #00AFC4;
  --info-soft: rgba(0, 175, 196, 0.10);
  --surface-tint: #111111;
  --surface-hover: rgba(0, 175, 196, 0.10);
  --field-bg: #0B0B0B;
  --field-border: #2A2A2A;
  --field-border-hover: #3A3A3A;
  --field-shadow: none;
  --field-focus-shadow: 0 0 0 3px rgba(0, 175, 196, 0.20);
  --brand-gradient: linear-gradient(135deg, #00AFC4, #0088A3);
  --panel-gradient: #111111;
  --section-bg: #0B0B0B;
  --section-bg-strong: #111111;
  --table-head: #111111;
  --table-row-alt: #0B0B0B;
  --table-row-hover: rgba(0, 175, 196, 0.08);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.40);
  --focus: #00AFC4;
  --radius: 8px;
  --control-height: 38px;
}

html,
body {
  background: #FFFFFF !important;
  color: #FFFFFF !important;
  letter-spacing: 0;
}

a,
.blikk-project-link,
.tsgg-detail-link,
.flow-match-link {
  color: #00AFC4 !important;
  text-decoration-color: rgba(0, 175, 196, 0.55);
}

a:hover,
.blikk-project-link:hover,
.tsgg-detail-link:hover,
.flow-match-link:hover {
  color: #6FD3D8 !important;
  text-decoration-color: #6FD3D8;
}

.page-shell {
  gap: 14px;
}

/* The catalog uses horizontal navigation. Customer account navigation is
   scoped to the account view; the administration rail is separate. */
.page-shell {
  grid-template-columns: minmax(0, 1fr);
}

.top-nav {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 10px;
  z-index: 40;
}

.shop-brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 4px 10px 4px 4px;
}

.shop-brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 150px;
  object-fit: contain;
}

.admin-only,
.customer-auth-only {
  display: none !important;
}

.shop-customer-authenticated .customer-auth-only {
  display: inline-flex !important;
}

.shop-customer-authenticated .customer-anon-only {
  display: none !important;
}

.shop-admin-mode .customer-nav-link,
.shop-admin-mode .customer-anon-only,
.shop-admin-mode .customer-auth-only,
.shop-admin-mode .shop-brand {
  display: none !important;
}

.shop-admin-mode .admin-only {
  display: inline-flex !important;
}

.shop-admin-mode .admin-nav-links {
  display: contents !important;
}

.shop-admin-mode .page-shell {
  grid-template-columns: 204px minmax(0, 1fr);
}

.shop-admin-mode .top-nav {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  top: 16px;
}

.top-nav,
.panel,
.settings-intro,
.settings-links,
.settings .integration-card,
.health-status-card,
.overview-card,
.flow-diagnostics,
.sync-countdown,
.uninvoiced-group,
.report-empty,
.pod-dialog-card,
.pod-dialog-panel,
.webshop-shell,
.webshop-checkout-card,
.webshop-order-summary,
.webshop-cart-drawer,
.webshop-inline-cart,
.webshop-billing-box,
.webshop-review-content > div,
.webshop-history-card,
.webshop-admin-editor,
.webshop-admin-list,
.freight-booking-detail,
.freight-booking-results,
.tsgg-detail-panel,
.tsgg-status-popover,
.tsgg-archive-section,
.toast {
  border: 1px solid #2A2A2A !important;
  border-radius: 8px !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.panel,
.pod-dialog-card {
  padding: 16px !important;
}

.nav-brand,
.panel-head,
.shipping-dashboard-head,
.webshop-head,
.pod-dialog-head,
.uninvoiced-group-head,
.tsgg-detail-head {
  border-color: #2A2A2A !important;
  background: #111111 !important;
}

.nav-link,
.settings-menu-link {
  min-height: 36px;
  padding: 9px 10px;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #BFC4C7 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-link:hover,
.settings-menu-link:hover {
  border-color: #3A3A3A !important;
  background: rgba(0, 175, 196, 0.10) !important;
  color: #FFFFFF !important;
}

.nav-link.is-active,
.settings-menu-link.is-active {
  border-color: #00AFC4 !important;
  background: #00AFC4 !important;
  color: #000000 !important;
  box-shadow: none !important;
}

h1,
h2,
h3,
h4,
strong,
.panel h2,
.webshop-product-title,
.webshop-detail-copy h2,
.customer-name,
.tsgg-content-main,
.tsgg-project-name {
  color: #FFFFFF !important;
}

p,
small,
label span,
.section-subtitle,
.settings-note,
.table-status,
.flow-search-status,
.subline,
.compact-line,
.empty-state,
.empty-row,
.webshop-product-price,
.webshop-shipping-note,
.webshop-detail-meta,
.webshop-review-content span,
.webshop-history-card span,
.webshop-history-card p,
.brand-copy span,
.muted {
  color: #BFC4C7 !important;
}

.eyebrow,
.overview-label,
.detail-section-label,
th {
  color: #7A7F82 !important;
}

input,
select,
textarea,
.shipment-note-input,
.flow-match-input {
  min-height: var(--control-height);
  border: 1px solid #2A2A2A !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #1F2933 !important;
  box-shadow: none !important;
}

input:hover,
select:hover,
textarea:hover,
.shipment-note-input:hover,
.flow-match-input:hover {
  border-color: #3A3A3A !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #00AFC4 !important;
  outline-offset: 2px;
  border-color: #00AFC4 !important;
  box-shadow: 0 0 0 3px rgba(0, 175, 196, 0.20) !important;
}

input::placeholder,
textarea::placeholder {
  color: #7A7F82 !important;
}

.button,
.mini-button,
.icon-button,
.tsgg-dashboard-action,
.tsgg-action-button,
.webshop-card-buy button,
.webshop-detail-cart,
.webshop-detail-buy,
.webshop-cart-button,
.webshop-inline-cart .button,
.shipment-status-pill,
.tsgg-sort-header,
button[value="cancel"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid #2A2A2A !important;
  border-radius: 8px !important;
  background: #111111 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button:hover,
.mini-button:hover,
.icon-button:hover,
.tsgg-dashboard-action:hover,
.tsgg-action-button:hover,
.webshop-card-buy button:hover,
.webshop-detail-cart:hover,
.webshop-cart-button:hover,
.shipment-status-pill:hover,
.tsgg-sort-header:hover,
button[value="cancel"]:hover {
  border-color: #00AFC4 !important;
  background: rgba(0, 175, 196, 0.10) !important;
  color: #FFFFFF !important;
  transform: none !important;
}

.button.primary,
.button.accent,
.webshop-detail-buy,
#webshop-submit-order,
#webshop-review-order,
#webshop-open-checkout,
#webshop-continue-delivery {
  border-color: #00AFC4 !important;
  background: #00AFC4 !important;
  color: #000000 !important;
}

.button.primary:hover,
.button.accent:hover,
.webshop-detail-buy:hover,
#webshop-submit-order:hover,
#webshop-review-order:hover,
#webshop-open-checkout:hover,
#webshop-continue-delivery:hover {
  border-color: #6FD3D8 !important;
  background: #6FD3D8 !important;
  color: #000000 !important;
}

.button.secondary,
.button.ghost,
.mini-button.secondary {
  border-color: #2A2A2A !important;
  background: #111111 !important;
  color: #FFFFFF !important;
}

.button.warning,
.mini-button.warning,
.button.danger,
.mini-button.danger,
button[value="cancel"] {
  border-color: #3A3A3A !important;
  background: #FFF1F1 !important;
  color: #C53030 !important;
}

button:disabled,
.button:disabled,
.mini-button:disabled,
.icon-button:disabled,
.tsgg-dashboard-action:disabled {
  border-color: #2A2A2A !important;
  background: #F5F8F9 !important;
  color: #7A7F82 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

button:focus-visible,
.button:focus-visible,
.mini-button:focus-visible,
.icon-button:focus-visible,
.tsgg-dashboard-action:focus-visible {
  outline: 2px solid #00AFC4 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 175, 196, 0.20) !important;
}

.toolbar,
.settings-actions,
.shipment-note-actions,
.landing-actions,
.flow-toolbar,
.uninvoiced-group-actions {
  gap: 8px !important;
}

.table-wrap,
.report-table-wrap {
  border: 1px solid #2A2A2A !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  overflow: auto;
}

table,
.shipment-dashboard-table,
.tsgg-dashboard-table,
.report-table {
  border-collapse: separate;
  border-spacing: 0;
  color: #FFFFFF !important;
}

thead th,
.shipment-dashboard-table thead th,
.tsgg-dashboard-table thead th,
.report-table th {
  border-bottom: 1px solid #2A2A2A !important;
  background: #111111 !important;
  color: #BFC4C7 !important;
  font-weight: 800;
}

tbody td,
.shipment-dashboard-table tbody td,
.tsgg-dashboard-table tbody td,
.report-table td {
  border-bottom: 1px solid #2A2A2A !important;
  background: #FFFFFF !important;
  color: #FFFFFF !important;
}

tbody tr:hover td,
.shipment-dashboard-table tbody tr:hover td,
.tsgg-dashboard-table tbody tr:hover td {
  background: rgba(0, 175, 196, 0.08) !important;
}

.shipment-dashboard-table tbody tr.is-expanded td,
.tsgg-expanded-detail-row > td {
  border-color: #3A3A3A !important;
  background: rgba(0, 175, 196, 0.10) !important;
}

.badge,
.status-pill,
.compact-badge,
.tsgg-shipping-chip,
.shipment-status-pill strong,
.tsgg-status-map-label,
.webshop-checkout-steps span {
  border: 1px solid #3A3A3A !important;
  border-radius: 8px !important;
  background: #F5F8F9 !important;
  color: #BFC4C7 !important;
  box-shadow: none !important;
}

.badge.open,
.badge.created,
.badge.delivered,
.badge.ok,
.badge.success,
.status-pill.success,
.status-pill.ready,
.compact-badge.success,
.tsgg-shipping-chip.open,
.tsgg-shipping-chip.transit,
.tsgg-shipping-chip.delivered,
.webshop-checkout-steps .is-active,
.shipment-status-pill.is-active {
  border-color: #00AFC4 !important;
  background: rgba(0, 175, 196, 0.12) !important;
  color: #6FD3D8 !important;
}

.badge.warning,
.badge.warn,
.badge.problem,
.badge.error,
.status-pill.warning,
.status-pill.error,
.compact-badge.warning,
.compact-badge.error,
.tsgg-shipping-chip.problem,
.tsgg-shipping-chip.unknown,
.system-health-banner,
.system-health-banner.is-error,
.settings-warning,
.data-warning,
.flow-diagnostics,
.flow-diagnostics.is-warning,
.tsgg-project-missing,
.tiny-warning {
  border-color: #3A3A3A !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

.webshop-product-card,
.webshop-product-detail,
.webshop-image-wrap,
.webshop-product-image,
.webshop-detail-media,
.webshop-detail-media img,
.webshop-admin-editor-media,
.landing-stat-grid li,
.invoice-summary-strip div,
.tsgg-detail-grid section,
.shipment-filter-panel,
#tsgg-view .shipment-filter-panel {
  border-color: #2A2A2A !important;
  background: #F5F8F9 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.webshop-image-wrap {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  padding: 10px !important;
  border: 1px solid #D8E3E5 !important;
  border-radius: 8px !important;
  background: #F5F8F9 !important;
}

.webshop-product-image {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.webshop-image-wrap:hover {
  border-color: #10C2D2 !important;
  background: #EEF4F5 !important;
}

.webshop-product-card:hover,
.tsgg-dashboard-action:hover {
  border-color: #00AFC4 !important;
}

.tsgg-dashboard-action.is-pdf,
.tsgg-dashboard-action.is-track,
.tsgg-dashboard-action.is-archive,
#tsgg-view .blikk-project-link,
#tsgg-view .tsgg-project-ref,
#tsgg-view .tsgg-country-code,
#tsgg-view .tsgg-country-flag.is-code-only {
  color: #00AFC4 !important;
}

#tsgg-view .tsgg-detail-grid h3::before {
  border-color: #00AFC4 !important;
  box-shadow: inset 0 0 0 3px #111111, inset 6px 0 0 rgba(0, 175, 196, 0.18) !important;
}

#tsgg-view .tsgg-carrier-status strong,
#tsgg-view .tsgg-project-name,
#tsgg-view .tsgg-shipping-address-cell,
#tsgg-view .tsgg-shipping-address-cell span,
#tsgg-view .subline,
#tsgg-view .compact-line,
#tsgg-view .tsgg-dashboard-table .subline {
  color: #BFC4C7 !important;
}

.toast.success,
.toast.warning,
.toast.error {
  border-color: #2A2A2A !important;
  background: #111111 !important;
  color: #FFFFFF !important;
}

.switch .slider {
  background: #2A2A2A !important;
}

.switch input:checked + .slider {
  background: #00AFC4 !important;
}

.switch-state.is-on {
  color: #6FD3D8 !important;
}

.switch-state.is-off {
  color: #BFC4C7 !important;
}

.ui-icon,
.shipping-title-icon {
  color: #00AFC4 !important;
}

::selection {
  background: #00AFC4;
  color: #000000;
}

/* Shipment dashboard layout polish */
#shipments-view .shipment-dashboard-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

#shipments-view .shipment-col-tracking { width: 10%; }
#shipments-view .shipment-col-customer { width: 13%; }
#shipments-view .shipment-col-project { width: 14%; }
#shipments-view .shipment-col-status { width: 8%; }
#shipments-view .shipment-col-event { width: 16%; }
#shipments-view .shipment-col-eta { width: 6%; }
#shipments-view .shipment-col-added { width: 6%; }
#shipments-view .shipment-col-received { width: 6%; }
#shipments-view .shipment-col-weight { width: 5%; }
#shipments-view .shipment-col-pod { width: 4%; }
#shipments-view .shipment-col-actions { width: 12%; }

#shipments-view .shipment-dashboard-table th,
#shipments-view .shipment-dashboard-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

#shipments-view .tracking-cell,
#shipments-view .customer-cell,
#shipments-view .project-cell,
#shipments-view .status-cell,
#shipments-view .event-cell,
#shipments-view .eta-cell {
  min-width: 0;
}

#shipments-view .actions-cell,
#tsgg-view .actions-cell {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 6px;
  overflow: visible !important;
}

#shipments-view .actions-cell .button,
#shipments-view .actions-cell .mini-button,
#tsgg-view .actions-cell .button,
#tsgg-view .actions-cell .mini-button {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 0.62rem;
  white-space: nowrap;
}

#shipments-view .actions-cell .button,
#shipments-view .actions-cell .mini-button {
  flex: 1 1 78px;
}

#shipments-view .actions-cell .mini-button,
#archived-view .actions-cell .mini-button,
#tsgg-view .tsgg-action-button,
#tsgg-view .tsgg-dashboard-action {
  min-height: 28px !important;
  padding: 5px 8px !important;
  border-radius: 6px !important;
  font-size: 0.62rem !important;
  line-height: 1.05 !important;
}

#tsgg-view .tsgg-dashboard-action {
  width: auto !important;
  min-width: 46px !important;
  max-width: 58px !important;
  min-height: 42px !important;
  padding: 4px 5px !important;
}

#tsgg-view .tsgg-dashboard-action .tsgg-action-icon {
  transform: scale(0.82);
}

#tsgg-view .tsgg-dashboard-action strong {
  font-size: 0.56rem !important;
  line-height: 1 !important;
}

#tsgg-view .tsgg-source-label {
  display: block;
  margin-bottom: 2px;
  color: #688C97 !important;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#tsgg-view .tsgg-documents-row {
  gap: 4px !important;
}

#tsgg-view .shipment-dashboard-table th,
#tsgg-view .shipment-dashboard-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Effektgruppen light interface system */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F8F9;
  --paper: #FFFFFF;
  --paper-strong: #F5F8F9;
  --ink: #1F2933;
  --text: #1F2933;
  --muted: #5E6B70;
  --muted-strong: #8A969A;
  --line: #D8E3E5;
  --line-strong: #10C2D2;
  --primary: #10C2D2;
  --accent: #10C2D2;
  --accent-strong: #008FA3;
  --accent-soft: #DDF7FA;
  --success: #008FA3;
  --success-soft: #DDF7FA;
  --warning: #B7791F;
  --warning-soft: #FFF7E6;
  --danger: #C53030;
  --danger-soft: #FFF1F1;
  --info: #008FA3;
  --info-soft: #DDF7FA;
  --surface-tint: #F5F8F9;
  --surface-hover: #EEF4F5;
  --field-bg: #FFFFFF;
  --field-border: #D8E3E5;
  --field-border-hover: #BCDADC;
  --field-shadow: none;
  --field-focus-shadow: 0 0 0 3px rgba(16, 194, 210, 0.18);
  --brand-gradient: linear-gradient(135deg, #10C2D2, #008FA3);
  --panel-gradient: #FFFFFF;
  --section-bg: #F5F8F9;
  --section-bg-strong: #EEF4F5;
  --table-head: #EEF4F5;
  --table-row-alt: #F5F8F9;
  --table-row-hover: #DDF7FA;
  --shadow: 0 12px 30px rgba(31, 41, 51, 0.08);
  --focus: #10C2D2;
  --radius: 8px;
  --control-height: 38px;
}

html,
body {
  background: #FFFFFF !important;
  color: #1F2933 !important;
  color-scheme: light;
}

a,
.blikk-project-link,
.tsgg-detail-link,
.flow-match-link {
  color: #008FA3 !important;
  text-decoration-color: rgba(16, 194, 210, 0.55);
}

a:hover,
.blikk-project-link:hover,
.tsgg-detail-link:hover,
.flow-match-link:hover {
  color: #10C2D2 !important;
  text-decoration-color: #10C2D2;
}

.top-nav,
.panel,
.settings-intro,
.settings-links,
.settings .integration-card,
.health-status-card,
.overview-card,
.sync-countdown,
.uninvoiced-group,
.report-empty,
.pod-dialog-card,
.pod-dialog-panel,
.webshop-shell,
.webshop-checkout-card,
.webshop-order-summary,
.webshop-cart-drawer,
.webshop-inline-cart,
.webshop-billing-box,
.webshop-review-content > div,
.webshop-history-card,
.webshop-admin-editor,
.webshop-admin-list,
.freight-booking-detail,
.freight-booking-results,
.tsgg-detail-panel,
.tsgg-status-popover,
.tsgg-archive-section,
.toast {
  border: 1px solid #D8E3E5 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #1F2933 !important;
  box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08) !important;
}

.panel,
.pod-dialog-card {
  padding: 16px !important;
}

.nav-brand,
.panel-head,
.shipping-dashboard-head,
.webshop-head,
.pod-dialog-head,
.uninvoiced-group-head,
.tsgg-detail-head,
.shipment-filter-panel,
#tsgg-view .shipment-filter-panel,
.settings-links {
  border-color: #D8E3E5 !important;
  background: #F5F8F9 !important;
}

.top-nav {
  background: #FFFFFF !important;
}

.nav-link,
.settings-menu-link {
  min-height: 36px;
  padding: 9px 10px;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #5E6B70 !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-link:hover,
.settings-menu-link:hover {
  border-color: #BCDADC !important;
  background: #EEF4F5 !important;
  color: #1F2933 !important;
}

.nav-link.is-active,
.settings-menu-link.is-active {
  border-color: #10C2D2 !important;
  background: #10C2D2 !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
}

.nav-link.nav-link-sub {
  min-height: 32px;
  margin-top: -2px;
  margin-left: 14px;
  padding: 7px 10px 7px 14px;
  border-left: 2px solid #D8E3E5 !important;
  font-size: 0.64rem;
  color: #688C97 !important;
}

.nav-link.nav-link-sub:hover {
  border-left-color: #10C2D2 !important;
  color: #1F2933 !important;
}

.nav-link.nav-link-sub.is-active {
  border-left-color: #008FA3 !important;
  background: #DDF7FA !important;
  color: #008FA3 !important;
}

.tsgg-sort-header,
button.tsgg-sort-header {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  font: inherit;
  font-weight: 800;
  text-align: inherit;
}

.tsgg-sort-header:hover,
button.tsgg-sort-header:hover,
.tsgg-sort-header:focus-visible,
button.tsgg-sort-header:focus-visible {
  border: 0 !important;
  background: transparent !important;
  color: #008FA3 !important;
  box-shadow: none !important;
  transform: none !important;
}

h1,
h2,
h3,
h4,
strong,
.panel h2,
.webshop-product-title,
.webshop-detail-copy h2,
.customer-name,
.tsgg-content-main,
.tsgg-project-name {
  color: #1F2933 !important;
}

p,
small,
label span,
.section-subtitle,
.settings-note,
.table-status,
.flow-search-status,
.subline,
.compact-line,
.empty-state,
.empty-row,
.webshop-product-price,
.webshop-shipping-note,
.webshop-detail-meta,
.webshop-review-content span,
.webshop-history-card span,
.webshop-history-card p,
.brand-copy span,
.muted {
  color: #5E6B70 !important;
}

.eyebrow,
.overview-label,
.detail-section-label,
th {
  color: #688C97 !important;
}

input,
select,
textarea,
.shipment-note-input,
.flow-match-input {
  color-scheme: light;
  min-height: var(--control-height);
  border: 1px solid #D8E3E5 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #1F2933 !important;
  box-shadow: none !important;
}

.shipment-filter-panel input,
.shipment-filter-panel select,
#tsgg-view .shipment-filter-panel input,
#tsgg-view .shipment-filter-panel select,
.toolbar input,
.toolbar select,
.flow-search input,
.flow-search select,
.flow-toolbar input,
.flow-toolbar select,
.settings-search input,
.settings-search select,
.grid-form input,
.grid-form select,
.grid-form textarea,
.webshop-form-grid input,
.webshop-form-grid select,
.webshop-checkout-card textarea {
  color-scheme: light;
  border: 1px solid #D8E3E5 !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #1F2933 !important;
}

input:hover,
select:hover,
textarea:hover,
.shipment-note-input:hover,
.flow-match-input:hover {
  border-color: #BCDADC !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #10C2D2 !important;
  outline-offset: 2px;
  border-color: #10C2D2 !important;
  box-shadow: 0 0 0 3px rgba(16, 194, 210, 0.18) !important;
}

input::placeholder,
textarea::placeholder {
  color: #8A969A !important;
}

.button,
.mini-button,
.icon-button,
.tsgg-dashboard-action,
.tsgg-action-button,
.webshop-card-buy button,
.webshop-detail-cart,
.webshop-detail-buy,
.webshop-cart-button,
.webshop-inline-cart .button,
.shipment-status-pill,
.tsgg-sort-header,
button[value="cancel"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid #D8E3E5 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  color: #1F2933 !important;
  box-shadow: none !important;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.button:hover,
.mini-button:hover,
.icon-button:hover,
.tsgg-dashboard-action:hover,
.tsgg-action-button:hover,
.webshop-card-buy button:hover,
.webshop-detail-cart:hover,
.webshop-cart-button:hover,
.shipment-status-pill:hover,
.tsgg-sort-header:hover,
button[value="cancel"]:hover {
  border-color: #10C2D2 !important;
  background: #DDF7FA !important;
  color: #1F2933 !important;
  transform: none !important;
}

.button.primary,
.button.accent,
.webshop-detail-buy,
#webshop-submit-order,
#webshop-review-order,
#webshop-open-checkout,
#webshop-continue-delivery {
  border-color: #10C2D2 !important;
  background: #10C2D2 !important;
  color: #FFFFFF !important;
}

.button.primary:hover,
.button.accent:hover,
.webshop-detail-buy:hover,
#webshop-submit-order:hover,
#webshop-review-order:hover,
#webshop-open-checkout:hover,
#webshop-continue-delivery:hover {
  border-color: #008FA3 !important;
  background: #008FA3 !important;
  color: #FFFFFF !important;
}

.button.secondary,
.button.ghost,
.mini-button.secondary {
  border-color: #D8E3E5 !important;
  background: #FFFFFF !important;
  color: #008FA3 !important;
}

.button.warning,
.mini-button.warning {
  border-color: #B7791F !important;
  background: #FFF7E6 !important;
  color: #1F2933 !important;
}

.button.danger,
.mini-button.danger,
button[value="cancel"] {
  border-color: #C53030 !important;
  background: #FFF1F1 !important;
  color: #C53030 !important;
}

button:disabled,
.button:disabled,
.mini-button:disabled,
.icon-button:disabled,
.tsgg-dashboard-action:disabled {
  border-color: #E8EEF0 !important;
  background: #F5F8F9 !important;
  color: #8A969A !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}

button:focus-visible,
.button:focus-visible,
.mini-button:focus-visible,
.icon-button:focus-visible,
.tsgg-dashboard-action:focus-visible {
  outline: 2px solid #10C2D2 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(16, 194, 210, 0.18) !important;
}

.table-wrap,
.report-table-wrap {
  border: 1px solid #D8E3E5 !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  overflow: auto;
}

table,
.shipment-dashboard-table,
.tsgg-dashboard-table,
.report-table {
  color: #1F2933 !important;
}

thead th,
.shipment-dashboard-table thead th,
.tsgg-dashboard-table thead th,
.report-table th {
  border-bottom: 1px solid #D8E3E5 !important;
  background: #EEF4F5 !important;
  color: #5E6B70 !important;
  font-weight: 800;
}

tbody td,
.shipment-dashboard-table tbody td,
.tsgg-dashboard-table tbody td,
.report-table td {
  border-bottom: 1px solid #E8EEF0 !important;
  background: #FFFFFF !important;
  color: #1F2933 !important;
}

tbody tr:nth-child(even) td,
.shipment-dashboard-table tbody tr:nth-child(even) td,
.tsgg-dashboard-table tbody tr:nth-child(even) td {
  background: #F5F8F9 !important;
}

tbody tr:hover td,
.shipment-dashboard-table tbody tr:hover td,
.tsgg-dashboard-table tbody tr:hover td {
  background: #DDF7FA !important;
}

.shipment-dashboard-table tbody tr.is-expanded td,
.tsgg-expanded-detail-row > td {
  border-color: #10C2D2 !important;
  background: #DDF7FA !important;
}

.badge,
.status-pill,
.compact-badge,
.tsgg-shipping-chip,
.shipment-status-pill strong,
.tsgg-status-map-label,
.webshop-checkout-steps span {
  border: 1px solid #D8E3E5 !important;
  border-radius: 8px !important;
  background: #F5F8F9 !important;
  color: #5E6B70 !important;
  box-shadow: none !important;
}

.badge.open,
.badge.created,
.badge.delivered,
.badge.ok,
.badge.success,
.status-pill.success,
.status-pill.ready,
.compact-badge.success,
.tsgg-shipping-chip.open,
.tsgg-shipping-chip.transit,
.tsgg-shipping-chip.delivered,
.webshop-checkout-steps .is-active,
.shipment-status-pill.is-active {
  border-color: #10C2D2 !important;
  background: #DDF7FA !important;
  color: #008FA3 !important;
}

.badge.warning,
.badge.warn,
.status-pill.warning,
.compact-badge.warning,
.system-health-banner,
.flow-diagnostics.is-warning {
  border-color: #B7791F !important;
  background: #FFF7E6 !important;
  color: #1F2933 !important;
}

.badge.problem,
.badge.error,
.status-pill.error,
.compact-badge.error,
.tsgg-shipping-chip.problem,
.tsgg-shipping-chip.unknown,
.system-health-banner.is-error,
.settings-warning,
.data-warning,
.flow-diagnostics,
.tsgg-project-missing,
.tiny-warning {
  border-color: #C53030 !important;
  background: #FFF1F1 !important;
  color: #C53030 !important;
}

.webshop-product-card,
.webshop-product-detail,
.webshop-image-wrap,
.webshop-product-image,
.webshop-detail-media,
.webshop-detail-media img,
.webshop-admin-editor-media,
.landing-stat-grid li,
.invoice-summary-strip div,
.tsgg-detail-grid section {
  border-color: #D8E3E5 !important;
  background: #FFFFFF !important;
  color: #1F2933 !important;
  box-shadow: none !important;
}

.overview-card,
.health-status-card,
.webshop-product-card:hover,
.tsgg-dashboard-action:hover {
  border-color: #BCDADC !important;
}

.tsgg-dashboard-action.is-pdf,
.tsgg-dashboard-action.is-track,
.tsgg-dashboard-action.is-archive,
#tsgg-view .blikk-project-link,
#tsgg-view .tsgg-project-ref,
#tsgg-view .tsgg-country-code,
#tsgg-view .tsgg-country-flag.is-code-only,
.ui-icon,
.shipping-title-icon {
  color: #10C2D2 !important;
}

#tsgg-view .tsgg-detail-grid h3::before {
  border-color: #10C2D2 !important;
  box-shadow: inset 0 0 0 3px #FFFFFF, inset 6px 0 0 rgba(16, 194, 210, 0.18) !important;
}

#tsgg-view .tsgg-carrier-status strong,
#tsgg-view .tsgg-project-name,
#tsgg-view .tsgg-shipping-address-cell,
#tsgg-view .tsgg-shipping-address-cell span,
#tsgg-view .subline,
#tsgg-view .compact-line,
#tsgg-view .tsgg-dashboard-table .subline {
  color: #5E6B70 !important;
}

.toast.success,
.toast.warning,
.toast.error {
  background: #FFFFFF !important;
  color: #1F2933 !important;
}

.toast.success {
  border-color: #10C2D2 !important;
}

.toast.warning {
  border-color: #B7791F !important;
}

.toast.error {
  border-color: #C53030 !important;
}

.switch .slider {
  background: #BCDADC !important;
}

.switch input:checked + .slider {
  background: #10C2D2 !important;
}

.switch-state.is-on {
  color: #008FA3 !important;
}

.switch-state.is-off {
  color: #5E6B70 !important;
}

::selection {
  background: #10C2D2;
  color: #FFFFFF;
}

#tsgg-view .shipment-filter-panel {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  align-items: end !important;
  overflow: visible !important;
}

#tsgg-view .shipment-date-field {
  min-width: 260px;
}

#tsgg-view .shipment-clear-filter-button {
  justify-self: end;
  width: auto;
  min-width: 132px;
}

#tsgg-view .tsgg-documents-cell {
  padding-right: 4px !important;
  text-align: right;
}

#tsgg-view .tsgg-documents-row {
  width: 100% !important;
  margin-left: auto;
  justify-content: flex-end !important;
}

#tsgg-view .tsgg-additional-information,
#tsgg-view .tsgg-detail-grid p,
#tsgg-view .tsgg-detail-grid .subline,
#tsgg-view .tsgg-detail-grid .compact-line {
  font-size: 0.9rem !important;
  line-height: 1.42 !important;
}

#tsgg-view .tsgg-detail-grid .tsgg-additional-information {
  display: block !important;
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
}

#tsgg-view .tsgg-detail-grid .tsgg-additional-detail-line {
  margin-bottom: 10px;
}

#tsgg-view .tsgg-detail-grid .tsgg-additional-label {
  display: block;
  margin-bottom: 2px;
  color: #1F2933;
  font-weight: 800;
}

#tsgg-view .tsgg-detail-grid .tsgg-additional-value {
  display: block;
}

#tsgg-view .shipment-col-expand { width: 4% !important; }
#tsgg-view .shipment-col-project { width: 14% !important; }
#tsgg-view .shipment-col-reference { width: 15.5% !important; }
#tsgg-view .shipment-col-customer { width: 11% !important; }
#tsgg-view .shipment-col-content { width: 12% !important; }
#tsgg-view .shipment-col-status { width: 12% !important; }
#tsgg-view .shipment-col-weight { width: 5.5% !important; }
#tsgg-view .shipment-col-date { width: 12% !important; }
#tsgg-view .shipment-col-actions { width: 14% !important; }

#tsgg-view .tsgg-dashboard-table {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] {
  font-size: 0.78rem !important;
  line-height: 1.22 !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] .tsgg-content-main,
#tsgg-view .tsgg-dashboard-table td[data-label="Content summary"] .subline {
  font-size: inherit !important;
  line-height: inherit !important;
}

#tsgg-view .tsgg-dashboard-table th:nth-last-child(3),
#tsgg-view .tsgg-dashboard-table td[data-label="Weight"] {
  white-space: nowrap !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Project"],
#tsgg-view .tsgg-dashboard-table td[data-label="Project"] *,
#tsgg-view .tsgg-dashboard-table td[data-label="Shipping address"],
#tsgg-view .tsgg-dashboard-table td[data-label="Shipping address"] * {
  font-weight: 400 !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Project"] .blikk-project-link {
  font-weight: 400 !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Project"] .tsgg-project-line {
  align-items: baseline !important;
  gap: 6px !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Project"] .blikk-project-link,
#tsgg-view .tsgg-dashboard-table td[data-label="Project"] .blikk-project-link strong,
#tsgg-view .tsgg-dashboard-table td[data-label="Project"] .tsgg-project-ref {
  color: #000000 !important;
  font-size: 0.95rem !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
}

#tsgg-view .tsgg-dashboard-table th.actions-head,
#tsgg-view .tsgg-dashboard-table td[data-label="Actions"] {
  padding-right: 4px !important;
  padding-left: 4px !important;
}

#tsgg-view .tsgg-dashboard-table th:has([data-tsgg-sort-key="requested_delivery"]),
#tsgg-view .tsgg-dashboard-table th:nth-last-child(2),
#tsgg-view .tsgg-dashboard-table td[data-label="Requested delivery date"] {
  text-align: right !important;
}

#tsgg-view .tsgg-dashboard-table td[data-label="Requested delivery date"] {
  padding-right: 8px !important;
}

#tsgg-view .tsgg-dashboard-table th.actions-head {
  text-align: right !important;
}

#tsgg-view .tsgg-dashboard-table th.actions-head .tsgg-status-info {
  margin-left: 3px;
}

#tsgg-view .shipment-filter-panel input,
#tsgg-view .shipment-filter-panel select {
  min-height: 34px !important;
  height: 34px !important;
  padding: 5px 10px !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1.15 !important;
}

#tsgg-view .shipment-filter-field {
  gap: 3px !important;
  font-size: 0.68rem !important;
}

#tsgg-view .shipment-clear-filter-button {
  min-height: 34px !important;
  height: 34px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  font-size: 0.68rem !important;
}

#tsgg-view .tsgg-expand-button {
  font-weight: 900 !important;
  font-size: 1.65rem !important;
  line-height: 1 !important;
}

#tsgg-view .tsgg-status-map-label.unknown {
  background: #FFF1F2 !important;
  border-color: #FECDD3 !important;
  color: #E11D48 !important;
}

#tsgg-view .tsgg-status-map-label.open {
  background: #FFF7ED !important;
  border-color: #FED7AA !important;
  color: #D97706 !important;
}

#tsgg-view .tsgg-status-map-label.transit {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #2563EB !important;
}

#tsgg-view .tsgg-status-map-label.delivered {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #059669 !important;
}

#tsgg-view .tsgg-dashboard-table th:has([data-tsgg-sort-key="requested_delivery"]),
#tsgg-view .tsgg-dashboard-table th:nth-last-child(2),
#tsgg-view .tsgg-dashboard-table td[data-label="Requested delivery date"] {
  text-align: left !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

#tsgg-view .tsgg-dashboard-table th.actions-head,
#tsgg-view .tsgg-dashboard-table td[data-label="Actions"] {
  text-align: left !important;
}

#tsgg-view .tsgg-documents-row {
  justify-content: flex-start !important;
}

#tsgg-view .tsgg-status-map-label.unknown,
#tsgg-view .tsgg-shipping-chip.unknown,
#tsgg-view .shipment-status-pill[data-tsgg-status="missing"] strong {
  background: #FFF1F2 !important;
  border-color: #FECDD3 !important;
  color: #BE123C !important;
}

#tsgg-view .tsgg-status-map-label.open,
#tsgg-view .tsgg-shipping-chip.open,
#tsgg-view .shipment-status-pill[data-tsgg-status="created"] strong {
  background: #FFF7ED !important;
  border-color: #FED7AA !important;
  color: #C2410C !important;
}

#tsgg-view .tsgg-status-map-label.transit,
#tsgg-view .tsgg-shipping-chip.transit,
#tsgg-view .shipment-status-pill[data-tsgg-status="transit"] strong {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #1D4ED8 !important;
}

#tsgg-view .tsgg-status-map-label.delivered,
#tsgg-view .tsgg-shipping-chip.delivered,
#tsgg-view .shipment-status-pill[data-tsgg-status="delivered"] strong {
  background: #ECFDF5 !important;
  border-color: #A7F3D0 !important;
  color: #047857 !important;
}

#tsgg-view .shipment-status-pill,
#tsgg-view .shipment-status-pill strong {
  font-weight: 400 !important;
}

#webshop-products-view .webshop-admin-thumb,
#webshop-products-view .webshop-admin-editor-media,
#webshop-products-view .webshop-admin-editor-media img,
#webshop-products-view .webshop-edit-image-item,
#webshop-product-preview .webshop-preview-image,
#webshop-view .webshop-image-wrap,
#webshop-view .webshop-product-image {
  aspect-ratio: 1 / 1 !important;
}

#webshop-products-view .webshop-admin-editor-media {
  width: min(100%, 220px) !important;
  min-height: 0 !important;
  justify-self: center !important;
}

#webshop-products-view .webshop-admin-editor-media img,
#webshop-view .webshop-product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

#webshop-product-detail .webshop-product-modal {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* End-of-file webshop UI polish overrides. */
#webshop-view .webshop-checkout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  gap: 20px !important;
  align-items: start !important;
}

#webshop-view .webshop-checkout-main {
  min-width: 0 !important;
}

#webshop-view .webshop-order-summary {
  position: sticky !important;
  top: 16px !important;
  align-self: start !important;
}

#webshop-view .webshop-products-grid {
  align-items: stretch !important;
}

#webshop-view .webshop-product-card {
  display: grid !important;
  grid-template-rows: auto auto minmax(42px, auto) auto 1fr auto !important;
  height: 100% !important;
  min-height: 326px !important;
  gap: 10px !important;
  padding: 10px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

#webshop-view .webshop-product-card:hover {
  transform: translateY(-2px) !important;
  border-color: #d8e7ec !important;
  box-shadow: 0 12px 28px rgba(15, 34, 67, 0.08) !important;
}

#webshop-view .webshop-product-card .webshop-image-wrap {
  place-self: center !important;
}

#webshop-view .webshop-product-title {
  display: -webkit-box !important;
  min-height: 48px !important;
  max-height: 57px !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-product-price {
  min-height: 24px !important;
  align-self: start !important;
}

#webshop-view .webshop-card-buy {
  align-self: end !important;
  margin-top: 0 !important;
}

#webshop-view .webshop-card-buy button {
  min-height: 42px !important;
}

#webshop-product-detail .webshop-detail-main-image {
  display: grid !important;
  place-items: center !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  display: block !important;
  width: 82% !important;
  height: 82% !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

#webshop-product-detail .webshop-detail-thumbs button {
  display: grid !important;
  place-items: center !important;
  width: 82px !important;
  height: 82px !important;
  min-width: 82px !important;
  min-height: 82px !important;
  padding: 5px !important;
}

#webshop-product-detail .webshop-detail-thumbs img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  #webshop-view .webshop-checkout-layout {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-order-summary {
    position: static !important;
  }
}

/* Webshop standard UX pass: steps, empty states, sticky cart, history and collections. */
#webshop-view .webshop-checkout-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 10px 0 18px !important;
}

#webshop-view .webshop-checkout-steps span {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 10px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #64748b !important;
  box-shadow: none !important;
}

#webshop-view .webshop-checkout-steps b {
  display: grid !important;
  width: 26px !important;
  height: 26px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #eef2f7 !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

#webshop-view .webshop-checkout-steps small {
  overflow: hidden !important;
  color: inherit !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-checkout-steps .is-complete {
  border-color: #cfe5ec !important;
  color: #256f86 !important;
}

#webshop-view .webshop-checkout-steps .is-complete b,
#webshop-view .webshop-checkout-steps .is-active b {
  background: #3e8ba4 !important;
  color: #fff !important;
}

#webshop-view .webshop-checkout-steps .is-active {
  border-color: #3e8ba4 !important;
  color: #111827 !important;
  box-shadow: 0 10px 24px rgba(62, 139, 164, 0.14) !important;
}

#webshop-view .webshop-empty-state {
  display: grid !important;
  min-height: 170px !important;
  place-items: center !important;
  align-content: center !important;
  gap: 10px !important;
  padding: 28px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: #475569 !important;
  text-align: center !important;
}

#webshop-view .webshop-empty-state strong {
  color: #111827 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-empty-state span {
  max-width: 420px !important;
  color: #64748b !important;
  font-size: 0.86rem !important;
  line-height: 1.35 !important;
}

#webshop-view .webshop-inline-cart {
  position: sticky !important;
  top: 10px !important;
  z-index: 25 !important;
  margin: 0 0 14px !important;
  border: 1px solid #dbe7ec !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 34px rgba(15, 34, 67, 0.12) !important;
  backdrop-filter: blur(12px) !important;
}

#webshop-view .webshop-collection-filter {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 10px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 34, 67, 0.05) !important;
}

#webshop-view .webshop-collection-filter[hidden] {
  display: none !important;
}

#webshop-view .webshop-collection-filter-head {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 6px !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-collection-filter-head strong {
  display: grid !important;
  min-width: 24px !important;
  height: 24px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #eef2f7 !important;
  color: #111827 !important;
  font-size: 0.75rem !important;
}

#webshop-view .webshop-collection-filter-scroll {
  display: flex !important;
  min-width: 0 !important;
  gap: 8px !important;
  overflow-x: auto !important;
  padding: 2px 2px 4px !important;
  scrollbar-width: thin !important;
}

#webshop-view .webshop-collection-filter button {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  padding: 7px 14px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

#webshop-view .webshop-collection-filter button:hover {
  border-color: #9ec7d4 !important;
  background: #eef8fb !important;
}

#webshop-view .webshop-collection-filter button.is-active {
  border-color: #3e8ba4 !important;
  background: #3e8ba4 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(62, 139, 164, 0.18) !important;
}

#webshop-view .webshop-history-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

#webshop-view .webshop-history-summary > div {
  display: grid !important;
  gap: 5px !important;
  padding: 13px 14px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 34, 67, 0.05) !important;
}

#webshop-view .webshop-history-summary span {
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-history-summary strong {
  overflow: hidden !important;
  color: #111827 !important;
  font-size: 1.04rem !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-history-table-wrap {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 12px 28px rgba(15, 34, 67, 0.06) !important;
}

#webshop-view .webshop-history-row.is-current {
  outline: 2px solid rgba(62, 139, 164, 0.45) !important;
  outline-offset: -2px !important;
  background: #f0f9fb !important;
}

#webshop-product-detail .webshop-product-modal {
  border-radius: 18px !important;
}

#webshop-product-detail .webshop-detail-grid {
  gap: 28px !important;
}

#webshop-product-detail .webshop-detail-copy {
  align-content: start !important;
  gap: 12px !important;
}

#webshop-product-detail .webshop-detail-copy h2 {
  margin-bottom: 2px !important;
}

#webshop-product-detail .webshop-shipping-note {
  display: block !important;
  width: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
}

#webshop-product-detail .webshop-detail-description {
  margin-top: 8px !important;
  padding: 16px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
}

#webshop-product-detail .webshop-variant-options {
  display: grid !important;
  gap: 5px !important;
  margin: 2px 0 !important;
  max-width: 360px !important;
}

#webshop-product-detail .webshop-variant-options-title {
  color: #475569 !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#webshop-product-detail .webshop-variant-option {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 2px 8px !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 6px 8px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 0.78rem !important;
  text-align: left !important;
}

#webshop-product-detail .webshop-variant-option span {
  font-size: 0.78rem !important;
  line-height: 1.15 !important;
}

#webshop-product-detail .webshop-variant-option strong {
  font-size: 0.76rem !important;
  line-height: 1.15 !important;
}

#webshop-product-detail .webshop-variant-option small {
  grid-column: 1 / -1 !important;
  color: #64748b !important;
  font-size: 0.66rem !important;
  line-height: 1.15 !important;
}

#webshop-product-detail .webshop-variant-option.is-selected {
  border-color: #3e8ba4 !important;
  background: #f0f9fb !important;
  box-shadow: inset 0 0 0 1px rgba(62, 139, 164, 0.18) !important;
}

@media (max-width: 900px) {
  #webshop-view .webshop-checkout-steps,
  #webshop-view .webshop-history-summary {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-collection-filter {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-inline-cart {
    top: 0 !important;
  }
}

/* Products editor: cleaner vendor and checkbox controls. */
#webshop-products-view .webshop-editor-group-grid {
  align-items: end !important;
}

#webshop-products-view .webshop-vendor-field {
  grid-column: 1 / 2 !important;
}

#webshop-products-view .webshop-show-vendor-field {
  grid-column: 2 / 3 !important;
  align-self: end !important;
}

#webshop-products-view .webshop-check-field {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 28px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  padding: 4px 8px !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  cursor: pointer !important;
}

#webshop-products-view .webshop-check-field:hover {
  border-color: #aacbd7 !important;
  background: #f6fbfd !important;
}

#webshop-products-view .webshop-check-field span {
  order: 2 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

#webshop-products-view .webshop-check-field input[type="checkbox"] {
  order: 1 !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  accent-color: #3e8ba4 !important;
  cursor: pointer !important;
}

@media (max-width: 900px) {
  #webshop-products-view .webshop-vendor-field,
  #webshop-products-view .webshop-show-vendor-field {
    grid-column: 1 / -1 !important;
  }
}

/* Review order popup should match the Send to Blikk popup. */
#webshop-review-dialog,
#webshop-send-blikk-dialog {
  width: min(1120px, calc(100vw - 32px)) !important;
  max-width: none !important;
}

#webshop-review-dialog .webshop-review-dialog-card {
  width: min(1120px, calc(100vw - 32px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  background: #fff !important;
  border: 1px solid #dbe4ef !important;
  border-radius: 12px !important;
  box-shadow: 0 22px 60px rgba(15, 34, 67, 0.16) !important;
}

#webshop-review-dialog .pod-dialog-head {
  padding: 18px 20px !important;
  border-bottom: 1px solid #e5edf4 !important;
  background: #fff !important;
}

#webshop-review-dialog .pod-dialog-panel {
  margin: 14px 18px !important;
  padding: 14px !important;
  border: 1px solid #e5edf4 !important;
  border-radius: 10px !important;
  background: #fbfcfe !important;
  box-shadow: none !important;
}

#webshop-review-dialog .pod-dialog-panel:last-child {
  margin-top: 0 !important;
}

#webshop-review-dialog .webshop-review-content {
  display: grid !important;
  gap: 14px !important;
}

#webshop-review-dialog .webshop-review-content > div,
#webshop-review-dialog .webshop-review-products,
#webshop-review-dialog .webshop-review-grid > div {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webshop-review-dialog .webshop-send-blikk-summary-head {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#webshop-review-dialog .webshop-send-blikk-summary-head > div {
  display: grid !important;
  gap: 5px !important;
  padding: 12px !important;
  border: 1px solid #e5edf4 !important;
  border-radius: 9px !important;
  background: #fff !important;
}

#webshop-review-dialog .webshop-send-blikk-products h3 {
  margin: 0 0 8px !important;
  color: #0f2243 !important;
  font-size: 0.92rem !important;
}

#webshop-review-dialog .webshop-send-blikk-products table {
  width: 100% !important;
  border-collapse: collapse !important;
  overflow: hidden !important;
  border: 1px solid #e5edf4 !important;
  border-radius: 9px !important;
  background: #fff !important;
}

#webshop-review-dialog .webshop-send-blikk-products th,
#webshop-review-dialog .webshop-send-blikk-products td {
  padding: 9px 10px !important;
  border-bottom: 1px solid #edf2f7 !important;
  text-align: left !important;
  vertical-align: top !important;
}

#webshop-review-dialog .webshop-send-blikk-products th {
  background: #f5f8fb !important;
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#webshop-review-dialog .webshop-review-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#webshop-review-dialog .webshop-review-grid > div {
  display: grid !important;
  gap: 5px !important;
  padding: 12px !important;
  border: 1px solid #e5edf4 !important;
  border-radius: 9px !important;
  background: #fff !important;
}

#webshop-review-dialog .webshop-review-content span,
#webshop-review-dialog .webshop-review-grid span {
  color: #64748b !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#webshop-review-dialog .webshop-review-content strong,
#webshop-review-dialog .webshop-review-grid strong {
  color: #111827 !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
}

#webshop-review-dialog .webshop-review-dialog-actions {
  display: flex !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

#webshop-review-dialog .webshop-review-status {
  flex: 1 1 100%;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
  color: #991b1b;
}

#webshop-review-dialog .webshop-review-status.muted {
  border-color: #cbdfe5;
  background: #f2f8fa;
  color: #173e50;
}

#webshop-review-dialog .webshop-review-status[hidden] {
  display: none !important;
}

#webshop-product-detail .webshop-detail-vendor {
  width: fit-content !important;
  color: #64748b !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

#webshop-product-detail .webshop-detail-meta {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 5px !important;
}

#webshop-product-detail .webshop-detail-outgoing {
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #be123c !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-product-outgoing {
  width: fit-content !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #be123c !important;
  font-size: 0.64rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-product-card .webshop-image-wrap {
  position: relative !important;
}

#webshop-view .webshop-product-options-badge {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 2 !important;
  max-width: calc(100% - 16px) !important;
  padding: 4px 7px !important;
  border: 1px solid rgba(62, 139, 164, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #255f70 !important;
  box-shadow: 0 4px 12px rgba(15, 34, 67, 0.12) !important;
  font-size: 0.62rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  #webshop-review-dialog .webshop-send-blikk-summary-head,
  #webshop-review-dialog .webshop-review-grid {
    grid-template-columns: 1fr !important;
  }
}

/* TSGG order page shop header */
#webshop-view .webshop-head {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin: 0 0 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webshop-view .webshop-title-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 330px !important;
  padding: 34px 38px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.16) 100%),
    url("/static/webshop-hero.jpg?v=20260709-webshop-landing-01") center 44% / cover no-repeat !important;
}

#webshop-view .webshop-title-block {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 780px !important;
}

#webshop-view .webshop-kicker {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-title-block h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 3rem !important;
  line-height: 1.05 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-title-block p {
  max-width: none !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.96rem !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-landing-points {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

#webshop-view .webshop-landing-points span {
  display: inline-flex !important;
  min-height: 30px !important;
  align-items: center !important;
  padding: 0 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
}

#webshop-view .webshop-shop-toolbar {
  display: grid !important;
  grid-template-columns: minmax(220px, 760px) auto !important;
  gap: 12px !important;
  align-items: end !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(15, 34, 67, 0.05) !important;
}

#webshop-view .webshop-shop-search {
  display: grid !important;
  min-width: 0 !important;
  gap: 5px !important;
}

#webshop-view .webshop-shop-search span {
  color: #475569 !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#webshop-view #webshop-search-input {
  width: 100% !important;
  min-height: 40px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 0.94rem !important;
}

#webshop-view #webshop-search-input:focus {
  border-color: #9bb8c3 !important;
  outline: 2px solid rgba(62, 139, 164, 0.16) !important;
  outline-offset: 1px !important;
}

#webshop-view .webshop-utility-row {
  display: none !important;
  justify-content: flex-end !important;
  margin: -12px 0 18px !important;
}

#webshop-view .webshop-utility-row .button {
  min-height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 0.84rem !important;
  font-weight: 850 !important;
}

#webshop-view .webshop-utility-row .button:hover {
  border-color: #111827 !important;
}

#webshop-view .webshop-shop-toolbar > #webshop-open-order-history {
  align-self: end !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  border: 1px solid #d7dee8 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-shop-toolbar > #webshop-open-order-history:hover {
  border-color: #111827 !important;
}

#webshop-view .webshop-shop-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-shop-actions .button {
  min-height: 52px !important;
  padding: 0 14px !important;
  border-color: #111827 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #111827 !important;
}

#webshop-view .webshop-cart-button {
  display: inline-flex !important;
  position: relative !important;
  width: auto !important;
  min-width: 178px !important;
  height: 52px !important;
  min-height: 52px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 0 14px !important;
  border: 1px solid #111827 !important;
  border-radius: 10px !important;
  background: #111827 !important;
  color: #fff !important;
}

#webshop-view .webshop-cart-icon {
  color: inherit !important;
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
}

#webshop-view .webshop-cart-button strong {
  position: static !important;
  display: grid !important;
  min-width: 24px !important;
  height: 24px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #10c2d2 !important;
  color: #fff !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

#webshop-view .webshop-collection-filter {
  overflow: visible !important;
  margin: 0 0 24px !important;
  padding: 0 0 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff !important;
}

#webshop-view .webshop-collection-filter-scroll {
  gap: 7px !important;
  padding: 0 !important;
  overflow: visible !important;
  align-items: flex-start !important;
}

#webshop-view .webshop-collection-filter button {
  min-height: 34px !important;
  padding: 0 3px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
}

#webshop-view .webshop-collection-filter button.is-active {
  border-color: #111827 !important;
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}

#webshop-view .webshop-store-footer {
  display: grid !important;
  justify-items: center !important;
  gap: 20px !important;
  margin: 46px -16px -16px !important;
  padding: 44px 70px 28px !important;
  border-radius: 0 0 14px 14px !important;
  background: #10b7bf !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

#webshop-view .webshop-store-footer p {
  margin: 0 !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

#webshop-view .webshop-store-subscribe {
  display: grid !important;
  gap: 14px !important;
  width: min(420px, 100%) !important;
  justify-items: stretch !important;
  text-align: center !important;
}

#webshop-view .webshop-store-subscribe h3 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 1.45rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-store-subscribe label {
  display: grid !important;
  gap: 6px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 0.82rem !important;
  text-align: left !important;
}

#webshop-view .webshop-store-subscribe input {
  min-height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
}

#webshop-view .webshop-store-payments {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-store-footer-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px 18px !important;
  width: 100% !important;
  padding-top: 8px !important;
  border-top: 0 !important;
  color: rgba(255, 255, 255, 0.54) !important;
  font-size: 0.82rem !important;
  font-weight: 650 !important;
}

#webshop-view .webshop-store-footer-brand {
  display: block !important;
  grid-column: auto !important;
}

#webshop-view .webshop-store-footer-brand strong {
  color: #fff !important;
  font-size: 0.98rem !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
}

#webshop-view .webshop-store-footer-brand span {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.78rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
}

#webshop-view .webshop-store-footer-heading {
  display: none !important;
  margin-bottom: 10px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-store-footer-links {
  display: flex !important;
  grid-column: auto !important;
  max-width: none !important;
  order: 0 !important;
}

#webshop-view .webshop-store-policy-links {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 13px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

#webshop-view .webshop-store-social-links {
  display: flex !important;
  gap: 0 !important;
  grid-column: auto !important;
  justify-content: center !important;
}

#webshop-view .webshop-store-social-links,
#webshop-view .webshop-store-social-links > div {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
}

#webshop-view .webshop-store-footer-links a,
#webshop-view .webshop-store-footer-links button {
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.74) !important;
  cursor: pointer !important;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  padding: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
}

#webshop-view .webshop-store-policy-links button + button::before {
  content: "" !important;
}

#webshop-view .webshop-store-footer-links a:hover,
#webshop-view .webshop-store-footer-links button:hover {
  color: #fff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

#webshop-view .webshop-store-social-link {
  display: inline-flex !important;
  width: 22px !important;
  height: 22px !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
}

#webshop-view .webshop-store-social-link svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: currentColor !important;
}

#webshop-view .webshop-store-social-link:hover {
  color: #fff !important;
  text-decoration: none !important;
}

#webshop-view .webshop-policy-card {
  width: min(840px, calc(100vw - 32px)) !important;
  max-height: min(88vh, 820px) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #1f2937 !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18) !important;
}

#webshop-view .webshop-policy-card .pod-dialog-head {
  align-items: center !important;
  padding: 22px 26px 18px !important;
  border-bottom: 1px solid #edf2f7 !important;
  background: #fff !important;
}

#webshop-view .webshop-policy-card .eyebrow {
  margin: 0 0 5px !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-policy-card h2 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 1.42rem !important;
  font-weight: 650 !important;
  line-height: 1.15 !important;
}

#webshop-view .webshop-policy-card #webshop-policy-close {
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #334155 !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  box-shadow: none !important;
}

#webshop-view .webshop-policy-content {
  display: grid !important;
  gap: 22px !important;
  max-height: min(62vh, 590px) !important;
  overflow-y: auto !important;
  padding: 24px 30px 30px !important;
  color: #334155 !important;
  font-size: 0.94rem !important;
  line-height: 1.68 !important;
}

#webshop-view .webshop-policy-lead {
  margin: 0 !important;
  max-width: 68ch !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 0.98rem !important;
  font-weight: 450 !important;
  line-height: 1.65 !important;
}

#webshop-view .webshop-policy-section {
  display: grid !important;
  gap: 8px !important;
  max-width: 72ch !important;
  padding-top: 0 !important;
}

#webshop-view .webshop-policy-content h3 {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

#webshop-view .webshop-policy-content p,
#webshop-view .webshop-policy-content ol,
#webshop-view .webshop-policy-content ul {
  margin: 0 !important;
}

#webshop-view .webshop-policy-content ol,
#webshop-view .webshop-policy-content ul {
  padding-left: 20px !important;
}

#webshop-view .webshop-policy-content li + li {
  margin-top: 6px !important;
}

#webshop-view .webshop-policy-table,
#webshop-view .webshop-policy-info-grid {
  display: grid !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 10px !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

#webshop-view .webshop-policy-table > div,
#webshop-view .webshop-policy-info-grid > div {
  display: grid !important;
  grid-template-columns: 180px minmax(0, 1fr) !important;
  gap: 14px !important;
  padding: 13px 16px !important;
  border-top: 1px solid #eef2f7 !important;
}

#webshop-view .webshop-policy-table > div:first-child,
#webshop-view .webshop-policy-info-grid > div:first-child {
  border-top: 0 !important;
}

#webshop-view .webshop-policy-table strong,
#webshop-view .webshop-policy-info-grid span {
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-policy-table span,
#webshop-view .webshop-policy-info-grid strong {
  color: #1f2937 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

#webshop-view .webshop-policy-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

#webshop-view .webshop-policy-info-grid > div {
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  border-top: 0 !important;
  border-left: 1px solid #e6edf5 !important;
}

#webshop-view .webshop-policy-info-grid > div:nth-child(odd) {
  border-left: 0 !important;
}

#webshop-view .webshop-policy-info-grid > div:nth-child(n + 3) {
  border-top: 1px solid #e6edf5 !important;
}

#webshop-view .webshop-policy-info-grid > div.is-wide {
  grid-column: 1 / -1 !important;
  border-left: 0 !important;
}

#webshop-view #webshop-status:empty {
  display: none !important;
}

@media (max-width: 820px) {
  #webshop-view .webshop-title-row,
  #webshop-view .webshop-shop-actions {
    align-items: stretch !important;
  }

  #webshop-view .webshop-shop-toolbar {
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-title-block p {
    white-space: normal !important;
  }

  #webshop-view .webshop-title-block h2 {
    white-space: normal !important;
  }

  #webshop-view .webshop-utility-row {
    justify-content: stretch !important;
    margin-top: -6px !important;
  }

  #webshop-view .webshop-utility-row .button {
    width: 100% !important;
  }

  #webshop-view .webshop-shop-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  #webshop-view .webshop-cart-button {
    min-width: 112px !important;
  }

  #webshop-view .webshop-store-footer {
    margin-right: -12px !important;
    margin-left: -12px !important;
    padding: 54px 24px 28px !important;
  }

  #webshop-view .webshop-store-footer-bottom {
    display: grid !important;
    justify-content: start !important;
  }

  #webshop-view .webshop-store-footer-links {
    justify-content: flex-start !important;
  }
}

@media (max-width: 520px) {
  #webshop-view .webshop-title-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #webshop-view .webshop-cart-button,
  #webshop-view .webshop-shop-actions .button {
    width: 100% !important;
  }
}

/* TSGG shop refinements: basket summary, product quantities, placeholders, history density */
#webshop-view .webshop-cart-button {
  display: grid !important;
  grid-template-columns: auto auto auto !important;
  min-width: 178px !important;
}

#webshop-view .webshop-cart-button small {
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

#webshop-view .webshop-cart-button.has-items {
  border-color: #0ea5b7 !important;
  background: #0f172a !important;
}

#webshop-view .webshop-products-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 32px 18px !important;
  padding: 0 8px 30px !important;
}

@media (max-width: 1500px) {
  #webshop-view .webshop-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #webshop-view .webshop-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 800px) {
  #webshop-view .webshop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  #webshop-view .webshop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 14px !important;
  }
}

#webshop-view .webshop-product-card {
  display: grid !important;
  grid-template-rows: auto minmax(46px, auto) auto minmax(24px, auto) auto !important;
  gap: 7px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webshop-view .webshop-product-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

#webshop-view .webshop-product-card .webshop-image-wrap {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #edf0f1 !important;
  border-radius: 12px !important;
  background: #fff !important;
  overflow: hidden !important;
  grid-row: 1 !important;
}

#webshop-view .webshop-product-card .webshop-product-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 0 !important;
}

#webshop-view .webshop-product-title {
  grid-row: 2 !important;
  align-self: start !important;
  margin: 0 !important;
  color: #111 !important;
  font-size: 0.8rem !important;
  font-weight: 750 !important;
  line-height: 1.22 !important;
}

#webshop-view .webshop-product-card .webshop-product-meta,
#webshop-view .webshop-product-card .webshop-product-vendor,
#webshop-view .webshop-product-card .webshop-product-article {
  grid-row: 2 !important;
  min-height: 18px !important;
  color: #6b7280 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-product-card .webshop-product-vendor {
  display: none !important;
}

#webshop-view .webshop-product-price {
  grid-row: 4 !important;
  align-self: center !important;
  margin: 0 !important;
  color: #111 !important;
  font-size: 1.12rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

#webshop-view .webshop-card-actions {
  grid-row: 5 !important;
  display: grid !important;
  grid-template-columns: 88px 1fr !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 0 !important;
}

#webshop-view .webshop-product-outgoing {
  grid-row: 3 !important;
  align-self: center !important;
  width: fit-content !important;
  min-height: 0 !important;
}

#webshop-view .webshop-product-card:not(:has(.webshop-product-vendor)) .webshop-product-title {
  grid-row: 2 !important;
}

#webshop-view .webshop-product-card:not(:has(.webshop-product-outgoing)) .webshop-product-price {
  grid-row: 4 !important;
}

#webshop-view .webshop-card-quantity {
  width: 98px !important;
  min-height: 36px !important;
  justify-self: start !important;
  border-color: #c6dce2 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

#webshop-view .webshop-card-actions > button[data-webshop-add] {
  grid-column: 1 / -1 !important;
  min-height: 36px !important;
  border: 1px solid #3e8ba4 !important;
  border-radius: 10px !important;
  background: #3e8ba4 !important;
  color: #fff !important;
  font-size: 0.98rem !important;
  font-weight: 500 !important;
}

#webshop-view .webshop-card-actions > button[data-webshop-add]:hover {
  background: #32758b !important;
  color: #fff !important;
}

#webshop-product-detail .webshop-detail-cart {
  border: 1px solid #3e8ba4 !important;
  border-radius: 10px !important;
  background: #3e8ba4 !important;
  color: #fff !important;
}

#webshop-product-detail .webshop-detail-cart:hover {
  border-color: #32758b !important;
  background: #32758b !important;
  color: #fff !important;
}

/* The customer account is a separate destination inside the Shop view. */
.shop-customer-authenticated:not(.shop-admin-mode) #shop-logout-btn {
  display: none !important;
}

#shop-account-btn {
  max-width: min(30vw, 270px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.shop-company-switch:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #425463;
  font-size: 0.75rem;
  font-weight: 750;
}

.shop-company-switch select {
  max-width: 220px;
  min-height: 36px;
  padding: 5px 28px 5px 9px;
  border: 1px solid #bdd6df;
  border-radius: 8px;
  background: #f2fafb;
  color: #1d4e61;
  font: inherit;
}

.shop-company-switch small { color: #9b3131; }

#webshop-view .webshop-shell.is-account .webshop-head,
#webshop-view .webshop-shell.is-account #webshop-collection-filter,
#webshop-view .webshop-shell.is-account #webshop-status,
#webshop-view .webshop-shell.is-account #webshop-products,
#webshop-view .webshop-shell.is-account .webshop-store-footer,
#webshop-view .webshop-shell.is-account #webshop-cart-drawer,
#webshop-view .webshop-shell.is-account #webshop-checkout {
  display: none !important;
}

#webshop-account[hidden],
#webshop-account [data-webshop-account-panel][hidden],
#webshop-account-address-form[hidden] {
  display: none !important;
}

#webshop-view .webshop-shell.is-account {
  padding: 28px 32px 64px !important;
}

#webshop-account {
  display: grid;
  grid-template-columns: minmax(225px, 270px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 42px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

#webshop-account .webshop-account-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 18px;
  border: 1px solid #e2e8ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 48, 63, 0.06);
}

#webshop-account .webshop-account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 4px 18px;
  border-bottom: 1px solid #edf1f2;
}

#webshop-account .webshop-account-avatar {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #3e8ba4;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

#webshop-account .webshop-account-identity strong,
#webshop-account .webshop-account-identity small {
  display: block;
  overflow-wrap: anywhere;
}

#webshop-account .webshop-account-identity strong {
  color: #182b37;
  font-size: 0.95rem;
}

#webshop-account .webshop-account-identity small {
  margin-top: 3px;
  color: #667784;
  font-size: 0.72rem;
}

#webshop-account .webshop-account-nav,
#webshop-account .webshop-account-sidebar-foot {
  display: grid;
  gap: 5px;
}

#webshop-account .webshop-account-sidebar-foot {
  padding-top: 14px;
  border-top: 1px solid #edf1f2;
}

#webshop-account .webshop-account-nav button,
#webshop-account .webshop-account-sidebar-foot button {
  width: 100%;
  min-height: 43px;
  padding: 10px 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #425463;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

#webshop-account .webshop-account-nav button:hover,
#webshop-account .webshop-account-sidebar-foot button:hover {
  background: #f1f8fa;
  color: #246d83;
}

#webshop-account .webshop-account-nav button[aria-current="page"] {
  background: #e7f4f7;
  color: #176b87;
  font-weight: 900;
  box-shadow: inset 3px 0 #3e8ba4;
}

#webshop-account .webshop-account-nav button[hidden] { display: none !important; }
.shop-customer-shipping-form { display: grid; gap: 18px; max-width: 740px; margin-top: 18px; }
.shop-customer-shipping-toggle { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.shop-customer-shipping-toggle { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 750; }

#tsgg-back-account:not([hidden]) { display: inline-flex; margin: 0 0 14px; }
#tsgg-back-account[hidden] { display: none !important; }

#webshop-account .webshop-account-main {
  min-width: 0;
}

#webshop-account .webshop-account-order-confirmation {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid #a9d5cf;
  border-radius: 10px;
  background: #eff9f7;
  color: #173e50;
}

#webshop-account .webshop-account-order-confirmation[hidden] {
  display: none !important;
}

#webshop-account .webshop-account-heading {
  margin: 0 0 18px;
  padding: 16px 22px;
  border: 1px solid #dce7eb;
  border-radius: 18px;
  background: linear-gradient(110deg, #f2fafb, #fff 68%);
}

#webshop-account .webshop-account-heading h2 {
  margin: 4px 0 2px;
  color: #192d39;
  font-size: clamp(1.35rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none !important;
}

#webshop-account .webshop-account-heading .webshop-kicker {
  color: #3e8ba4 !important;
}

#webshop-account .webshop-account-heading p {
  margin: 0;
  color: #60717e;
  font-size: 0.91rem;
}

#webshop-account .webshop-account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

#webshop-account .webshop-account-stats > div,
#webshop-account .webshop-account-facts > div {
  display: grid;
  gap: 7px;
  padding: 17px 18px;
  border: 1px solid #e2e9ec;
  border-radius: 13px;
  background: #fff;
}

#webshop-account .webshop-account-stats span,
#webshop-account .webshop-account-facts span {
  color: #687985;
  font-size: 0.75rem;
  font-weight: 750;
}

#webshop-account .webshop-account-stats strong {
  color: #1d3543;
  font-size: 1.35rem;
}

#webshop-account .webshop-account-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 13px;
}

#webshop-account .webshop-account-section-head h3 {
  width: 100%;
  margin: 0;
  color: #203845;
  font-size: 1.1rem;
}

#webshop-account .webshop-account-section-head p {
  margin: 0;
  color: #657682;
  font-size: 0.83rem;
}

#webshop-account .webshop-account-status-list,
#webshop-account .webshop-account-address-list,
#webshop-account .webshop-account-favorite-list,
#webshop-account .webshop-account-facts {
  display: grid;
  gap: 12px;
}

#webshop-account .webshop-account-status-card,
#webshop-account .webshop-account-address-card,
#webshop-account .webshop-account-empty,
#webshop-account .webshop-account-address-form {
  padding: 18px 20px;
  border: 1px solid #e2e9ec;
  border-radius: 14px;
  background: #fff;
}

#webshop-account .webshop-account-status-top,
#webshop-account .webshop-account-status-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#webshop-account .webshop-account-status-top > div {
  display: grid;
  gap: 3px;
}

#webshop-account .webshop-account-status-top strong {
  color: #203845;
  font-size: 0.95rem;
}

#webshop-account .webshop-account-status-top small,
#webshop-account .webshop-account-status-foot span,
#webshop-account .webshop-account-address-card small {
  color: #657682;
  font-size: 0.76rem;
}

#webshop-account .webshop-account-status-products {
  display: grid;
  gap: 9px;
  margin: 15px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f7fafb;
}

#webshop-account .webshop-account-status-foot {
  padding-top: 10px;
  border-top: 1px solid #edf1f2;
}

#webshop-account .webshop-account-status-foot button,
#webshop-account .webshop-account-section-head button,
#webshop-account .webshop-account-address-card button,
#webshop-account .webshop-account-empty button {
  padding: 7px 11px;
  border: 1px solid #b8d4dd;
  border-radius: 8px;
  background: #eff8fa;
  color: #176b87;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

#webshop-account .webshop-account-empty h3 {
  margin: 0 0 4px;
}

#webshop-account .webshop-account-empty p {
  margin: 0 0 14px;
  color: #657682;
}

#webshop-account .webshop-account-address-card strong,
#webshop-account .webshop-account-address-card small {
  display: block;
}

#webshop-account .webshop-account-address-card p {
  margin: 8px 0;
  color: #354958;
  font-size: 0.84rem;
  line-height: 1.5;
}

#webshop-account .webshop-account-address-card > div {
  display: flex;
  gap: 8px;
  margin-top: 13px;
}

#webshop-account .webshop-account-address-card button[data-webshop-address-delete] {
  border-color: #e5ccd0;
  background: #fff7f7;
  color: #9a3542;
}

#webshop-account .webshop-account-address-form {
  margin-top: 16px;
}

#webshop-account .webshop-account-address-form h3 {
  margin: 0 0 16px;
}

#webshop-account .webshop-account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#webshop-account .webshop-account-form-grid label {
  display: grid;
  gap: 5px;
  color: #475b68;
  font-size: 0.78rem;
  font-weight: 750;
}

#webshop-account .webshop-account-form-grid input,
#webshop-account .webshop-account-form-grid select {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #cddce2;
  border-radius: 8px;
  background: #fff;
  color: #203845;
}

#webshop-account .webshop-account-form-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

#webshop-account .webshop-account-favorite-list > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e9ec;
  border-radius: 12px;
  background: #fff;
  color: #203845;
  text-align: left;
  cursor: pointer;
}

#webshop-account .webshop-account-favorite-list img,
#webshop-account .webshop-account-favorite-placeholder {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 7px;
  background: #f5f7f8;
}

#webshop-account .webshop-account-favorite-list strong,
#webshop-account .webshop-account-favorite-list small {
  display: block;
}

#webshop-account .webshop-account-favorite-list > button > span:last-child {
  margin-left: auto;
  color: #176b87;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

#webshop-account .webshop-account-facts strong {
  color: #203845;
  overflow-wrap: anywhere;
}

#webshop-account .webshop-account-facts small {
  color: #657682;
}

#webshop-account .webshop-account-users-section { margin-top: 24px; }
#webshop-account .webshop-account-user-list { display: grid; gap: 8px; }
#webshop-account .webshop-account-user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e9ec;
  border-radius: 12px;
  background: #fff;
  color: #425463;
  font-size: 0.83rem;
}
#webshop-account .webshop-account-user-row strong,
#webshop-account .webshop-account-user-row small { display: block; }
#webshop-account .webshop-account-user-row strong { color: #203845; }
#webshop-account .webshop-account-user-row small { color: #657682; }
#webshop-account .webshop-account-user-access,
#webshop-account .webshop-account-user-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
#webshop-account .webshop-account-user-access label { display: grid; gap: 4px; font-size: 0.75rem; }
#webshop-account .webshop-account-user-access select { min-height: 36px; padding: 6px 8px; border: 1px solid #bacbd2; border-radius: 6px; background: #fff; color: #203845; }
#webshop-account .webshop-account-user-actions button,
#webshop-account .webshop-account-invitation button { padding: 8px 10px; border: 1px solid #bacbd2; border-radius: 6px; background: #fff; color: #176078; cursor: pointer; }
#webshop-account .webshop-account-user-actions button:disabled,
#webshop-account .webshop-account-invitation button:disabled { opacity: 0.6; cursor: wait; }
#webshop-account-users-status { overflow-wrap: anywhere; color: #203845; }
#webshop-account .webshop-account-invitation { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e9ec; }
#webshop-account .webshop-account-invitation strong,
#webshop-account .webshop-account-invitation small { display: block; overflow-wrap: anywhere; }
#webshop-account .webshop-account-invitation small { color: #425463; }
#webshop-account .webshop-order-buyer { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0; color: #425463; font-size: 0.8rem; overflow-wrap: anywhere; }
#webshop-account .webshop-account-invitations { margin: 18px 0; }
#webshop-account .webshop-account-invitations h4 { margin: 0 0 6px; }
#webshop-account .webshop-account-invitations p { margin: 4px 0; }
#webshop-account #webshop-account-invite-form { margin-top: 18px; }
#webshop-account #webshop-account-invite-status { overflow-wrap: anywhere; }

#webshop-account #webshop-account-address-message:not(:empty),
#webshop-account #webshop-account-address-status:not(:empty) {
  color: #176b87;
  font-size: 0.8rem;
}

@media (max-width: 850px) {
  #webshop-view .webshop-shell.is-account { padding: 16px 18px 42px !important; }
  #webshop-account { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #webshop-account .webshop-account-sidebar { position: static; padding: 16px; }
  #webshop-account .webshop-account-identity { padding-bottom: 12px; }
  #webshop-account .webshop-account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #webshop-account .webshop-account-sidebar-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  #webshop-account .webshop-account-user-row { align-items: stretch; flex-direction: column; }
  #webshop-account .webshop-account-invitation { align-items: start; flex-direction: column; }
  .shop-company-switch:not([hidden]) { width: 100%; justify-content: space-between; }
  .shop-company-switch select { max-width: min(60vw, 220px); }
  #shop-account-btn { max-width: 145px; }
  #webshop-account .webshop-account-heading { padding: 14px 16px; }
  #webshop-account .webshop-account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #webshop-account .webshop-account-stats > div:last-child { grid-column: 1 / -1; }
  #webshop-account .webshop-account-form-grid { grid-template-columns: minmax(0, 1fr); }
  #webshop-account .webshop-account-status-top { align-items: start; }
}

#webshop-product-detail .webshop-detail-favorite {
  grid-column: 2 !important;
  justify-self: start !important;
  padding: 5px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #276b81 !important;
  font-size: 0.83rem !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
}

#webshop-product-detail .webshop-detail-favorite[aria-pressed="true"] {
  color: #276b81 !important;
}

#webshop-product-detail .webshop-detail-favorite:disabled {
  opacity: 0.6 !important;
  cursor: wait !important;
}

/* Account requests are grouped by decision and show email delivery clearly. */
#shop-application-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border-radius: 16px;
}

#shop-application-dialog .pod-dialog-card {
  gap: 16px;
  padding: 24px;
  background: #fff;
}

#shop-application-dialog .shop-auth-kicker {
  color: #32758b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

#shop-application-dialog .pod-dialog-head h2 {
  margin-top: 6px;
  color: #0f2243;
  font-size: 1.55rem;
}

#shop-application-dialog .shop-request-intro {
  margin: 6px 0 0;
  color: #52657a;
  font-size: 0.9rem;
}

#shop-application-dialog #shop-application-action-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

#shop-application-dialog #shop-application-action-status.is-success {
  color: #275f4b;
  background: #eaf5ef;
}

#shop-application-dialog #shop-application-action-status.is-error {
  color: #8b4239;
  background: #fbefed;
}

#shop-application-dialog .shop-request-table-wrap {
  max-height: min(68dvh, 660px);
  overflow: auto;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
}

#shop-application-dialog .shop-request-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

#shop-application-dialog .shop-request-table th,
#shop-application-dialog .shop-request-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #e4ebee;
  text-align: left;
  vertical-align: middle;
  font-size: 0.78rem;
}

#shop-application-dialog .shop-request-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef5f7;
  color: #385467;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#shop-application-dialog .shop-request-table tbody tr:nth-child(even) {
  background: #f8fafb;
}

#shop-application-dialog .shop-request-table tbody tr.is-pending {
  background: #f3fafc;
}

#shop-application-dialog .shop-request-table td strong {
  color: #0f2243;
}

#shop-application-dialog .shop-request-table td small {
  display: block;
  margin-top: 2px;
  color: #52657a;
  font-size: 0.73rem;
}

#shop-application-dialog .shop-request-table a {
  color: #32758b;
  overflow-wrap: anywhere;
}

#shop-application-dialog .shop-request-table time {
  white-space: nowrap;
}

#shop-application-dialog .shop-request-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf1f3;
  color: #52657a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#shop-application-dialog .shop-request-status.is-pending {
  background: #e4f3f6;
  color: #276b81;
}

#shop-application-dialog .shop-request-mails {
  display: grid;
  gap: 3px;
  color: #52657a;
  font-size: 0.73rem;
}

#shop-application-dialog .shop-request-mail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

#shop-application-dialog .shop-request-mail-sent { color: #275f4b; }
#shop-application-dialog .shop-request-mail-failed { color: #8b4239; }
#shop-application-dialog .shop-request-mail-sending { color: #276b81; }

#shop-application-dialog .shop-request-mail button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #276b81;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

#shop-application-dialog .shop-request-actions {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

#shop-application-dialog .shop-request-actions .button {
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.72rem;
}

#shop-application-dialog .shop-request-empty {
  padding: 24px 12px;
  color: #52657a;
  text-align: center;
}

@media (max-width: 620px) {
  #shop-application-dialog .pod-dialog-card { padding: 18px; }
}

/* Shop sign-in and account request share one compact dialog. */
#shop-auth-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 0;
  border-radius: 16px;
}

#shop-auth-dialog .pod-dialog-card {
  display: block;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #d8e3e5 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 24px 72px rgba(15, 34, 67, 0.2) !important;
}

#shop-auth-dialog .pod-dialog-head {
  align-items: flex-start;
  gap: 16px;
  padding: 28px 28px 18px;
  border: 0 !important;
  background: #fff !important;
}

#shop-auth-dialog .shop-auth-kicker {
  display: block;
  margin-bottom: 10px;
  color: #32758b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

#shop-auth-dialog #shop-auth-title {
  margin: 0;
  color: #0f2243;
  font-size: 1.65rem;
  font-weight: 750;
  line-height: 1.15;
}

#shop-auth-dialog #shop-auth-description {
  margin: 8px 0 0;
  color: #52657a;
  font-size: 0.88rem;
  line-height: 1.5;
}

#shop-auth-dialog #shop-auth-cancel {
  flex: 0 0 36px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #d8e3e5 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #385063 !important;
  font-size: 1.35rem;
  line-height: 1;
}

#shop-auth-dialog #shop-auth-cancel:hover {
  border-color: #84bbc7 !important;
  background: #f3fafb !important;
  color: #0f2243 !important;
}

#shop-auth-dialog .shop-auth-content {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 28px 28px;
  max-height: none;
  overflow: visible;
}

#shop-auth-application-fields {
  display: grid;
  gap: 14px;
}

#shop-auth-application-fields[hidden],
#shop-auth-password-field[hidden],
#shop-auth-code-field[hidden],
#shop-auth-alternatives[hidden],
#shop-auth-demo[hidden],
#shop-auth-status[hidden] {
  display: none !important;
}

#shop-auth-dialog .admin-login-field {
  gap: 7px;
}

#shop-auth-dialog .admin-login-field > span {
  color: #21394f;
  font-size: 0.78rem;
  font-weight: 700;
}

#shop-auth-dialog .admin-login-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cbd9df !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #0f2243 !important;
  font-size: 0.91rem;
  box-shadow: none !important;
}

#shop-auth-dialog .admin-login-field input:focus-visible {
  border-color: #32758b !important;
  outline: 2px solid #32758b !important;
  outline-offset: 2px;
}

#shop-auth-dialog .shop-code-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

#shop-auth-dialog .shop-code-boxes input {
  min-width: 0;
  height: 52px;
  padding: 0 !important;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#shop-auth-status {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #d8e3e5;
  border-radius: 9px;
  background: #f4f8f9;
  color: #274057;
  font-size: 0.82rem;
  line-height: 1.45;
}

#shop-auth-status.success {
  border-color: #a9d5ca;
  background: #eff9f5;
  color: #145947;
}

#shop-auth-status.error {
  border-color: #e8b9b5;
  background: #fff5f4;
  color: #8c2923;
}

#shop-auth-dialog .shop-auth-main-actions {
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

#shop-auth-dialog #shop-auth-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid #3e8ba4 !important;
  border-radius: 9px !important;
  background: #3e8ba4 !important;
  color: #fff !important;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

#shop-auth-dialog #shop-auth-submit:hover {
  border-color: #32758b !important;
  background: #32758b !important;
}

#shop-auth-dialog #shop-auth-switch-mode {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: #276b81;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

#shop-auth-dialog #shop-auth-switch-mode:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#shop-auth-dialog .shop-auth-alternatives {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

#shop-auth-dialog .shop-auth-alternatives button {
  min-height: 30px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #276b81;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

#shop-auth-dialog .shop-auth-alternatives button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#shop-auth-dialog .shop-auth-demo {
  padding-top: 16px;
  border-top: 1px solid #e1e8ec;
}

#shop-auth-dialog .shop-auth-demo summary {
  color: #52657a;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
}

#shop-auth-dialog .shop-auth-demo > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#shop-auth-dialog .shop-auth-demo .button {
  min-height: 40px;
  padding: 8px;
  border: 1px solid #d8e3e5 !important;
  border-radius: 8px !important;
  background: #f6fafb !important;
  color: #2b6073 !important;
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: normal;
}

#shop-auth-dialog .shop-auth-demo .button:hover {
  border-color: #84bbc7 !important;
  background: #eaf5f7 !important;
}

@media (max-width: 520px) {
  #shop-auth-dialog .pod-dialog-head {
    padding: 22px 20px 18px;
  }

  #shop-auth-dialog .shop-auth-content {
    padding: 0 20px 22px;
  }

  #shop-auth-dialog #shop-auth-title {
    font-size: 1.45rem;
  }

  #shop-auth-dialog .shop-auth-demo > div {
    grid-template-columns: 1fr;
  }
}

/* Keep a cart product readable before showing quantity and line total. */
#webshop-view #webshop-cart-drawer {
  right: 16px !important;
  width: min(420px, calc(100vw - 32px)) !important;
  border-radius: 14px !important;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line {
  grid-template-columns: 52px minmax(0, 1fr) max-content !important;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 10px 12px;
  padding: 16px 0;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line > img,
#webshop-view #webshop-cart-drawer .webshop-cart-line > .webshop-cart-image-placeholder {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line > .webshop-cart-image-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid #d8e3e5;
  border-radius: 7px;
  background: #f4f8f9;
  color: #667b87;
  font-size: 0.6rem;
  text-align: center;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line > div:first-of-type {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  line-height: 1.35;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line > .webshop-cart-quantity {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line > b {
  grid-column: 3;
  grid-row: 2;
  align-self: center;
  white-space: nowrap;
}

#webshop-view #webshop-cart-drawer .webshop-cart-line > .webshop-cart-remove {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

@media (max-width: 520px) {
  #webshop-view #webshop-cart-drawer {
    width: calc(100% - 32px) !important;
  }
}

.webshop-order-product-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.webshop-order-product-identity > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.webshop-order-product-identity strong {
  color: #0f2243;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.webshop-order-product-identity small,
.webshop-order-product-line small {
  display: block;
  color: #53657c;
  font-size: 0.74rem;
  line-height: 1.3;
}

.webshop-order-line-image.is-placeholder {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  color: #53657c;
  background: #f1f6f8;
  font-size: 1.2rem;
}

#webshop-view .webshop-customer-orders {
  display: grid;
  gap: 10px;
}

#webshop-view .webshop-customer-order-card {
  overflow: hidden;
  border: 1px solid #d9e2e5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 34, 67, 0.05);
}

#webshop-view .webshop-customer-order-card.is-current {
  border-color: #3e8ba4;
}

#webshop-view .webshop-customer-order-card > summary {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(220px, 2fr) minmax(115px, 0.8fr) minmax(160px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

#webshop-view .webshop-customer-order-card > summary::-webkit-details-marker {
  display: none;
}

#webshop-view .webshop-customer-order-card > summary:hover {
  background: #f5fafb;
}

#webshop-view .webshop-customer-order-card > summary:focus-visible {
  outline: 3px solid #176b87;
  outline-offset: -3px;
}

#webshop-view .webshop-customer-order-card[open] > summary {
  border-bottom: 1px solid #d9e2e5;
  background: #f5fafb;
}

#webshop-view .webshop-customer-order-card > summary > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#webshop-view .webshop-customer-order-heading strong,
#webshop-view .webshop-customer-order-total strong {
  color: #0f2243;
  font-size: 0.94rem;
}

#webshop-view .webshop-customer-order-preview strong {
  color: #0f2243;
  font-size: 0.82rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#webshop-view .webshop-customer-order-card summary small {
  color: #53657c;
  font-size: 0.72rem;
}

#webshop-view .webshop-customer-order-status small {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#webshop-view .webshop-customer-order-status .when-open,
#webshop-view .webshop-customer-order-card[open] .when-closed {
  display: none;
}

#webshop-view .webshop-customer-order-card[open] .when-open {
  display: block;
}

#webshop-view .webshop-customer-order-detail {
  padding: 16px 18px 18px;
}

#webshop-view .webshop-customer-order-detail h4 {
  margin: 0 0 12px;
  color: #0f2243;
  font-size: 0.9rem;
}

#webshop-view .webshop-customer-order-products {
  border: 1px solid #e1e8ec;
  border-radius: 9px;
  overflow: hidden;
}

#webshop-view .webshop-customer-order-product {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(80px, 0.6fr));
  align-items: center;
  gap: 12px;
  padding: 12px;
}

#webshop-view .webshop-customer-order-product + .webshop-customer-order-product {
  border-top: 1px solid #e1e8ec;
}

#webshop-view .webshop-customer-order-product > div:not(:first-child) {
  display: grid;
  gap: 3px;
}

#webshop-view .webshop-customer-order-product > div:not(:first-child) span {
  color: #53657c;
  font-size: 0.7rem;
}

#webshop-view .webshop-customer-order-product > div:not(:first-child) strong {
  color: #0f2243;
  font-size: 0.82rem;
}

#webshop-view .webshop-customer-order-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: #53657c;
  font-size: 0.78rem;
}

#webshop-view .webshop-customer-order-foot strong {
  color: #0f2243;
}

.shop-customer-order-products {
  min-width: 190px;
  max-width: 280px;
}

.shop-customer-orders-table {
  table-layout: fixed;
  min-width: 850px;
}

.shop-customer-orders-table th:nth-child(1) { width: 17%; }
.shop-customer-orders-table th:nth-child(2) { width: 25%; }
.shop-customer-orders-table th:nth-child(3) { width: 20%; }
.shop-customer-orders-table th:nth-child(4) { width: 14%; }
.shop-customer-orders-table th:nth-child(5) { width: 11%; }
.shop-customer-orders-table th:nth-child(6) { width: 13%; }

.shop-customer-orders-table td {
  overflow-wrap: anywhere;
}

.shop-customer-order-products summary {
  cursor: pointer;
  color: #0f2243;
}

.shop-customer-order-products summary strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}

.shop-customer-order-products summary small {
  color: #53657c;
  font-size: 0.72rem;
}

.shop-customer-order-products ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e1e8ec;
  border-radius: 8px;
  background: #f8fbfc;
}

.shop-customer-order-products li {
  padding: 8px 10px;
  font-size: 0.78rem;
}

.shop-customer-order-products li + li {
  border-top: 1px solid #e1e8ec;
}

@media (max-width: 900px) {
  #webshop-view .webshop-customer-order-card > summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  #webshop-view .webshop-customer-order-card > summary {
    gap: 10px;
    padding: 14px;
  }

  #webshop-view .webshop-customer-order-preview,
  #webshop-view .webshop-customer-order-status {
    grid-column: 1 / -1;
  }

  #webshop-view .webshop-customer-order-product {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #webshop-view .webshop-customer-order-product .webshop-order-product-identity {
    grid-column: 1 / -1;
  }
}

/* Send to Blikk popup: wider, taller, and scrolls inside the dialog. */
#webshop-send-blikk-dialog {
  width: min(1380px, calc(100vw - 28px)) !important;
  max-width: none !important;
}

#webshop-send-blikk-dialog .webshop-send-blikk-card {
  width: min(1380px, calc(100vw - 28px)) !important;
  max-width: none !important;
  max-height: calc(100vh - 28px) !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  gap: 12px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  padding: 16px !important;
  border-radius: 12px !important;
}

#webshop-send-blikk-dialog .pod-dialog-head {
  align-items: center !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #e5edf4 !important;
}

#webshop-send-blikk-dialog .pod-dialog-panel {
  min-height: 0 !important;
  padding: 12px !important;
  border-radius: 10px !important;
}

#webshop-send-blikk-dialog .pod-dialog-panel:nth-of-type(1) {
  overflow: auto !important;
}

#webshop-send-blikk-dialog .pod-dialog-content {
  max-height: none !important;
  overflow: visible !important;
}

#webshop-send-blikk-dialog .webshop-send-blikk-summary-head {
  grid-template-columns: 1fr 1.3fr 0.75fr !important;
}

#webshop-send-blikk-dialog .webshop-send-blikk-products {
  max-height: min(48vh, 520px) !important;
  overflow: auto !important;
}

#webshop-send-blikk-dialog .webshop-send-blikk-products table {
  min-width: 760px !important;
}

#webshop-send-blikk-dialog .webshop-send-blikk-fields {
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
}

#webshop-send-blikk-dialog .status-email-actions {
  justify-content: flex-end !important;
}

@media (max-width: 760px) {
  #webshop-send-blikk-dialog,
  #webshop-send-blikk-dialog .webshop-send-blikk-card {
    width: min(100vw - 12px, 720px) !important;
    max-height: calc(100vh - 12px) !important;
  }

  #webshop-send-blikk-dialog .webshop-send-blikk-summary-head,
  #webshop-send-blikk-dialog .webshop-send-blikk-fields {
    grid-template-columns: 1fr !important;
  }
}

#webshop-products-view .webshop-admin-priority {
  color: #0f7f90 !important;
  font-weight: 800 !important;
}

/* Settings category navigation */
#settings-view .settings-side-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
}

#settings-view .settings-menu-link {
  width: auto;
  min-height: 32px;
  padding: 7px 11px !important;
}

/* Final Article Fortnox dirty-save override */
#fortnox-articles-view #fortnox-save-article-changes.has-unsaved-changes {
  border-color: #b45309 !important;
  background: #f59e0b !important;
  color: #1f1300 !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22) !important;
}

#fortnox-articles-view #fortnox-save-article-changes.has-unsaved-changes:hover {
  border-color: #92400e !important;
  background: #d97706 !important;
  color: #fff !important;
}

/* Compact operational controls outside the Effektgruppen Shop storefront. */
#shipments-view .toolbar .button,
#archived-view .toolbar .button,
#flow-view .toolbar .button,
#flow-view .flow-search .button,
#report-view .toolbar .button,
#book-freight-view .freight-booking-search .button,
#tsgg-view .toolbar .button,
#tsgg-view .shipment-filter-panel .button,
#admin-view .button,
#webshop-orders-view .toolbar .button,
#webshop-products-view .button {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
}

#shipments-view .shipment-filter-panel .button,
#shipments-view .shipment-clear-filter-button,
#shipments-view .shipment-refresh-button,
#tsgg-view .shipment-filter-panel .button,
#tsgg-view .shipment-clear-filter-button {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

#shipments-view .toolbar input,
#shipments-view .toolbar select,
#shipments-view .shipment-filter-panel input,
#shipments-view .shipment-filter-panel select,
#archived-view .toolbar input,
#archived-view .toolbar select,
#flow-view .flow-search input,
#flow-view .flow-toolbar input,
#flow-view .flow-toolbar select,
#report-view .flow-toolbar input,
#report-view .flow-toolbar select,
#book-freight-view .freight-booking-search input,
#tsgg-view .shipment-filter-panel input,
#tsgg-view .shipment-filter-panel select,
#admin-view input:not([type="checkbox"]),
#admin-view select,
#webshop-orders-view input,
#webshop-orders-view select,
#webshop-products-view input:not([type="checkbox"]):not([type="number"]),
#webshop-products-view select {
  min-height: 30px !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  border-radius: 7px !important;
  font-size: 0.76rem !important;
}

#shipments-view .shipment-filter-panel,
#tsgg-view .shipment-filter-panel {
  gap: 8px !important;
  padding-top: 12px !important;
  padding-bottom: 10px !important;
}

#flow-view .flow-search,
#flow-view .flow-toolbar,
#report-view .flow-toolbar,
#book-freight-view .freight-booking-search,
#webshop-orders-view .webshop-orders-controls {
  gap: 7px !important;
}

#flow-view .flow-search label,
#flow-view .flow-toolbar label,
#report-view .flow-toolbar label,
#book-freight-view .freight-booking-search label,
#webshop-orders-view .webshop-orders-search,
#admin-view .admin-user-form label:not(.admin-permission-item),
#admin-view .admin-users-page-size {
  gap: 4px !important;
  font-size: 0.72rem !important;
}

#admin-view .admin-permission-item,
#admin-view .admin-users-page-size {
  min-height: 28px !important;
  padding: 4px 8px !important;
  border-radius: 7px !important;
  font-size: 0.74rem !important;
}

/* Product popup sizing polish */
#webshop-product-detail .webshop-detail-grid {
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr) !important;
}

#webshop-product-detail .webshop-detail-copy {
  gap: 11px !important;
}

#webshop-product-detail .webshop-detail-description {
  max-width: 100% !important;
  min-height: 36% !important;
  max-height: min(48vh, 520px) !important;
  overflow-y: auto !important;
  padding: 17px 18px !important;
  font-size: 1.02rem !important;
  line-height: 1.58 !important;
}

#webshop-product-detail .webshop-detail-actions {
  display: grid !important;
  grid-template-columns: 112px minmax(180px, 280px) !important;
  gap: 12px !important;
  align-items: end !important;
  width: 100% !important;
  max-width: 100% !important;
}

#webshop-product-detail .webshop-detail-actions .webshop-quantity-control {
  align-self: end !important;
  margin: 0 !important;
}

#webshop-product-detail .webshop-detail-media,
#webshop-product-detail .webshop-detail-main-image {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webshop-product-detail .webshop-detail-cart {
  min-height: 34px !important;
  padding: 7px 13px !important;
  font-size: 0.73rem !important;
  border-radius: 8px !important;
  align-self: end !important;
  width: 100% !important;
  max-width: 280px !important;
  min-width: 128px !important;
}

#webshop-view .webshop-collection-filter button.webshop-menu-link,
#webshop-view .webshop-collection-filter summary.webshop-main-menu-chip,
#webshop-view .webshop-collection-filter button.webshop-sub-menu-chip,
#webshop-view .webshop-collection-filter button.webshop-menu-link.is-active,
#webshop-view .webshop-collection-filter summary.webshop-main-menu-chip.is-active,
#webshop-view .webshop-collection-filter button.webshop-sub-menu-chip.is-active {
  font-weight: 500 !important;
}

/* Webshop product navigation */
#webshop-view .webshop-collection-filter {
  position: relative !important;
  z-index: 200 !important;
  display: block !important;
  overflow: visible !important;
  margin: 0 0 24px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

#webshop-view .webshop-menu-mobile-toggle {
  display: none !important;
}

#webshop-view .webshop-collection-filter-scroll {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

#webshop-view .webshop-menu-link,
#webshop-view .webshop-main-menu-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #1f2933 !important;
  cursor: pointer !important;
  font-size: 0.93rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

#webshop-view .webshop-menu-link.is-active,
#webshop-view .webshop-main-menu-chip.is-active,
#webshop-view .webshop-menu-group[open] > .webshop-main-menu-chip,
#webshop-view .webshop-sub-menu-list .webshop-sub-menu-chip.is-active {
  font-weight: 500 !important;
}

#webshop-view .webshop-menu-link:hover,
#webshop-view .webshop-menu-link.is-active,
#webshop-view .webshop-main-menu-chip:hover,
#webshop-view .webshop-main-menu-chip.is-active,
#webshop-view .webshop-menu-group[open] > .webshop-main-menu-chip {
  border-bottom-color: #111827 !important;
  color: #111827 !important;
}

#webshop-view .webshop-menu-group {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

#webshop-view .webshop-menu-group > summary {
  list-style: none !important;
}

#webshop-view .webshop-menu-group > summary::-webkit-details-marker {
  display: none !important;
}

#webshop-view .webshop-menu-caret {
  display: inline-block !important;
  color: #475569 !important;
  font-size: 0.98rem !important;
  line-height: 1 !important;
  transition: transform 170ms ease !important;
}

#webshop-view .webshop-menu-group[open] .webshop-menu-caret,
#webshop-view .webshop-menu-group:hover .webshop-menu-caret {
  transform: rotate(180deg) !important;
}

#webshop-view .webshop-sub-menu-list {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  z-index: 300 !important;
  display: grid !important;
  min-width: 210px !important;
  padding: 8px !important;
  border: 1px solid #dfe5ea !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-4px) !important;
  transition: opacity 170ms ease, transform 170ms ease !important;
}

#webshop-view .webshop-products-grid {
  position: relative !important;
  z-index: 1 !important;
}

#webshop-view .webshop-menu-group:hover .webshop-sub-menu-list,
#webshop-view .webshop-menu-group:focus-within .webshop-sub-menu-list,
#webshop-view .webshop-menu-group[open] .webshop-sub-menu-list {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

#webshop-view .webshop-sub-menu-list .webshop-sub-menu-chip {
  display: flex !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #1f2933 !important;
  cursor: pointer !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#webshop-view .webshop-sub-menu-list .webshop-sub-menu-chip:hover,
#webshop-view .webshop-sub-menu-list .webshop-sub-menu-chip.is-active {
  background: #f1f5f7 !important;
  color: #111827 !important;
}

@media (max-width: 760px) {
  #webshop-view .webshop-collection-filter {
    padding: 0 !important;
    border-bottom: 0 !important;
  }

  #webshop-view .webshop-menu-mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border: 1px solid #dfe5ea !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #111827 !important;
    cursor: pointer !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    text-align: left !important;
  }

  #webshop-view .webshop-menu-mobile-icon,
  #webshop-view .webshop-menu-mobile-icon::before,
  #webshop-view .webshop-menu-mobile-icon::after {
    display: block !important;
    width: 18px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #111827 !important;
    content: "" !important;
  }

  #webshop-view .webshop-menu-mobile-icon {
    position: relative !important;
  }

  #webshop-view .webshop-menu-mobile-icon::before {
    position: absolute !important;
    top: -6px !important;
    left: 0 !important;
  }

  #webshop-view .webshop-menu-mobile-icon::after {
    position: absolute !important;
    top: 6px !important;
    left: 0 !important;
  }

  #webshop-view .webshop-collection-filter-scroll {
    display: grid !important;
    gap: 0 !important;
    max-height: 0 !important;
    margin-top: 8px !important;
    overflow: hidden !important;
    border: 1px solid #dfe5ea !important;
    border-radius: 8px !important;
    background: #fff !important;
    opacity: 0 !important;
    transform: translateY(-4px) !important;
    transition: max-height 190ms ease, opacity 170ms ease, transform 170ms ease !important;
  }

  #webshop-view .webshop-collection-filter.is-mobile-open .webshop-collection-filter-scroll {
    max-height: 70vh !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  #webshop-view .webshop-menu-link,
  #webshop-view .webshop-main-menu-chip {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: space-between !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #eef2f5 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
  }

  #webshop-view .webshop-menu-group {
    display: grid !important;
    width: 100% !important;
  }

  #webshop-view .webshop-sub-menu-list {
    position: static !important;
    display: grid !important;
    min-width: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: max-height 190ms ease !important;
  }

  #webshop-view .webshop-menu-group[open] .webshop-sub-menu-list {
    max-height: 420px !important;
  }

  #webshop-view .webshop-sub-menu-list .webshop-sub-menu-chip {
    min-height: 42px !important;
    padding: 0 14px 0 30px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f1f5f7 !important;
    white-space: normal !important;
  }
}

#webshop-products-view .webshop-menu-manager {
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  border: 1px solid #d8e3e5 !important;
  border-radius: 8px !important;
  background: #fff !important;
}

#webshop-products-view .webshop-menu-manager-head,
#webshop-products-view .webshop-menu-column-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

#webshop-products-view .webshop-menu-manager h3,
#webshop-products-view .webshop-menu-manager h4,
#webshop-products-view .webshop-menu-manager p {
  margin: 0 !important;
}

#webshop-products-view .webshop-menu-manager p {
  color: #64748b !important;
  font-size: 0.72rem !important;
  line-height: 1.2 !important;
}

#webshop-products-view .webshop-menu-manager h3 {
  font-size: 0.95rem !important;
  line-height: 1.1 !important;
}

#webshop-products-view .webshop-menu-manager h4 {
  font-size: 0.82rem !important;
  line-height: 1.1 !important;
}

#webshop-products-view .webshop-menu-manager-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#webshop-products-view .webshop-menu-list {
  display: grid !important;
  gap: 5px !important;
}

#webshop-products-view .webshop-menu-row {
  display: grid !important;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.8fr) 84px auto auto !important;
  gap: 6px !important;
  align-items: center !important;
  padding: 5px 6px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
}

#webshop-products-view .webshop-menu-row[data-menu-kind="main"] {
  grid-template-columns: minmax(180px, 1fr) 84px auto auto !important;
}

#webshop-products-view .webshop-menu-row input,
#webshop-products-view .webshop-menu-row select {
  min-height: 30px !important;
  padding: 4px 8px !important;
  font-size: 0.76rem !important;
}

#webshop-products-view .webshop-menu-row .button,
#webshop-products-view .webshop-menu-column-head .button,
#webshop-products-view .webshop-menu-manager-head .button {
  min-height: 30px !important;
  padding: 0 9px !important;
  font-size: 0.72rem !important;
  border-radius: 6px !important;
}

#webshop-products-view .webshop-menu-row .webshop-check-field {
  min-height: 30px !important;
  padding: 4px 8px !important;
  font-size: 0.72rem !important;
}

#webshop-products-view .webshop-menu-row .webshop-check-field input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
}

#webshop-products-view .webshop-menu-field-pair {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: end !important;
}

#webshop-product-editor .webshop-variant-head .button,
#webshop-product-editor .settings-actions .button,
#webshop-product-editor-preview {
  width: auto !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  font-size: 0.74rem !important;
  font-weight: 850 !important;
}

#webshop-product-editor .settings-actions {
  gap: 7px !important;
  align-items: center !important;
}

@media (max-width: 980px) {
  #webshop-products-view .webshop-menu-manager-grid,
  #webshop-products-view .webshop-menu-row,
  #webshop-products-view .webshop-menu-row[data-menu-kind="main"] {
    grid-template-columns: 1fr !important;
  }

  #webshop-products-view .webshop-menu-field-pair {
    grid-template-columns: 1fr !important;
  }
}

#webshop-review-dialog #webshop-submit-order,
#webshop-review-dialog .webshop-review-dialog-actions .button.primary {
  border-color: #3e8ba4 !important;
  background: #3e8ba4 !important;
  color: #fff !important;
}

#webshop-review-dialog #webshop-submit-order:hover,
#webshop-review-dialog .webshop-review-dialog-actions .button.primary:hover {
  border-color: #32758b !important;
  background: #32758b !important;
  color: #fff !important;
}

#webshop-view .webshop-cart-button.is-bumped {
  animation: webshopBasketBump 0.42s ease;
}

/* Permission state must win over the highly specific shop theme rules above. */
#webshop-view .webshop-cart-button[hidden],
#webshop-view .webshop-cart-drawer[hidden] {
  display: none !important;
}

/* Checkout is scrolled into view; reserve space for the sticky customer header. */
#webshop-view #webshop-checkout {
  scroll-margin-top: 86px;
}

@keyframes webshopBasketBump {
  0% { transform: scale(1); }
  45% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

#webshop-view .webshop-active-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0 2px 8px !important;
}

#webshop-view .webshop-active-filter span {
  color: #0f172a !important;
  font-size: 0.8rem !important;
  font-weight: 900 !important;
}

#webshop-view .webshop-active-filter button {
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #bfd7df !important;
  border-radius: 999px !important;
  background: #eef8fb !important;
  color: #176b87 !important;
  font-size: 0.76rem !important;
  font-weight: 900 !important;
}

#webshop-view .webshop-product-card .webshop-image-wrap.has-no-image {
  border: 1px dashed #cbd5e1 !important;
  background: repeating-linear-gradient(135deg, #f8fafc 0 8px, #f1f5f9 8px 16px) !important;
}

#webshop-view .webshop-product-image-placeholder {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  place-items: center !important;
  color: #64748b !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

#webshop-view .webshop-card-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 44px !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: auto !important;
}

#webshop-view .webshop-card-quantity {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  overflow: hidden !important;
  border: 1px solid #dce3e7 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

#webshop-view .webshop-card-quantity button,
#webshop-view .webshop-card-quantity input {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  box-shadow: none !important;
}

#webshop-view .webshop-card-quantity button {
  cursor: pointer !important;
}

#webshop-view .webshop-card-quantity button:first-child {
  border-right: 1px solid #e3e8eb !important;
}

#webshop-view .webshop-card-quantity button:last-child {
  border-left: 1px solid #e3e8eb !important;
}

#webshop-view .webshop-card-quantity button:hover {
  background: #eef8fb !important;
  color: #176b87 !important;
}

#webshop-view .webshop-card-quantity input::-webkit-outer-spin-button,
#webshop-view .webshop-card-quantity input::-webkit-inner-spin-button {
  margin: 0 !important;
  appearance: none !important;
}

#webshop-view .webshop-card-actions > button[data-webshop-add] {
  grid-column: 2 !important;
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #3e8ba4 !important;
  border-radius: 10px !important;
  background: #3e8ba4 !important;
  color: #fff !important;
}

#webshop-view .webshop-card-actions > button[data-webshop-add] svg {
  width: 24px !important;
  height: 24px !important;
}

#webshop-view .webshop-card-actions > button[data-webshop-add].is-added {
  border-color: #247989 !important;
  background: #247989 !important;
  color: #fff !important;
}

#webshop-view .webshop-history-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}

#webshop-view .webshop-history-summary > div {
  padding: 9px 10px !important;
  border-radius: 8px !important;
}

#webshop-view .webshop-history-summary span {
  font-size: 0.66rem !important;
}

#webshop-view .webshop-history-summary strong {
  font-size: 0.9rem !important;
}

#webshop-view .webshop-history-table-wrap {
  border-radius: 8px !important;
}

#webshop-view .webshop-history-table th,
#webshop-view .webshop-history-table td {
  padding: 8px 10px !important;
  font-size: 0.78rem !important;
  vertical-align: top !important;
}

#webshop-view .webshop-history-table .subline {
  margin-top: 2px !important;
  color: #64748b !important;
  font-size: 0.7rem !important;
  line-height: 1.25 !important;
}

#webshop-view .webshop-history-row.is-current {
  outline: 2px solid rgba(16, 194, 210, 0.35) !important;
  outline-offset: -2px !important;
}

#webshop-view .webshop-cart-total {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  border-top: 1px solid #d8e3e5 !important;
}

@media (max-width: 820px) {
  #webshop-view .webshop-cart-button {
    min-width: 154px !important;
  }

  #webshop-view .webshop-history-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  #webshop-view .webshop-cart-button {
    min-width: 0 !important;
  }

  #webshop-view .webshop-card-actions {
    grid-template-columns: minmax(0, 1fr) 40px !important;
  }

  #webshop-view .webshop-card-quantity {
    grid-template-columns: 30px minmax(0, 1fr) 30px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  #webshop-view .webshop-card-quantity button,
  #webshop-view .webshop-card-quantity input {
    height: 38px !important;
    min-height: 38px !important;
  }

  #webshop-view .webshop-card-actions > button[data-webshop-add] {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
}

#webshop-view #webshop-products .webshop-card-actions > button[data-webshop-sign-in-order] {
  grid-column: 1 / -1 !important;
  min-height: 36px !important;
  border: 1px solid #3e8ba4 !important;
  border-radius: 8px !important;
  background: #f1f8fa !important;
  color: #276b81 !important;
  font-weight: 700 !important;
}

#webshop-view #webshop-products .webshop-card-actions > button[data-webshop-add] {
  border-color: #3e8ba4 !important;
  background: #3e8ba4 !important;
  color: #fff !important;
}

#webshop-view #webshop-products .webshop-card-actions > button[data-webshop-add]:hover {
  border-color: #32758b !important;
  background: #32758b !important;
  color: #fff !important;
}

@media (hover: hover) and (pointer: fine) {
  #webshop-view #webshop-products .webshop-product-card .webshop-product-image {
    transform-origin: center !important;
    will-change: transform !important;
  }

  #webshop-view #webshop-products .webshop-product-card:hover .webshop-product-image,
  #webshop-view #webshop-products .webshop-product-card:has(button[data-webshop-add]:hover) .webshop-product-image {
    animation: webshopImageBounce 0.42s ease-out !important;
  }
}

#webshop-product-detail .webshop-detail-cart {
  border-color: #3e8ba4 !important;
  background: #3e8ba4 !important;
  color: #fff !important;
}

#webshop-product-detail .webshop-detail-cart:hover {
  border-color: #32758b !important;
  background: #32758b !important;
  color: #fff !important;
}

/* Product popup follows the catalog's image and purchase controls. */
#webshop-product-detail .webshop-product-modal {
  width: min(1020px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px) !important;
  padding: 18px 24px 24px !important;
  overflow-y: auto !important;
  border: 1px solid #dce7eb !important;
  border-radius: 18px !important;
}

#webshop-product-detail .webshop-detail-nav {
  justify-content: flex-end !important;
  min-height: 36px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
}

#webshop-product-detail .webshop-detail-close {
  border-color: #dce7eb !important;
  color: #334155 !important;
}

#webshop-product-detail .webshop-detail-close:hover {
  border-color: #3e8ba4 !important;
  background: #eaf5f8 !important;
  color: #176b87 !important;
}

#webshop-product-detail .webshop-detail-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) !important;
  gap: clamp(20px, 3vw, 36px) !important;
  justify-content: stretch !important;
}

#webshop-product-detail .webshop-detail-media {
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  align-content: start !important;
  justify-self: stretch !important;
  gap: 10px !important;
}

#webshop-product-detail .webshop-detail-main-image {
  width: 100% !important;
  max-width: none !important;
  border: 1px solid #edf0f1 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

#webshop-product-detail .webshop-detail-main-image img {
  width: 100% !important;
  height: 100% !important;
}

#webshop-product-detail .webshop-detail-image-placeholder {
  color: #6b7280;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

#webshop-product-detail .webshop-detail-copy {
  min-width: 0 !important;
  gap: 8px !important;
}

#webshop-product-detail .webshop-detail-copy h2 {
  max-width: none !important;
  color: #192d39 !important;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem) !important;
  line-height: 1.22 !important;
  overflow-wrap: anywhere;
}

#webshop-product-detail .webshop-detail-price {
  color: #192d39 !important;
  font-size: 1.2rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

#webshop-product-detail .webshop-detail-description {
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: min(30vh, 300px) !important;
  margin: 6px 0 0 !important;
  padding: 14px 16px !important;
  overflow-y: auto !important;
  border: 1px solid #e2e9ec !important;
  border-radius: 12px !important;
  background: #f8fbfc !important;
  color: #273947 !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}

#webshop-product-detail .webshop-detail-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 220px) 44px !important;
  align-items: center !important;
  gap: 10px !important;
  width: min(100%, 274px) !important;
  margin-top: 8px !important;
}

#webshop-product-detail .webshop-card-quantity {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  width: 100% !important;
  height: 44px !important;
  overflow: hidden !important;
  border: 1px solid #c6dce2 !important;
  border-radius: 10px !important;
  background: #fff !important;
}

#webshop-product-detail .webshop-card-quantity button,
#webshop-product-detail .webshop-card-quantity input {
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  box-shadow: none !important;
}

#webshop-product-detail .webshop-card-quantity button { cursor: pointer !important; }
#webshop-product-detail .webshop-card-quantity button:first-child { border-right: 1px solid #e3e8eb !important; }
#webshop-product-detail .webshop-card-quantity button:last-child { border-left: 1px solid #e3e8eb !important; }
#webshop-product-detail .webshop-card-quantity button:hover { background: #eef8fb !important; color: #176b87 !important; }
#webshop-product-detail .webshop-card-quantity input::-webkit-inner-spin-button,
#webshop-product-detail .webshop-card-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }

#webshop-product-detail .webshop-detail-cart[data-webshop-detail-add] {
  display: grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: none !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

#webshop-product-detail .webshop-detail-cart svg {
  width: 21px;
  height: 21px;
}

#webshop-product-detail .webshop-detail-cart.is-added {
  background: #32758b !important;
}

#webshop-product-detail .webshop-detail-favorite {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
}

#webshop-product-detail .webshop-detail-cart[data-webshop-detail-sign-in] {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 44px !important;
  margin: 0 !important;
  font-size: 0.85rem !important;
}

@media (max-width: 700px) {
  #webshop-product-detail .webshop-product-modal { padding: 14px 18px 20px !important; }
  #webshop-product-detail .webshop-detail-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  #webshop-product-detail .webshop-detail-media { max-width: min(100%, 280px) !important; justify-self: center !important; }
  #webshop-product-detail .webshop-detail-description { max-height: none !important; overflow: visible !important; }
}

/* Product Editor workspace */
#webshop-products-view [hidden],
#webshop-create-product-dialog [hidden] {
  display: none !important;
}

#webshop-products-view .webshop-editor-workspace-tabs,
#webshop-products-view .webshop-editor-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  border-bottom: 1px solid #d8e3e5;
}

#webshop-products-view .webshop-editor-workspace-tabs button,
#webshop-products-view .webshop-editor-section-tabs button {
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #53657c;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

#webshop-products-view .webshop-editor-workspace-tabs button[aria-selected="true"],
#webshop-products-view .webshop-editor-section-tabs button[aria-selected="true"] {
  border-bottom-color: #3e8ba4;
  color: #16345d;
}

#webshop-products-view .webshop-fortnox-tools {
  padding: 9px 12px;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
  background: #f7fbfc;
}

#webshop-products-view .webshop-fortnox-tools summary {
  color: #16345d;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 850;
}

#webshop-products-view .webshop-fortnox-tools p,
#webshop-product-editor .webshop-editor-help,
#webshop-product-editor .webshop-variant-head p {
  margin: 7px 0;
  color: #53657c;
  font-size: 0.78rem;
  line-height: 1.4;
}

#webshop-products-view .webshop-fortnox-tools .webshop-products-list-actions {
  margin: 10px 0;
}

#webshop-products-view .webshop-products-quality {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#webshop-products-view .webshop-products-quality span {
  padding: 5px 9px;
  border: 1px solid #d8e3e5;
  border-radius: 999px;
  background: #f7fbfc;
  color: #42556b;
  font-size: 0.73rem;
}

#webshop-products-view .webshop-products-quality strong {
  color: #16345d;
}

#webshop-products-view .webshop-admin-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr) !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

#webshop-products-view .webshop-admin-list-wrap {
  min-width: 0;
}

#webshop-products-view .webshop-admin-list,
#webshop-products-view .webshop-admin-editor {
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
}

#webshop-products-view .webshop-admin-editor {
  position: static !important;
  min-width: 0;
}

#webshop-products-view .webshop-admin-editor-head {
  position: sticky;
  top: 8px;
  z-index: 3;
  flex-wrap: wrap;
  padding: 10px 0 !important;
  border-bottom: 1px solid #e2e8f0;
  background: #fff !important;
}

#webshop-products-view .webshop-admin-editor-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#webshop-products-view .webshop-admin-editor-heading h3 {
  overflow-wrap: anywhere;
}

#webshop-products-view #webshop-product-editor-status {
  display: block;
  min-height: 18px;
  font-size: 0.72rem;
}

#webshop-products-view .webshop-admin-editor-actions,
#webshop-products-view .webshop-products-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

#webshop-products-view .webshop-products-pagination {
  justify-content: space-between;
  margin-top: 10px;
  color: #53657c;
  font-size: 0.78rem;
}

#webshop-products-view .webshop-products-pagination button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #c9d6e6;
  border-radius: 7px;
  background: #fff;
  color: #16345d;
  cursor: pointer;
  font-weight: 800;
}

#webshop-products-view .webshop-products-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

#webshop-product-editor .webshop-admin-form {
  display: block;
}

#webshop-product-editor .webshop-editor-panel {
  min-width: 0;
}

#webshop-product-editor .webshop-product-readiness {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
  background: #f7fbfc;
}

#webshop-product-editor .webshop-product-readiness-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #16345d;
  font-size: 0.82rem;
}

#webshop-product-editor .webshop-product-readiness-head span {
  color: #53657c;
  font-size: 0.75rem;
}

#webshop-product-editor .webshop-product-readiness ul {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
}

#webshop-product-editor .webshop-product-readiness li::marker {
  color: #d79732;
}

#webshop-product-editor .webshop-product-readiness button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #246982;
  cursor: pointer;
  font-size: 0.76rem;
  text-align: left;
}

#webshop-product-editor .webshop-variant-head {
  justify-content: space-between;
}

#webshop-product-editor .webshop-variant-head h4 {
  margin: 0;
  color: #16345d;
  font-size: 0.88rem;
}

#webshop-product-editor .webshop-variant-row {
  grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr) minmax(138px, auto) 28px;
}

#webshop-product-editor .webshop-variant-active-control {
  grid-column: 4;
  grid-row: 2;
  display: grid;
  gap: 4px;
}

#webshop-product-editor .webshop-variant-active-state {
  color: #53657c;
  font-size: 0.69rem;
  font-weight: 800;
}

#webshop-product-editor .webshop-variant-active-button {
  min-height: 30px;
  height: auto;
  white-space: normal;
}

#webshop-product-editor .webshop-edit-images-list {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

#webshop-products-view .webshop-edit-image-item {
  display: grid;
  gap: 7px;
  aspect-ratio: auto !important;
  padding: 7px;
  overflow: visible;
  background: #fff;
}

#webshop-products-view .webshop-edit-image-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #e4e9ed;
  border-radius: 6px;
  background: #fff;
}

#webshop-products-view .webshop-edit-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#webshop-products-view .webshop-edit-image-actions {
  position: static;
  display: flex;
  flex-wrap: wrap;
}

#webshop-products-view .webshop-edit-image-actions button {
  min-height: 28px;
  height: auto;
  padding: 4px 7px;
  border: 1px solid #c9d6e6;
  border-radius: 6px;
  background: #f7fbfc;
  color: #16345d;
  font-size: 0.69rem;
}

#webshop-create-product-dialog .webshop-create-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

#webshop-create-product-dialog .webshop-create-mode label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #c9d6e6;
  border-radius: 8px;
  cursor: pointer;
}

#webshop-create-product-dialog .webshop-create-mode label:has(input:checked) {
  border-color: #3e8ba4;
  background: #eef8fa;
}

#webshop-create-product-dialog .webshop-create-mode input {
  width: 16px;
  min-height: 16px;
  accent-color: #3e8ba4;
}

#webshop-create-product-dialog .webshop-create-product-preview,
.webshop-fortnox-action-details {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #d8e3e5;
  border-radius: 8px;
  background: #f7fbfc;
}

#webshop-create-product-dialog .webshop-create-product-preview dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}

#webshop-create-product-dialog .webshop-create-product-preview dt {
  color: #53657c;
  font-size: 0.7rem;
}

#webshop-create-product-dialog .webshop-create-product-preview dd {
  margin: 0;
  color: #16345d;
  font-size: 0.85rem;
  font-weight: 800;
}

#webshop-create-product-dialog .webshop-create-duplicate {
  color: #9f1d17;
  font-weight: 800;
}

#webshop-create-product-dialog .status-email-actions,
#webshop-publish-dialog .status-email-actions,
#webshop-fortnox-action-dialog .status-email-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  max-height: none;
  overflow: visible;
}

#webshop-create-product-dialog .status-email-actions .button,
#webshop-publish-dialog .status-email-actions .button,
#webshop-fortnox-action-dialog .status-email-actions .button {
  width: auto !important;
  min-width: 110px;
}

#webshop-create-product-dialog .status-email-actions .button {
  min-height: 40px;
  font-size: 0.8rem;
}

#webshop-create-product-dialog #webshop-create-product-confirm:not(:disabled) {
  border-color: #10c2d2 !important;
  background: #10c2d2 !important;
  color: #102a36 !important;
}

#webshop-create-product-dialog #webshop-create-product-confirm:not(:disabled):hover {
  border-color: #00afc4 !important;
  background: #00afc4 !important;
}

#webshop-publish-dialog,
#webshop-fortnox-action-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
}

#webshop-publish-dialog .webshop-confirm-card,
#webshop-fortnox-action-dialog .webshop-confirm-card {
  gap: 12px;
  padding: 18px !important;
  border-radius: 10px !important;
}

#webshop-publish-dialog .pod-dialog-head,
#webshop-fortnox-action-dialog .pod-dialog-head {
  padding-bottom: 8px;
  border-bottom: 1px solid #d8e3e5;
  background: #fff !important;
}

#webshop-publish-dialog .pod-dialog-panel,
#webshop-fortnox-action-dialog .pod-dialog-panel {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webshop-publish-dialog .pod-dialog-content,
#webshop-fortnox-action-dialog .pod-dialog-content {
  margin: 0;
  max-height: none;
  overflow: visible;
}

#webshop-publish-dialog .pod-dialog-content p,
#webshop-fortnox-action-dialog .pod-dialog-content p {
  margin: 0;
  line-height: 1.45;
}

#webshop-publish-dialog ul,
#webshop-fortnox-action-dialog ul {
  margin: 8px 0;
  padding-left: 22px;
}

#webshop-publish-dialog li,
#webshop-fortnox-action-dialog li {
  margin: 4px 0;
}

#webshop-products-view #webshop-menus-workspace .shop-data-import {
  margin-top: 16px;
}

@media (max-width: 1500px) {
  #webshop-products-view .webshop-menu-manager-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1050px) {
  #webshop-products-view .webshop-admin-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 650px) {
  #webshop-products-view .webshop-products-list-controls-head {
    grid-template-columns: minmax(0, 1fr);
  }
  #webshop-create-product-dialog .status-email-actions .button {
    flex: 1;
    min-width: 0;
  }
  #webshop-product-editor .webshop-variant-row {
    grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr);
  }
  #webshop-product-editor .webshop-variant-active-control {
    grid-column: 3;
    grid-row: 4;
  }
  #webshop-create-product-dialog .webshop-create-mode,
  #webshop-create-product-dialog .webshop-create-product-preview dl {
    grid-template-columns: 1fr;
  }
}

/* Admin workspaces use compact data rows; the public Shop keeps its own layout. */
body.shop-admin-mode .view-section:not(#webshop-view) > .panel {
  padding: 12px !important;
  gap: 8px;
  box-shadow: none !important;
}

body.shop-admin-mode .view-section:not(#webshop-view) .panel-head {
  gap: 10px;
  margin-bottom: 0;
  padding: 8px 10px !important;
}

body.shop-admin-mode .view-section:not(#webshop-view) .panel-head h2 {
  margin: 0;
  font-size: 1.12rem !important;
  line-height: 1.25;
}

body.shop-admin-mode .view-section:not(#webshop-view) .panel-head p {
  margin: 2px 0 0;
  font-size: 0.75rem;
}

body.shop-admin-mode .view-section:not(#webshop-view) .table-wrap {
  box-shadow: none !important;
}

body.shop-admin-mode .view-section:not(#webshop-view) .table-wrap table th,
body.shop-admin-mode .view-section:not(#webshop-view) .table-wrap table td {
  padding: 7px 9px !important;
  font-size: 0.76rem !important;
  line-height: 1.35;
}

body.shop-admin-mode .view-section:not(#webshop-view) .table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  font-size: 0.67rem !important;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

body.shop-admin-mode .view-section:not(#webshop-view) .table-wrap table tbody tr:hover td {
  background: #edf7fa !important;
}

body.shop-admin-mode .view-section:not(#webshop-view) .flow-search-status,
body.shop-admin-mode .view-section:not(#webshop-view) .table-status {
  margin: 6px 0;
  padding: 0;
  font-size: 0.74rem !important;
}

#webshop-orders-view .webshop-order-status-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

#webshop-orders-view .webshop-order-blikk-number {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 5px;
  width: auto;
  padding: 3px 6px;
}

#webshop-orders-view .webshop-order-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: auto;
}

#webshop-orders-view .webshop-order-actions .mini-match-button {
  width: auto;
  min-height: 26px;
}

#webshop-orders-view .webshop-order-status-control,
#webshop-orders-view .webshop-order-locked-note {
  width: auto;
}

#webshop-orders-view .webshop-order-locked-note {
  padding: 3px 6px;
  text-align: left;
}

#shop-customers-view .shop-customer-filters {
  gap: 8px;
  margin: 8px 0;
}

#shop-customers-view #shop-customers-list .shop-customers-table {
  min-width: 0;
}

#shop-customer-detail .shop-customers-table {
  min-width: 0;
}

#shop-customers-view .shop-customer-filters input,
#shop-customers-view .shop-customer-filters select,
#shop-customer-detail .shop-customers-table select {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

#shop-customers-view .shop-customer-detail {
  margin-top: 12px;
}

#shop-customers-view .shop-customer-detail-head {
  margin-bottom: 8px;
}

#shop-customers-view .shop-customer-detail-head h2 {
  margin: 0 0 2px;
  font-size: 1.08rem;
}

#shop-customers-view .shop-customer-tabs {
  gap: 2px;
  padding-bottom: 4px;
}

#shop-customers-view .shop-customer-tabs button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 0.76rem;
}

#shop-customers-view .shop-customer-tab-panel {
  padding-top: 10px;
}

#shop-customers-view .shop-customer-metrics {
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

#shop-customers-view .shop-customer-metrics article {
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

#shop-customers-view .shop-customer-metrics article:last-child {
  border-right: 0;
}

#shop-customers-view .shop-customer-form,
#shop-customers-view .shop-customer-add-form {
  gap: 8px 12px;
  padding: 10px;
}

#shop-customers-view .shop-customer-add-form {
  margin-top: 10px;
}

#shop-customers-view .shop-customer-form input,
#shop-customers-view .shop-customer-form select,
#shop-customers-view .shop-customer-add-form input,
#shop-customers-view .shop-customer-add-form select {
  min-height: 30px;
  padding: 4px 8px;
}

#shop-customers-view .shop-address-sections,
#shop-customers-view .shop-article-sections,
#shop-customers-view .shop-activity-list {
  gap: 10px;
}

#shop-customers-view .shop-address-card,
#shop-customers-view .shop-activity-list article {
  padding: 9px 10px;
  box-shadow: none;
}

#webshop-products-view .webshop-admin-list-head,
#webshop-products-view .webshop-admin-product {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 64px 72px;
  gap: 7px;
  align-items: center;
}

#webshop-products-view .webshop-admin-list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 7px 8px;
  border: 1px solid #d8e3e5;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #eef5f7;
  color: #506675;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

#webshop-products-view .webshop-admin-list {
  gap: 0;
  padding: 0;
  border-radius: 0 0 7px 7px !important;
  box-shadow: none !important;
}

#webshop-products-view .webshop-admin-product {
  min-height: 48px;
  padding: 5px 8px;
  border: 0;
  border-bottom: 1px solid #e4ebee;
  border-radius: 0;
  box-shadow: none;
}

#webshop-products-view .webshop-admin-product:nth-child(even) {
  background: #f8fafb;
}

#webshop-products-view .webshop-admin-product:hover {
  background: #edf7fa;
}

#webshop-products-view .webshop-admin-product.is-selected,
#webshop-products-view .webshop-admin-product.is-missing-article.is-selected {
  background: #eaf5f8;
  box-shadow: inset 3px 0 0 #4b91a7;
}

#webshop-products-view .webshop-admin-thumb {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

#webshop-products-view .webshop-admin-summary strong {
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  #shop-customers-view .shop-customer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #shop-customers-view .shop-customer-metrics article:nth-child(2) {
    border-right: 0;
  }
  #shop-customers-view .shop-customer-metrics article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

#webshop-view .webshop-order-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

#webshop-view .webshop-order-timeline li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

#webshop-view .webshop-order-timeline li span {
  display: grid;
  flex: 0 0 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
}

#webshop-view .webshop-order-timeline li.is-complete {
  color: #245e71;
}

#webshop-view .webshop-order-timeline li.is-complete span {
  border-color: #3e8ba4;
  background: #eaf5f8;
}

#webshop-view .webshop-order-timeline li.is-current span {
  background: #3e8ba4;
  color: #fff;
}

#webshop-view .webshop-customer-shipment {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #cbdfe5;
  border-radius: 8px;
  background: #f2f8fa;
  color: #173e50;
}

#webshop-view .webshop-customer-shipment small {
  color: #64748b;
}

#webshop-orders-view .webshop-order-shipment-editor form {
  display: grid;
  gap: 9px;
}

#webshop-orders-view .webshop-order-shipment-editor label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

#webshop-orders-view .webshop-order-shipment-editor input,
#webshop-orders-view .webshop-order-shipment-editor select {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #cbdfe5;
  border-radius: 6px;
  background: #fff;
}

#webshop-orders-view .webshop-order-notice-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e4ebee;
  font-size: 0.8rem;
}

#webshop-orders-view .webshop-order-notice-row span {
  flex: 1 1 130px;
}

#webshop-orders-view .webshop-order-blikk-reconcile {
  grid-column: 1 / -1;
  border-color: #a9cbd5;
  background: #f2f8fa;
}

#webshop-orders-view .webshop-order-blikk-reconcile form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin-top: 12px;
}

#webshop-orders-view .webshop-order-blikk-reconcile label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

#webshop-orders-view .webshop-order-blikk-reconcile input:not([type="checkbox"]),
#webshop-orders-view .webshop-order-blikk-reconcile select {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #cbdfe5;
  border-radius: 6px;
  background: #fff;
}

#webshop-orders-view .webshop-order-blikk-reconcile .webshop-blikk-verified,
#webshop-orders-view .webshop-order-blikk-reconcile form > p {
  grid-column: 1 / -1;
}

#webshop-orders-view .webshop-order-blikk-reconcile .webshop-blikk-verified {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  #webshop-orders-view .webshop-order-blikk-reconcile form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #webshop-view .webshop-order-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
  }
}
