/**
 * Nexorion Web Shop — shared design system
 * Loaded on all authenticated Web Shop pages via layout.php
 */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --ws-navy: var(--nx-navy, #0f2744);
  --ws-teal: var(--nx-teal, #0d9488);
  --ws-teal-soft: var(--nx-teal-soft, #ccfbf1);
  --ws-teal-dark: var(--nx-teal-dark, #0f766e);
  --ws-bg: #f4f7f9;
  --ws-card: var(--nx-surface, #ffffff);
  --ws-border: var(--nx-border, #e2e8f0);
  --ws-border-strong: var(--nx-border-strong, #cbd5e1);
  --ws-muted: var(--nx-text-secondary, #64748b);
  --ws-text: var(--nx-text, #1f2a37);
  --ws-danger: var(--nx-danger, #dc2626);
  --ws-danger-soft: var(--nx-danger-soft, #fef2f2);
  --ws-success: var(--nx-success, #059669);
  --ws-success-soft: var(--nx-success-soft, #ecfdf5);
  --ws-warning: var(--nx-warning, #d97706);
  --ws-warning-soft: var(--nx-warning-soft, #fffbeb);
  --ws-info: var(--nx-info, #0284c7);
  --ws-info-soft: var(--nx-info-soft, #f0f9ff);
  --ws-radius: var(--nx-radius-sm, 8px);
  --ws-radius-lg: var(--nx-radius, 10px);
  --ws-shadow-header: 0 1px 0 var(--ws-border), 0 2px 8px rgba(15, 39, 68, 0.06);
  --ws-shadow-card: var(--nx-shadow-sm, 0 1px 3px rgba(15, 39, 68, 0.06));
  --ws-header-height: 60px;
  --ws-container-max: 1180px;
  --ws-font: var(--nx-font, "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif);
  --ws-transition: var(--nx-transition, 160ms ease);
}

/* ── Shell / base ──────────────────────────────────────────────── */
.ws-shell,
.webshop-shell {
  font-family: var(--ws-font);
  background: var(--ws-bg);
  color: var(--ws-text);
  min-height: 100vh;
  line-height: 1.45;
}

.ws-main {
  padding: 20px 16px 48px;
}

.ws-container {
  max-width: var(--ws-container-max);
  margin: 0 auto;
  width: 100%;
}

/* ── Sticky white header ───────────────────────────────────────── */
.ws-header {
  position: sticky;
  top: 0;
  z-index: var(--nx-z-header, 1030);
  background: var(--ws-card);
  border-bottom: 1px solid var(--ws-border);
  box-shadow: var(--ws-shadow-header);
}

.ws-header-inner {
  max-width: var(--ws-container-max);
  margin: 0 auto;
  padding: 0 16px;
  min-height: var(--ws-header-height);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-header-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.ws-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.ws-brand-link:hover,
.ws-brand-link:focus {
  text-decoration: none;
  color: inherit;
}

.ws-header-logo {
  height: 34px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.ws-header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ws-navy);
  white-space: nowrap;
}

/* ── Navigation ────────────────────────────────────────────────── */
.ws-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.ws-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--ws-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ws-transition), background var(--ws-transition), box-shadow var(--ws-transition);
  position: relative;
}

.ws-nav-link .fa {
  font-size: 14px;
  opacity: 0.85;
}

.ws-nav-link:hover,
.ws-nav-link:focus {
  color: var(--ws-teal-dark);
  text-decoration: none;
  background: rgba(13, 148, 136, 0.06);
}

.ws-nav-link.is-active {
  color: var(--ws-teal-dark);
  background: var(--ws-teal-soft);
  box-shadow: inset 0 -2px 0 var(--ws-teal);
}

.ws-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ws-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.ws-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: var(--ws-card);
  cursor: pointer;
}

.ws-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ws-navy);
  border-radius: 1px;
}

/* ── Header user area ──────────────────────────────────────────── */
.ws-header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 13px;
}

.ws-header-user-name {
  font-weight: 600;
  color: var(--ws-navy);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-header-user-link {
  color: var(--ws-muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.ws-header-user-link:hover,
.ws-header-user-link:focus {
  color: var(--ws-teal-dark);
  text-decoration: none;
}

.ws-header-user-link .fa {
  margin-right: 3px;
}

/* ── Badges ────────────────────────────────────────────────────── */
.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}

.ws-badge-role {
  text-transform: uppercase;
}

.ws-badge-teal {
  background: var(--ws-teal-soft);
  color: var(--ws-teal-dark);
}

.ws-badge-status.ws-badge-processing {
  background: var(--ws-info-soft);
  color: var(--ws-info);
}

.ws-badge-status.ws-badge-ready {
  background: var(--ws-teal-soft);
  color: var(--ws-teal-dark);
}

.ws-badge-status.ws-badge-completed {
  background: var(--ws-success-soft);
  color: var(--ws-success);
}

.ws-badge-status.ws-badge-cancelled {
  background: var(--ws-danger-soft);
  color: var(--ws-danger);
}

.ws-badge-status.ws-badge-warning {
  background: var(--ws-warning-soft);
  color: var(--ws-warning);
}

.ws-badge-status.ws-badge-muted {
  background: #f1f5f9;
  color: var(--ws-muted);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--ws-radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ws-transition), border-color var(--ws-transition), color var(--ws-transition), box-shadow var(--ws-transition);
}

.ws-btn:hover,
.ws-btn:focus {
  text-decoration: none;
}

.ws-btn-primary {
  background: var(--ws-teal);
  border-color: var(--ws-teal);
  color: #fff;
}

.ws-btn-primary:hover,
.ws-btn-primary:focus {
  background: var(--ws-teal-dark);
  border-color: var(--ws-teal-dark);
  color: #fff;
}

.ws-btn-secondary {
  background: var(--ws-card);
  border-color: var(--ws-border-strong);
  color: var(--ws-navy);
}

.ws-btn-secondary:hover,
.ws-btn-secondary:focus {
  background: #f8fafc;
  border-color: var(--ws-muted);
  color: var(--ws-navy);
}

.ws-btn-danger {
  background: var(--ws-danger);
  border-color: var(--ws-danger);
  color: #fff;
}

.ws-btn-danger:hover,
.ws-btn-danger:focus {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.ws-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* ── Cards & panels ────────────────────────────────────────────── */
.ws-card,
.webshop-panel {
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--ws-shadow-card);
}

.ws-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ws-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ws-navy);
}

/* ── Page header & breadcrumb ──────────────────────────────────── */
.ws-page-header {
  margin-bottom: 18px;
}

.ws-page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ws-page-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ws-navy);
  line-height: 1.2;
}

.ws-page-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--ws-muted);
}

.ws-page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ws-breadcrumb {
  margin-bottom: 8px;
}

.ws-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
}

.ws-breadcrumb-item {
  color: var(--ws-muted);
}

.ws-breadcrumb-item:not(.is-current)::after {
  content: "/";
  margin-left: 4px;
  color: #cbd5e1;
}

.ws-breadcrumb-item a {
  color: var(--ws-muted);
  text-decoration: none;
}

.ws-breadcrumb-item a:hover {
  color: var(--ws-teal-dark);
}

.ws-breadcrumb-item.is-current span {
  color: var(--ws-navy);
  font-weight: 600;
}

/* ── KPI row ───────────────────────────────────────────────────── */
.ws-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ws-kpi-card {
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 14px 16px;
  box-shadow: var(--ws-shadow-card);
}

.ws-kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ws-muted);
  margin-bottom: 4px;
}

.ws-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ws-navy);
  line-height: 1.1;
}

/* ── Tables ────────────────────────────────────────────────────── */
.ws-table,
.webshop-shell .table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ws-table th,
.ws-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ws-border);
  vertical-align: middle;
}

.ws-table th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ws-muted);
}

.ws-table tbody tr:hover {
  background: rgba(244, 247, 249, 0.7);
}

/* ── Empty state ───────────────────────────────────────────────── */
.ws-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--ws-muted);
}

.ws-empty-icon {
  font-size: 32px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.ws-empty-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ws-navy);
}

.ws-empty-text {
  margin: 0;
  font-size: 13px;
}

/* ── Modal (lightweight) ───────────────────────────────────────── */
.ws-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.45);
  z-index: var(--nx-z-modal, 1060);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ws-modal {
  background: var(--ws-card);
  border-radius: var(--ws-radius-lg);
  box-shadow: var(--nx-shadow-md, 0 8px 24px rgba(15, 39, 68, 0.12));
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
}

.ws-modal-header {
  padding: 16px 18px 0;
}

.ws-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ws-navy);
}

.ws-modal-body {
  padding: 14px 18px 18px;
}

.ws-modal-footer {
  padding: 0 18px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── Toasts ────────────────────────────────────────────────────── */
.ws-toast-host {
  position: fixed;
  top: calc(var(--ws-header-height) + 12px);
  right: 16px;
  z-index: var(--nx-z-toast, 1080);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.ws-toast {
  padding: 12px 14px;
  border-radius: var(--ws-radius);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--nx-shadow-md, 0 4px 14px rgba(15, 39, 68, 0.12));
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: auto;
}

.ws-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ws-toast-success {
  background: var(--ws-success-soft);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #065f46;
}

.ws-toast-warning {
  background: var(--ws-warning-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #92400e;
}

.ws-toast-error {
  background: var(--ws-danger-soft);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #991b1b;
}

.ws-flash-data {
  display: none;
}

/* ── Price, legacy badge aliases ───────────────────────────────── */
.webshop-price,
.ws-price {
  color: var(--ws-success);
  font-weight: 700;
}

.webshop-badge:not(.ws-badge) {
  display: inline-block;
  background: var(--ws-teal);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ── Qty stepper ───────────────────────────────────────────────── */
.ws-qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--ws-border-strong);
  border-radius: var(--ws-radius);
  overflow: hidden;
  background: var(--ws-card);
}

.ws-qty-stepper button {
  width: 32px;
  border: 0;
  background: #f8fafc;
  color: var(--ws-navy);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.ws-qty-stepper button:hover {
  background: var(--ws-teal-soft);
  color: var(--ws-teal-dark);
}

.ws-qty-stepper input {
  width: 44px;
  border: 0;
  border-left: 1px solid var(--ws-border);
  border-right: 1px solid var(--ws-border);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
}

/* ── Filters (sidebar) ─────────────────────────────────────────── */
.ws-filters,
.webshop-filters {
  flex: 0 0 240px;
  width: 240px;
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 14px 14px 16px;
  position: sticky;
  top: calc(var(--ws-header-height) + 12px);
  box-shadow: var(--ws-shadow-card);
}

.ws-filters-title,
.webshop-filters-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ws-border);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ws-navy);
  text-transform: uppercase;
}

.ws-filter-section,
.webshop-filter-section {
  margin-bottom: 14px;
}

.ws-filter-label,
.webshop-filter-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ws-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ws-filter-list,
.webshop-filter-list {
  max-height: 180px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-filter-list li,
.webshop-filter-list li {
  margin: 0 0 4px;
}

.ws-filter-list label,
.webshop-filter-list label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  color: var(--ws-text);
  cursor: pointer;
  line-height: 1.3;
}

/* ── Shop layout & toolbar ─────────────────────────────────────── */
.webshop-shop-toolbar,
.ws-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 0;
}

.webshop-shop-toolbar .form-group,
.ws-shop-toolbar .form-group {
  margin-bottom: 0;
}

.webshop-shop-layout,
.ws-shop-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.webshop-shop-main,
.ws-shop-main {
  flex: 1 1 auto;
  min-width: 0;
}

.webshop-price-range,
.ws-price-range {
  display: flex;
  align-items: center;
  gap: 6px;
}

.webshop-price-range-sep,
.ws-price-range-sep {
  color: var(--ws-muted);
  font-size: 12px;
}

.webshop-filter-actions,
.ws-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.webshop-filter-actions .btn,
.ws-filter-actions .btn {
  flex: 1 1 auto;
}

/* ── Product grid cards ────────────────────────────────────────── */
.webshop-product-grid,
.ws-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.webshop-product,
.ws-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  background: var(--ws-card);
  overflow: hidden;
  transition: border-color var(--ws-transition), box-shadow var(--ws-transition);
}

.webshop-product:hover,
.ws-product-card:hover {
  border-color: var(--ws-border-strong);
  box-shadow: var(--ws-shadow-card);
}

.webshop-product-image,
.ws-product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef2f6;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

.webshop-product-image img,
.ws-product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.webshop-product-body,
.ws-product-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 10px;
  gap: 4px;
}

.webshop-product-body h5,
.ws-product-body h5 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ws-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.webshop-product-body h5 a,
.ws-product-body h5 a {
  color: inherit;
  text-decoration: none;
}

.webshop-product-body h5 a:hover,
.ws-product-body h5 a:hover {
  color: var(--ws-teal-dark);
  text-decoration: underline;
}

.webshop-product-sku,
.ws-product-sku {
  font-size: 11px;
  color: var(--ws-muted);
  word-break: break-all;
}

.webshop-product-brand,
.ws-product-brand {
  font-size: 11px;
  color: var(--ws-muted);
}

.webshop-product .webshop-price,
.ws-product-card .ws-price {
  margin: 4px 0 8px;
  font-size: 15px;
}

.webshop-product-body form,
.ws-product-body form {
  margin-top: auto;
}

.webshop-product-body .btn-block,
.ws-product-body .btn-block {
  margin-top: auto;
}

.webshop-product-options,
.ws-product-options {
  font-size: 11px;
  color: var(--ws-muted);
}

.webshop-shop-empty,
.ws-shop-empty {
  margin: 0;
}

.webshop-pagination-wrap,
.ws-pagination-wrap {
  margin-top: 16px;
}

/* ── Product detail ────────────────────────────────────────────── */
.webshop-product-back,
.ws-product-back {
  margin: 0 0 12px;
}

.webshop-product-back a,
.ws-product-back a {
  color: var(--ws-muted);
}

.webshop-product-detail,
.ws-product-detail {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 20px;
  box-shadow: var(--ws-shadow-card);
}

.webshop-product-detail-media,
.ws-product-detail-media {
  flex: 0 0 360px;
  width: 360px;
  max-width: 100%;
}

.webshop-product-detail-image,
.ws-product-detail-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #eef2f6;
  border-radius: var(--ws-radius);
  overflow: hidden;
}

.webshop-product-detail-image img,
.ws-product-detail-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.webshop-product-detail-info,
.ws-product-detail-info {
  flex: 1 1 auto;
  min-width: 0;
}

.webshop-product-detail-title,
.ws-product-detail-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ws-navy);
  line-height: 1.25;
}

.webshop-product-detail-price,
.ws-product-detail-price {
  margin: 12px 0 16px;
  font-size: 22px;
}

.webshop-product-detail-desc,
.ws-product-detail-desc {
  margin: 0 0 16px;
  color: var(--ws-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Variant picker ────────────────────────────────────────────── */
.webshop-variant-axes,
.ws-variant-axes {
  margin: 8px 0 18px;
}

.webshop-variant-axis,
.ws-variant-axis {
  margin-bottom: 14px;
}

.webshop-variant-axis-label,
.ws-variant-axis-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ws-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.webshop-variant-options,
.ws-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webshop-variant-option,
.ws-variant-option {
  appearance: none;
  border: 1px solid var(--ws-border-strong);
  background: var(--ws-card);
  color: var(--ws-text);
  padding: 6px 14px;
  border-radius: var(--ws-radius);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color var(--ws-transition), background var(--ws-transition), color var(--ws-transition);
}

.webshop-variant-option:hover:not(:disabled),
.ws-variant-option:hover:not(:disabled) {
  border-color: var(--ws-teal);
  color: var(--ws-teal-dark);
}

.webshop-variant-option.is-selected,
.ws-variant-option.is-selected {
  border-color: var(--ws-teal);
  background: var(--ws-teal-soft);
  color: var(--ws-teal-dark);
  font-weight: 600;
}

.webshop-variant-option.is-disabled,
.webshop-variant-option:disabled,
.ws-variant-option.is-disabled,
.ws-variant-option:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.webshop-product-detail-cart,
.ws-product-detail-cart {
  margin-top: 8px;
}

/* ── Stock block ───────────────────────────────────────────────── */
.webshop-product-stock-block,
.ws-product-stock-block {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
}

.webshop-product-stock-actions,
.ws-product-stock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.webshop-product-stock-status,
.ws-product-stock-status {
  font-size: 12px;
}

.webshop-product-stock-status.is-loading,
.ws-product-stock-status.is-loading {
  color: var(--ws-info);
  font-weight: 600;
}

.webshop-product-stock-values,
.ws-product-stock-values {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 10px;
}

.webshop-product-stock-item,
.ws-product-stock-item {
  min-width: 140px;
}

.webshop-product-stock-label,
.ws-product-stock-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ws-muted);
  margin-bottom: 2px;
}

.webshop-product-stock-qty,
.ws-product-stock-qty {
  font-size: 18px;
  font-weight: 700;
  color: var(--ws-navy);
  line-height: 1.2;
}

.webshop-product-stock-qty.is-placeholder,
.ws-product-stock-qty.is-placeholder {
  color: #a0a8b0;
  font-weight: 500;
}

/* ── Version panel ─────────────────────────────────────────────── */
.webshop-version-panel,
.ws-version-panel {
  margin-top: 20px;
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 18px 20px 16px;
  box-shadow: var(--ws-shadow-card);
}

.webshop-version-panel-title,
.ws-version-panel-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ws-navy);
}

.webshop-version-panel-sub,
.ws-version-panel-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ws-muted);
}

.webshop-version-msg,
.ws-version-msg {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--ws-radius);
  font-size: 13px;
  line-height: 1.45;
}

.webshop-version-msg.is-warn,
.ws-version-msg.is-warn {
  background: var(--ws-warning-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #92400e;
}

.webshop-version-msg.is-info,
.ws-version-msg.is-info {
  background: var(--ws-info-soft);
  border: 1px solid rgba(2, 132, 199, 0.2);
  color: #0c4a6e;
}

.webshop-version-msg-list,
.ws-version-msg-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.webshop-version-actions,
.ws-version-actions {
  margin-bottom: 12px;
}

.webshop-version-table,
.ws-version-table {
  margin-bottom: 8px;
  font-size: 13px;
}

.webshop-version-table th,
.ws-version-table th {
  white-space: nowrap;
  background: #f8fafc;
}

.webshop-version-table tr.is-current,
.ws-version-table tr.is-current {
  background: var(--ws-teal-soft);
}

.webshop-version-table tr.is-oos td,
.ws-version-table tr.is-oos td {
  color: var(--ws-muted);
}

.webshop-ver-badge,
.ws-ver-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

.webshop-ver-badge-first,
.ws-ver-badge-first {
  background: var(--ws-danger);
  color: #fff;
}

.webshop-ver-badge-current,
.ws-ver-badge-current {
  background: var(--ws-success);
  color: #fff;
}

.webshop-version-footnote,
.ws-version-footnote {
  margin: 0;
  font-size: 11px;
  color: var(--ws-muted);
}

/* ── Responsive breakpoints ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .ws-nav-link span:not(.ws-nav-count) {
    font-size: 12px;
  }

  .ws-nav-link {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .ws-header-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ws-nav-toggle {
    display: flex;
    order: 2;
  }

  .ws-header-brand {
    order: 1;
    flex: 1 1 auto;
  }

  .ws-header-user {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    padding-top: 4px;
    border-top: 1px solid var(--ws-border);
    margin-top: 4px;
  }

  .ws-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--ws-border);
  }

  .ws-nav.is-open {
    display: flex;
  }

  .ws-nav-link {
    justify-content: flex-start;
    border-radius: var(--ws-radius);
  }

  .ws-nav-link.is-active {
    box-shadow: none;
  }

  .webshop-shop-layout,
  .ws-shop-layout {
    flex-direction: column;
  }

  .webshop-filters,
  .ws-filters {
    flex: none;
    width: 100%;
    position: static;
  }

  .webshop-product-grid,
  .ws-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .webshop-product-detail,
  .ws-product-detail {
    flex-direction: column;
    padding: 14px;
    gap: 16px;
  }

  .webshop-product-detail-media,
  .ws-product-detail-media {
    flex: none;
    width: 100%;
  }

  .webshop-version-panel,
  .ws-version-panel {
    padding: 14px;
  }

  .ws-page-title {
    font-size: 20px;
  }
}

@media (max-width: 640px) {
  .ws-main {
    padding: 14px 12px 36px;
  }

  .ws-header-title {
    font-size: 15px;
  }

  .ws-header-logo {
    height: 30px;
    max-width: 96px;
  }

  .ws-header-user-name {
    max-width: 100px;
  }
}

@media (max-width: 360px) {
  .ws-header-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ws-header-user-link span,
  .ws-header-user-link {
    font-size: 12px;
  }

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

/* ── Home welcome & action tiles ───────────────────────────────── */
.ws-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 16px;
}

.ws-welcome-main {
  min-width: 0;
}

.ws-welcome-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #94a3b8;
  padding: 12px;
}

.ws-welcome-aside .fa {
  font-size: 72px;
  opacity: 0.35;
  margin-bottom: 10px;
}

.ws-welcome-aside p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  max-width: 140px;
}

.ws-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ws-muted);
}

.ws-welcome-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--ws-navy);
}

.ws-welcome-text {
  margin: 0 0 14px;
  color: var(--ws-muted);
  font-size: 14px;
  max-width: 720px;
}

.ws-welcome-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.ws-welcome-meta-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: #fff;
}

.ws-welcome-meta-box > .fa {
  color: var(--ws-teal);
  font-size: 16px;
}

.ws-welcome-meta-label {
  display: block;
  font-size: 11px;
  color: var(--ws-muted);
  margin-bottom: 2px;
}

.ws-welcome-meta-box strong {
  color: var(--ws-navy);
  font-size: 13px;
}

.ws-action-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.ws-action-tile {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ws-card);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  text-decoration: none;
  color: var(--ws-navy);
  transition: border-color var(--ws-transition), box-shadow var(--ws-transition);
}

.ws-action-tile:hover,
.ws-action-tile:focus {
  text-decoration: none;
  color: var(--ws-navy);
  border-color: var(--ws-teal);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.ws-action-tile-primary {
  background: var(--ws-teal);
  border-color: var(--ws-teal);
  color: #fff;
}

.ws-action-tile-primary:hover,
.ws-action-tile-primary:focus {
  color: #fff;
  border-color: var(--ws-teal-dark);
  background: var(--ws-teal-dark);
}

.ws-action-tile-icon {
  font-size: 18px;
  opacity: 0.95;
  margin-top: 2px;
}

.ws-action-tile-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-action-tile-label {
  font-size: 14px;
  font-weight: 700;
}

.ws-action-tile-desc {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  color: inherit;
}

.ws-action-tile:not(.ws-action-tile-primary) .ws-action-tile-desc {
  color: var(--ws-muted);
}

.ws-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ws-info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ws-info-soft);
  color: var(--ws-info);
  flex-shrink: 0;
}

.ws-info-card .ws-card-title {
  margin: 0 0 4px;
  font-size: 15px;
}

.ws-info-card-text {
  margin: 0;
  color: var(--ws-muted);
  font-size: 13px;
}

.ws-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ws-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
  font-size: 18px;
}

.ws-kpi-icon-teal { background: var(--ws-teal-soft); color: var(--ws-teal-dark); }
.ws-kpi-icon-blue { background: var(--ws-info-soft); color: var(--ws-info); }
.ws-kpi-icon-purple { background: #f3e8ff; color: #7c3aed; }
.ws-kpi-icon-red { background: var(--ws-danger-soft); color: var(--ws-danger); }
.ws-kpi-icon-gold { background: #fef3c7; color: #b45309; }

.ws-kpi-card .ws-kpi-value {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.ws-kpi-card .ws-kpi-label {
  display: block;
  margin-top: 2px;
}

/* ── Shop toolbar card ─────────────────────────────────────────── */
.ws-shop-toolbar-card {
  margin-bottom: 16px;
}

.ws-toolbar-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 280px;
}

.ws-search-input {
  min-width: 220px;
  flex: 1 1 auto;
}

.ws-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ws-result-count {
  font-size: 13px;
  color: var(--ws-muted);
  font-weight: 600;
}

.ws-pagination .active > span,
.ws-pagination .active > a {
  background: var(--ws-teal);
  border-color: var(--ws-teal);
}

/* ── Filter bar (orders/report) ────────────────────────────────── */
.ws-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.ws-filter-bar-field {
  flex: 1 1 140px;
  min-width: 120px;
}

.ws-filter-bar-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ws-muted);
}

.ws-filter-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-list-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ws-border);
}

.ws-list-meta {
  font-size: 12px;
  color: var(--ws-muted);
}

/* ── Cart layout ───────────────────────────────────────────────── */
.ws-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.ws-cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-cart-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ws-border);
}

.ws-cart-line:last-child {
  border-bottom: 0;
}

.ws-cart-line-image {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: var(--ws-radius);
  overflow: hidden;
  background: #eef2f6;
}

.ws-cart-line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ws-cart-line-body {
  flex: 1 1 auto;
  min-width: 0;
}

.ws-cart-line-name {
  font-weight: 600;
  color: var(--ws-navy);
  font-size: 14px;
}

.ws-cart-line-sku {
  font-size: 11px;
  color: var(--ws-muted);
}

.ws-cart-line-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
}

.ws-cart-line-total {
  color: var(--ws-success);
}

.ws-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--ws-border);
  font-size: 14px;
}

.ws-form-stack .ws-form-field {
  margin-bottom: 12px;
}

.ws-form-stack label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-navy);
}

.ws-help-text {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--ws-muted);
}

.ws-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--ws-info-soft);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--ws-radius);
  font-size: 12px;
  color: #0c4a6e;
}

.ws-info-box > .fa {
  margin-top: 2px;
  color: var(--ws-teal-dark);
}

.ws-info-box p {
  margin: 4px 0 0;
}

.ws-customer-readonly {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--ws-radius);
}

.ws-form-field-inline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.ws-field-label {
  color: var(--ws-muted);
}

.ws-order-summary {
  margin: 14px 0;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--ws-radius);
}

.ws-order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.ws-order-summary-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--ws-border);
  font-size: 15px;
}

.ws-btn-block {
  display: flex;
  width: 100%;
}

.ws-btn-lg {
  padding: 12px 16px;
  font-size: 14px;
}

/* ── Product detail add row ────────────────────────────────────── */
.ws-selected-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--ws-teal-soft);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--ws-radius);
  font-size: 13px;
  color: var(--ws-teal-dark);
  min-height: 0;
}

.ws-selected-banner:empty {
  display: none;
}

.ws-add-cart-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ── Report charts & presets ───────────────────────────────────── */
.ws-date-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.ws-date-presets-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ws-muted);
  margin-right: 4px;
}

.ws-date-preset {
  display: inline-flex;
  padding: 5px 10px;
  border: 1px solid var(--ws-border-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-muted);
  text-decoration: none;
  transition: background var(--ws-transition), border-color var(--ws-transition), color var(--ws-transition);
}

.ws-date-preset:hover,
.ws-date-preset:focus {
  text-decoration: none;
  color: var(--ws-teal-dark);
  border-color: var(--ws-teal);
}

.ws-date-preset.is-active {
  background: var(--ws-teal-soft);
  border-color: var(--ws-teal);
  color: var(--ws-teal-dark);
}

.ws-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-bar-chart-row {
  display: grid;
  grid-template-columns: 100px 1fr 40px;
  gap: 10px;
  align-items: center;
}

.ws-bar-chart-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-navy);
}

.ws-bar-chart-track {
  height: 10px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
}

.ws-bar-chart-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.ws-bar-processing { background: var(--ws-info); }
.ws-bar-ready { background: var(--ws-teal); }
.ws-bar-completed { background: var(--ws-success); }
.ws-bar-cancelled { background: var(--ws-danger); }
.ws-bar-warning { background: var(--ws-warning); }
.ws-bar-muted { background: #94a3b8; }

.ws-bar-chart-value {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--ws-muted);
}

.ws-modal-host .modal-content.ws-modal {
  border: 0;
  border-radius: var(--ws-radius-lg);
  box-shadow: var(--nx-shadow-md, 0 8px 24px rgba(15, 39, 68, 0.12));
}

.ws-modal-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 28px;
}

.ws-modal-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ws-info-soft);
  color: var(--ws-info);
  flex-shrink: 0;
}

.ws-modal-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.ws-stock-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.ws-stock-kpi {
  padding: 12px;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: #f8fafc;
}

.ws-stock-kpi-label {
  display: block;
  font-size: 12px;
  color: var(--ws-muted);
  margin-bottom: 6px;
}

.ws-stock-kpi-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ws-navy);
}

.ws-stock-kpi-value.is-success {
  color: var(--ws-success);
}

.ws-stock-kpi-hint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--ws-muted);
}

.ws-stock-qty-badge {
  display: inline-block;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ws-success-soft);
  color: var(--ws-success);
  font-weight: 700;
  text-align: center;
}

.ws-modal-note {
  margin: 12px 0 0;
  font-size: 12px;
}

.ws-report-charts {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.ws-trend-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ws-muted);
}

.ws-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

.ws-legend-sales { background: var(--ws-teal); }
.ws-legend-orders { background: #93c5fd; }

.ws-trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 180px;
  padding: 8px 4px 0;
  overflow-x: auto;
}

.ws-trend-col {
  flex: 1 1 28px;
  min-width: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ws-trend-bars {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
}

.ws-trend-bar {
  display: block;
  width: 8px;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}

.ws-trend-bar-sales { background: var(--ws-teal); }
.ws-trend-bar-orders { background: #93c5fd; }

.ws-trend-label {
  font-size: 10px;
  color: var(--ws-muted);
  white-space: nowrap;
}

.ws-donut-layout {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ws-donut {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-donut-center {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--ws-border);
}

.ws-donut-center strong {
  font-size: 22px;
  color: var(--ws-navy);
  line-height: 1.1;
}

.ws-donut-center span {
  font-size: 11px;
  color: var(--ws-muted);
}

.ws-donut-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 180px;
}

.ws-donut-legend li {
  display: grid;
  grid-template-columns: 12px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--ws-border);
  font-size: 13px;
}

.ws-donut-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.ws-donut-name { color: var(--ws-navy); }
.ws-donut-count { font-weight: 700; color: var(--ws-navy); }
.ws-donut-pct { color: var(--ws-muted); min-width: 42px; text-align: right; }

.ws-table-total-row th {
  background: #eef2f7;
  color: var(--ws-navy);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 1100px) {
  .ws-report-charts {
    grid-template-columns: 1fr;
  }

  .ws-welcome-card {
    grid-template-columns: 1fr;
  }

  .ws-welcome-aside {
    display: none;
  }

  .ws-action-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ws-stock-kpi-row {
    grid-template-columns: 1fr;
  }
}

/* ── Login (optional light restyle) ────────────────────────────── */
body.ws-login-page {
  background: var(--ws-bg, #f4f7f9);
  font-family: var(--ws-font, "Open Sans", sans-serif);
}

.ws-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.ws-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--ws-border, #e2e8f0);
  border-radius: var(--ws-radius-lg, 10px);
  box-shadow: var(--ws-shadow-card, 0 1px 3px rgba(15, 39, 68, 0.06));
  padding: 24px;
}

.ws-login-brand {
  text-align: center;
  margin-bottom: 16px;
}

.ws-login-brand img {
  height: 40px;
  width: auto;
  max-width: 140px;
}

.ws-login-title {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ws-navy, #0f2744);
}

@media (max-width: 768px) {
  .ws-cart-layout {
    grid-template-columns: 1fr;
  }

  .ws-toolbar-meta {
    margin-left: 0;
    width: 100%;
  }

  .ws-bar-chart-row {
    grid-template-columns: 80px 1fr 32px;
  }
}
