﻿/* =========================================================
   Wine Solutions — Design System
   ========================================================= */

:root {
  --burgundy-900: #4A1119;
  --burgundy-800: #5C1822;
  --burgundy-700: #7A1F2B;
  --burgundy-600: #8E2937;
  --burgundy-100: #F4E6E8;
  --burgundy-50:  #FAF1F2;

  --bg:        #FAF8F4;
  --surface:   #FFFFFF;
  --surface-2: #F4F1EB;
  --border:    #E6E0D4;
  --border-strong: #D4CDBE;
  --divider:   #EEE9DD;

  --ink-900: #1A1614;
  --ink-700: #3E3833;
  --ink-500: #6B6259;
  --ink-400: #8A8076;
  --ink-300: #A89E92;

  --green-600: #2F7A4F;
  --green-50:  #EEF6F0;
  --amber-700: #8A5A14;
  --amber-50:  #FBF4E5;
  --red-700:   #A82F38;
  --red-50:    #FBECEC;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --nav-h: 56px;
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;

  --shadow-sm:  0 1px 0 rgba(20,14,10,0.04), 0 1px 2px rgba(20,14,10,0.04);
  --shadow:     0 1px 0 rgba(20,14,10,0.04), 0 2px 8px rgba(20,14,10,0.06);
  --shadow-lg:  0 4px 14px rgba(20,14,10,0.08), 0 1px 2px rgba(20,14,10,0.06);
  --shadow-nav: 0 1px 0 rgba(0,0,0,0.12), 0 2px 8px rgba(74,17,25,0.16);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink-900);
}
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 20px; line-height: 1.2; }
h3 { font-size: 16px; line-height: 1.3; }
h4 { font-size: 14px; line-height: 1.3; }

p { margin: 0; color: var(--ink-700); }

/* ============== TOP NAV ============== */
.ws-nav {
  height: var(--nav-h);
  background: linear-gradient(180deg, #6E1A24 0%, var(--burgundy-700) 100%);
  color: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid rgba(0,0,0,0.2);
}
.ws-nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 8px;
}
.ws-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  padding: 8px 12px 8px 0;
  margin-right: 16px;
  text-decoration: none;
}
.ws-nav__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}
.ws-nav__items {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.ws-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.ws-nav__item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ws-nav__caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
  opacity: 0.7;
}

/* Dropdown */
.ws-nav__dropdown { position: relative; }
.ws-nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  padding-top: 12px;
  min-width: 200px;
  z-index: 200;
  color: var(--ink-900);
}
.ws-nav__dropdown:hover .ws-nav__menu { display: block; }
.ws-nav__menu a, .ws-nav__menu-item {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--ink-900);
  cursor: pointer;
  text-decoration: none;
}
.ws-nav__menu a:hover, .ws-nav__menu-item:hover { background: var(--surface-2); }

.ws-nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-left: auto;
}
.ws-nav__user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.95);
  font-size: 13px;
}
.ws-nav__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #F5E6E8;
  color: var(--burgundy-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
}
.ws-nav__username {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.ws-nav__username:hover { color: #fff; text-decoration: underline; }
.ws-nav__logoff-link {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 10px;
  margin-left: 2px;
  white-space: nowrap;
  transition: color 120ms ease;
}
.ws-nav__logoff-link:hover { color: #fff; }

.ws-mode-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px;
  background: var(--amber-50);
  border-bottom: 1px solid #E5C783;
  color: var(--amber-700);
  font-size: 12.5px;
}
.ws-mode-banner strong { text-transform: uppercase; letter-spacing: .04em; }

/* ============== LAYOUT ============== */
.ws-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ============== BUTTONS ============== */
.ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.ws-btn:hover { background: var(--surface-2); border-color: var(--ink-300); color: var(--ink-900); }
.ws-btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.ws-btn--lg { height: 42px; padding: 0 18px; font-size: 14.5px; }
.ws-btn--primary {
  background: var(--burgundy-700);
  color: #fff;
  border-color: var(--burgundy-800);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 0 rgba(0,0,0,0.04);
}
.ws-btn--primary:hover { background: var(--burgundy-800); border-color: var(--burgundy-900); color: #fff; }

/* ============== CARDS ============== */
.ws-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.ws-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
}
.ws-card__head h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  font-weight: 600;
}

/* ============== SECTION HEAD ============== */
.ws-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 14px;
}
.ws-section-head h2 { font-size: 18px; }

/* ============== PILLS / BADGES ============== */
.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--ink-700);
  border: 1px solid var(--border);
}
.ws-pill--urgent { background: var(--red-50); color: var(--red-700); border-color: #F5D6D7; }
.ws-pill--ok     { background: var(--green-50); color: var(--green-600); border-color: #D6E9DD; }
.ws-pill--warn   { background: var(--amber-50); color: var(--amber-700); border-color: #F0E0BD; }

/* ============== ICON UTIL ============== */
.ws-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ws-icon--sm { width: 14px; height: 14px; }

/* ============== FOOTER ============== */
.ws-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--divider);
  padding: 24px 0 0;
  margin-top: 40px;
  color: var(--ink-400);
  font-size: 12px;
}
.ws-foot__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
}

/* ============== HOME PAGE ============== */

/* Hero */
.ws-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 36px;
  align-items: stretch;
}
.ws-hero__copy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ws-hero__copy::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--burgundy-700), var(--burgundy-900));
}
.ws-hero__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--burgundy-700);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-hero__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--divider);
}
.ws-hero h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.ws-hero h1 em {
  font-style: normal;
  color: var(--burgundy-700);
}
.ws-hero__lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 44ch;
}
.ws-hero__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}
.ws-hero__meta {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--divider);
}
.ws-hero__meta-item .v {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.ws-hero__meta-item .l {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  font-weight: 500;
  margin-top: 2px;
}
.ws-hero__img {
  border-radius: var(--radius-lg);
  min-height: 340px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(20,14,10,0.4) 100%),
    url("../Images/winesolutionsbuildings.jpg") center / cover no-repeat;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.ws-hero__img-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--ink-700);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-hero__img-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--burgundy-700); }

/* Quick actions */
.ws-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.ws-quick__item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 150ms, transform 150ms;
  text-decoration: none;
}
.ws-quick__item:hover { border-color: var(--burgundy-100); transform: translateY(-1px); }
.ws-quick__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--burgundy-50);
  color: var(--burgundy-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ws-quick__t { font-size: 13.5px; font-weight: 600; color: var(--ink-900); }
.ws-quick__d { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* Services */
.ws-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ws-service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}
.ws-service:hover { border-color: var(--burgundy-100); transform: translateY(-1px); box-shadow: var(--shadow); }
.ws-service__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-400);
  margin-bottom: 12px;
}
.ws-service h2 { font-size: 18px; margin-bottom: 10px; }
.ws-service__body { color: var(--ink-700); font-size: 13.5px; line-height: 1.55; flex: 1; }
.ws-service__sub { margin-top: 14px; }
.ws-service__sub h4 { font-size: 13px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.ws-service__sub p { font-size: 13px; color: var(--ink-700); line-height: 1.5; }
.ws-service__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.ws-service__contact a { color: var(--burgundy-700); }
.ws-service__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Activity + stats grid */
.ws-home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.ws-activity-list { padding: 6px 0; }
.ws-activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--divider);
}
.ws-activity-item:last-child { border-bottom: none; }
.ws-activity__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ws-activity__main { flex: 1; min-width: 0; }
.ws-activity__title { font-size: 13.5px; color: var(--ink-900); font-weight: 500; }
.ws-activity__title b { font-weight: 600; }
.ws-activity__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.ws-activity__when { font-size: 12px; color: var(--ink-400); white-space: nowrap; font-variant-numeric: tabular-nums; }

.ws-side-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--divider);
}
.ws-side-stat:last-child { border-bottom: none; }
.ws-side-stat__label { font-size: 13px; color: var(--ink-700); }
.ws-side-stat__value { font-size: 18px; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ============== PAGE HEAD ============== */
.ws-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.ws-page-head__crumb {
  font-size: 12px;
  color: var(--ink-400);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.ws-page-head__crumb a { color: var(--ink-500); }
.ws-page-head__crumb a:hover { color: var(--burgundy-700); }
.ws-page-head h1 { font-size: 26px; }
.ws-page-head__sub { color: var(--ink-500); font-size: 13.5px; margin-top: 4px; }
.ws-page-head__actions { display: flex; gap: 8px; align-items: center; }

/* ============== STAT STRIP ============== */
.ws-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.ws-stat__label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-500); font-weight: 600; }
.ws-stat__value { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.ws-stat__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }

/* ============== TABS ============== */
.ws-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.ws-tab {
  position: relative;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-500);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws-tab:hover { color: var(--ink-900); }
.ws-tab--active { color: var(--burgundy-700); }
.ws-tab--active::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--burgundy-700);
  border-radius: 2px 2px 0 0;
}
.ws-tab__count {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-400);
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 999px;
}
.ws-tab--active .ws-tab__count { background: var(--burgundy-50); color: var(--burgundy-700); }

/* ============== TOOLBAR ============== */
.ws-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ws-toolbar__left, .ws-toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-muted { color: var(--ink-500); }

/* ============== SEARCH ============== */
.ws-search {
  position: relative;
  max-width: 340px;
}
.ws-search input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0 32px;
  font-size: 13.5px;
  background: var(--surface);
  color: var(--ink-900);
  font-family: inherit;
  transition: border-color 120ms, box-shadow 120ms;
}
.ws-search input::placeholder { color: var(--ink-400); }
.ws-search input:focus { outline: none; border-color: var(--burgundy-700); box-shadow: 0 0 0 3px var(--burgundy-50); }
.ws-search__icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; stroke: var(--ink-400); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* ============== CHIP ============== */
.ws-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
}
.ws-chip:hover { background: var(--surface-2); }
.ws-chip--active { background: var(--burgundy-50); color: var(--burgundy-700); border-color: var(--burgundy-100); }

/* ============== TABLE ============== */
.ws-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ws-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ws-table thead th {
  background: var(--border);
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ws-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  color: var(--ink-900);
  vertical-align: middle;
}
.ws-table tbody tr:last-child td { border-bottom: none; }
.ws-table tbody tr:nth-child(even) { background: var(--surface-2); }
.ws-table tbody tr:hover { background: var(--burgundy-50); }
.ws-table .ws-num { text-align: right; font-variant-numeric: tabular-nums; }
.ws-table thead th.ws-num { text-align: right; }

/* Stock table specifics */
.ws-vintage-cell { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-500); font-variant-numeric: tabular-nums; width: 80px; }
.ws-desc-cell { display: flex; flex-direction: column; gap: 2px; }
.ws-desc-cell .ws-desc { font-weight: 500; color: var(--ink-900); }
.ws-desc-cell .ws-code { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); letter-spacing: 0.02em; }
.ws-alloc-pill {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px;
  border-radius: 4px;
  font-size: 11.5px; font-weight: 600;
  background: var(--amber-50); color: var(--amber-700);
  font-variant-numeric: tabular-nums;
}
.ws-alloc-zero { color: var(--ink-300); font-variant-numeric: tabular-nums; }
.ws-avail-strong { font-weight: 600; color: var(--burgundy-700); font-variant-numeric: tabular-nums; }
.ws-stock-low  { color: var(--red-700); font-weight: 600; }
.ws-stock-warn { color: var(--amber-700); font-weight: 600; }
.ws-stock-ok   { color: var(--green-600); }

/* Deliveries table specifics */
.ws-order-no { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-700); font-weight: 500; }
.ws-cust { font-weight: 500; color: var(--ink-900); }
.ws-cust__sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.ws-date-cell { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.ws-icon-btn {
  width: auto; height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  color: var(--ink-500);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 120ms ease;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ws-icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong, var(--border)); color: var(--ink-900); text-decoration: none; }
.ws-icon-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Loading overlay */
.ws-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(26,22,20,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-overlay__box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  min-width: 320px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.ws-overlay__box h4 { margin: 0 0 16px; font-size: 15px; color: var(--ink-900); }
.ws-overlay__steps { list-style: none; padding: 0; margin: 0; }
.ws-overlay__steps li { padding: 6px 0; font-size: 13.5px; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.ws-overlay__steps li.done { color: var(--green-600); }
.ws-overlay__steps li.err  { color: var(--red-700); }
.ws-overlay__hint { margin-top: 16px; font-size: 12px; color: var(--ink-400); }

/* Sync banner */
.ws-sync-banner {
  background: #EEF2F8;
  border: 1px solid #DDE5F0;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #2F4E80;
}
.ws-sync-banner__bar {
  height: 3px;
  background: var(--burgundy-100);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0;
  overflow: hidden;
}
.ws-sync-banner__bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--burgundy-700), var(--burgundy-500));
  animation: ws-slide 1.5s ease-in-out infinite alternate;
}
@keyframes ws-slide { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
@keyframes ws-spin  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ws-spin { display: inline-block; animation: ws-spin 1.2s linear infinite; }

/* ============== CREATE ORDER ============== */
.ws-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.ws-order-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.ws-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ws-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, #FBF9F4, var(--surface));
}
.ws-panel__head .ws-panel__left { display: flex; align-items: center; gap: 10px; }
.ws-panel__head h3 { font-size: 13.5px; font-weight: 600; color: var(--ink-900); letter-spacing: 0; text-transform: none; }
.ws-panel__meta { font-size: 12px; color: var(--ink-500); }
.ws-panel__body { padding: 20px; }

.ws-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--burgundy-700);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}

.ws-opts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ws-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ws-field__label { font-size: 12.5px; font-weight: 500; color: var(--ink-700); letter-spacing: 0.01em; }
.ws-field__hint  { font-size: 12px; color: var(--ink-400); }
.ws-input {
  font-family: inherit; font-size: 13.5px; color: var(--ink-900);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 8px 10px; height: 36px; width: 100%;
  transition: border-color 120ms, box-shadow 120ms;
}
.ws-input:focus { outline: none; border-color: var(--burgundy-700); box-shadow: 0 0 0 3px var(--burgundy-50); }
textarea.ws-input { height: auto; min-height: 80px; padding: 10px; resize: vertical; }
select.ws-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23645b53' stroke-width='1.5' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px;
}

.ws-check-row { display: flex; flex-direction: column; gap: 2px; }
.ws-check-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-900); cursor: pointer; padding: 6px 0;
}
.ws-check-label input[type="checkbox"] { accent-color: var(--burgundy-700); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

.ws-postage-grid { display: grid; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); gap: 20px; }
.ws-postage-grid > div { min-width: 0; }

/* Address table */
.ws-addr-wrap { border: 1px solid var(--border); border-radius: var(--radius); max-height: 340px; overflow: auto; max-width: 100%; }
.ws-addr-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.ws-addr-table th:nth-child(1), .ws-addr-table td:nth-child(1) { width: 20%; }
.ws-addr-table th:nth-child(2), .ws-addr-table td:nth-child(2) { width: 23%; }
.ws-addr-table th:nth-child(3), .ws-addr-table td:nth-child(3) { width: 22%; }
.ws-addr-table th:nth-child(4), .ws-addr-table td:nth-child(4) { width: 22%; }
.ws-addr-table th:nth-child(5), .ws-addr-table td:nth-child(5) { width: 13%; }
.ws-addr-table thead th {
  background: var(--surface-2); text-align: left;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-500); font-weight: 600; padding: 8px 10px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0;
  white-space: nowrap;
}
.ws-addr-table tbody td { padding: 8px 10px; border-bottom: 1px solid var(--divider); vertical-align: top; overflow-wrap: anywhere; }
.ws-addr-table tbody tr { cursor: pointer; }
.ws-addr-table tbody tr:nth-child(even) { background: var(--surface-2); }
.ws-addr-table tbody tr:hover { background: var(--burgundy-50); }
.ws-addr-table tbody tr.active td { background: var(--burgundy-50); }
.ws-addr-table tbody tr.active td:first-child { box-shadow: inset 3px 0 0 var(--burgundy-700); }
.ws-addr-name { font-weight: 500; color: var(--burgundy-700); }

/* Product qty input */
.ws-qty-input {
  width: 90px; text-align: right; height: 30px; padding: 0 8px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-900);
  font-variant-numeric: tabular-nums; background: var(--surface);
  transition: all 120ms ease;
}
.ws-qty-input:focus { outline: none; border-color: var(--burgundy-700); box-shadow: 0 0 0 3px var(--burgundy-50); }
.ws-qty-input[value]:not([value="0"]):not([value=""]) {
  border-color: var(--burgundy-700); background: var(--burgundy-50);
  color: var(--burgundy-700); font-weight: 600;
}

/* Bootstrap tab overrides */
.ws-tab-nav.nav-tabs { border-bottom: 1px solid var(--border); margin-bottom: 16px; display: flex; gap: 4px; }
.ws-tab-nav.nav-tabs > li > a {
  position: relative; padding: 10px 14px; font-size: 13.5px; font-weight: 500;
  color: var(--ink-500); border: none; border-radius: var(--radius) var(--radius) 0 0;
  background: transparent; transition: color 120ms;
}
.ws-tab-nav.nav-tabs > li > a:hover { color: var(--ink-900); background: transparent; border: none; }
.ws-tab-nav.nav-tabs > li.active > a,
.ws-tab-nav.nav-tabs > li.active > a:hover,
.ws-tab-nav.nav-tabs > li.active > a:focus {
  color: var(--burgundy-700); background: transparent; border: none; border-bottom: none;
}
.ws-tab-nav.nav-tabs > li.active > a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px;
  height: 2px; background: var(--burgundy-700); border-radius: 2px 2px 0 0;
}

/* Summary panel */
.ws-summary { position: sticky; top: 80px; }
.ws-order-summary-column {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}
.ws-order-summary-column .ws-summary { position: static; }
.ws-summary__head {
  padding: 14px 18px 12px; border-bottom: 1px solid var(--divider);
  background: linear-gradient(180deg, var(--burgundy-50), var(--surface));
}
.ws-summary__label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--burgundy-700); font-weight: 600; margin-bottom: 8px;
}
.ws-summary__actions { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ws-summary__actions .ws-btn { justify-content: center; }
.ws-summary__row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 18px; font-size: 13px; border-bottom: 1px solid var(--divider);
}
.ws-summary__row .l { color: var(--ink-500); }
.ws-summary__row .v { color: var(--ink-900); font-weight: 500; }
.ws-summary__customer { padding: 12px 18px; border-bottom: 1px solid var(--divider); }
.ws-summary__cust-name { font-size: 14px; font-weight: 600; color: var(--ink-900); min-height: 18px; }
.ws-summary__cust-addr { font-size: 12px; color: var(--ink-500); margin-top: 3px; min-height: 15px; }
.ws-summary__flags { display: flex; flex-wrap: wrap; gap: 4px; }
.ws-summary__items-head {
  padding: 7px 18px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-400); font-weight: 600; border-bottom: 1px solid var(--divider);
  background: var(--surface-2);
}
.ws-summary__item {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 18px; font-size: 13px; border-bottom: 1px solid var(--divider);
}
.ws-summary__item-desc { color: var(--ink-700); flex: 1; margin-right: 8px; }
.ws-summary__item-qty { color: var(--burgundy-700); font-weight: 600; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; }
.ws-summary__empty { padding: 12px 18px; font-size: 13px; color: var(--ink-400); font-style: italic; }
.ws-summary__total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-top: 2px solid var(--burgundy-100);
  background: var(--burgundy-50);
}
.ws-summary__total .l { font-size: 12.5px; color: var(--ink-600); font-weight: 500; }
.ws-summary__total-num { font-size: 22px; font-weight: 700; color: var(--burgundy-700); font-family: var(--font-mono); }
.ws-btn--success { background: #16A34A; border-color: #15803D; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12); }
.ws-btn--success:hover { background: #15803D; }
.ws-summary__ghost {
  text-align: center; font-size: 13px; color: var(--ink-500);
  text-decoration: none; padding: 4px 0;
  transition: color 120ms;
}
.ws-summary__ghost:hover { color: var(--burgundy-700); }
/* Processing overlay */
.ws-processing-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.ws-processing-overlay.is-active { opacity: 1; pointer-events: all; }
.ws-processing-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  min-width: 220px; text-align: center;
}
.ws-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--burgundy-700);
  border-radius: 50%;
  animation: ws-spin 0.75s linear infinite;
}
@keyframes ws-spin { to { transform: rotate(360deg); } }
.ws-processing-label { font-size: 14px; font-weight: 500; color: var(--ink-700); }
.ws-processing-sub  { font-size: 12.5px; color: var(--ink-400); }

/* Modal */
.ws-modal-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.ws-modal-overlay.is-active { opacity: 1; pointer-events: all; }
.ws-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  width: 100%; max-width: 380px;
}
.ws-modal--wide { max-width: 860px; max-height: 82vh; overflow: hidden; display: flex; flex-direction: column; }
.ws-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.ws-modal__title { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 8px; }
.ws-modal__sub { font-size: 12.5px; color: var(--ink-500); }
.ws-modal__body  { font-size: 13.5px; color: var(--ink-500); margin-bottom: 24px; line-height: 1.5; }
.ws-modal__actions { display: flex; gap: 8px; justify-content: flex-end; }
.ws-modal__close {
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ws-modal__close:hover { color: var(--ink-900); }
.ws-btn--danger { background: #DC2626; border-color: #B91C1C; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.ws-btn--danger:hover { background: #B91C1C; }

.ws-admin-link {
  display: flex; align-items: center;
  padding: 11px 20px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: background 100ms ease;
}
.ws-admin-link:last-child { border-bottom: none; }
.ws-admin-link:hover { background: var(--surface-2); color: var(--ink-900); text-decoration: none; }
.ws-admin-link::after { content: ""; display: block; margin-left: auto; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-400); border-top: 1.5px solid var(--ink-400); transform: rotate(45deg); }

.ws-admin-tools { display: flex; flex-direction: column; }
.ws-admin-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--amber-50);
  border-bottom: 1px solid #F0E0BD;
  color: var(--amber-700);
}
.ws-admin-notice span { margin-left: 4px; color: var(--ink-700); }
.ws-admin-tools__group { border-bottom: 1px solid var(--divider); }
.ws-admin-tools__group:last-child { border-bottom: none; }
.ws-admin-tools__title {
  padding: 11px 20px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  background: var(--surface-2);
  border-bottom: 1px solid var(--divider);
}
.ws-admin-tools__group .ws-admin-link { padding-left: 20px; }

.ws-admin-create-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.25fr);
  gap: 14px 16px;
  align-items: end;
}
.ws-admin-create-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.ws-admin-create-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.ws-panel__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Manage logins */
.ws-logins-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider);
}
.ws-logins-filter .ws-search { flex: 1 1 320px; max-width: 420px; }
.ws-check-label--inline {
  flex-direction: row;
  margin: 0;
  white-space: nowrap;
}
.ws-logins-wrap { padding: 0; overflow-x: auto; }
.ws-logins-table {
  width: 100%;
  min-width: 1040px;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.ws-logins-table th,
.ws-logins-table td {
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.ws-logins-table th {
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}
.ws-table-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ws-table-sort:hover,
.ws-table-sort--active { color: var(--ink-900); }
.ws-table-sort__mark {
  display: inline-block;
  width: 10px;
  color: var(--ink-500);
  font-size: 9px;
}
.ws-logins-table td { padding: 10px 12px; }
.ws-logins-table tr:last-child td { border-bottom: none; }
.ws-logins-table tbody tr:nth-child(even) { background: var(--surface-2); }
.ws-logins-table th:nth-child(1), .ws-logins-table td:nth-child(1) { width: 28%; }
.ws-logins-table th:nth-child(2), .ws-logins-table td:nth-child(2) { width: 22%; }
.ws-logins-table th:nth-child(3), .ws-logins-table td:nth-child(3) { width: 10%; }
.ws-logins-table th:nth-child(4), .ws-logins-table td:nth-child(4) { width: 14%; }
.ws-logins-table th:nth-child(5), .ws-logins-table td:nth-child(5) { width: 26%; }
.ws-login-primary { font-weight: 500; color: var(--ink-900); overflow-wrap: anywhere; }
.ws-login-meta { margin-top: 3px; color: var(--ink-500); font-size: 12px; line-height: 1.35; }
.ws-login-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ws-login-badge--ok { background: var(--green-50); color: var(--green-600); }
.ws-login-badge--bad { background: var(--red-50); color: var(--red-700); }
.ws-login-issue { display: block; font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.ws-login-issue--ok { color: var(--green-600); font-weight: 600; }
.ws-login-issue--bad { color: var(--red-700); }
.ws-login-actions { display: flex; flex-direction: column; gap: 8px; }
.ws-login-link-form { display: flex; gap: 6px; align-items: center; }
.ws-login-select { width: 100%; min-width: 0; height: 30px; padding: 4px 8px; font-size: 12.5px; }
.ws-login-secondary-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ws-registration-queue { padding: 0; }
.ws-registration-request {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(420px, 1.4fr);
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
}
.ws-registration-request:last-child { border-bottom: none; }
.ws-registration-request:nth-child(even) { background: var(--surface-2); }
.ws-registration-request--denied { background: var(--surface-2); }
.ws-registration-request__details { min-width: 0; }
.ws-registration-request__notes {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.ws-registration-request__actions { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-registration-request__actions--compact { align-items: flex-end; justify-content: center; }
.ws-registration-approve,
.ws-registration-deny { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-registration-approve .ws-login-select { flex: 1 1 220px; }
.ws-denied-registration-list {
  overflow-y: auto;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.ws-input--compact { height: 30px; padding: 4px 8px; font-size: 12.5px; max-width: 240px; }

.ws-confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }

/* Order detail view */
.ws-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.ws-detail-field { display: flex; flex-direction: column; gap: 3px; }
.ws-detail-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); }
.ws-detail-value { font-size: 13.5px; color: var(--ink-900); }
.ws-detail-value--mono { font-family: var(--font-mono); font-size: 12.5px; }
.ws-detail-value--muted { color: var(--ink-500); font-style: italic; }
.ws-status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-700); border: 1px solid var(--border); }
.ws-detail-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); margin: 0 0 14px; }
.ws-amount-cell { font-family: var(--font-mono); font-size: 12.5px; text-align: right; }
.ws-input--readonly { background: var(--surface-2); color: var(--ink-500); cursor: default; }
.ws-step--admin { background: var(--ink-400); }
.ws-check-row--wrap { flex-wrap: wrap; }
.ws-summary__errors { font-size: 12.5px; color: var(--red-700); padding: 0; margin-bottom: 8px; }
.ws-summary__errors ul { margin: 0; padding-left: 16px; }
.validation-summary-valid { display: none; }
.ws-qty-control { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.ws-qty-actions { display: inline-flex; gap: 4px; }
.ws-qty-add { white-space: nowrap; padding: 4px 7px; }
.ws-qty-add--primary { background: var(--burgundy-700); border-color: var(--burgundy-700); color: #fff; }
.ws-qty-add--primary:hover, .ws-qty-add--primary:focus { background: var(--burgundy-800); border-color: var(--burgundy-800); color: #fff; }
.ws-qty-add:disabled { opacity: .4; cursor: not-allowed; }
.ws-qty-control .error, .ws-qty-control .warning { flex-basis: 100%; text-align: right; }
.ws-attachment-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-attachment-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); }
.ws-attachment-name { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 13px; }
.ws-attachment-size { color: var(--ink-400); font-size: 12px; white-space: nowrap; }
.ws-attachment-error { margin-top: 10px; color: var(--red-700); font-size: 12.5px; }
.ws-attachment-progress { margin-top: 10px; color: var(--ink-500); font-size: 12.5px; }
.ws-alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13.5px; }
.ws-alert--warning { background: var(--amber-50); border: 1px solid #F0E0BD; color: var(--amber-700); }
.ws-alert--error { background: #FEF2F2; border: 1px solid #FECACA; color: var(--red-700); }
.ws-alert--info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A5F; }
.ws-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin-bottom: 16px; }
.ws-mode-option { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.ws-mode-option:hover { border-color: var(--burgundy-300); }
.ws-mode-option.is-selected { border-color: var(--burgundy-700); box-shadow: 0 0 0 1px var(--burgundy-700); background: var(--burgundy-50); }
.ws-mode-option input { margin-top: 3px; }
.ws-mode-option strong, .ws-mode-option small { display: block; }
.ws-mode-option small { margin-top: 3px; color: var(--ink-500); font-weight: 400; }
.ws-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.ws-inline-actions { display: flex; gap: 10px; margin-top: 16px; }
.ws-file-input { height: auto; padding: 8px 10px; }
.ws-bulk-two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.ws-section-stack > .ws-panel + .ws-panel,
.ws-section-stack > .ws-panel + .ws-bulk-two-col,
.ws-section-stack > .ws-bulk-two-col + .ws-panel { margin-top: 16px; }
.ws-bulk-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ws-bulk-stat { margin-top: 5px; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--ink-700); }
.ws-bulk-stat--file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-table-wrap { overflow-x: auto; }
.ws-bulk-stock-table { min-width: 720px; }
.ws-charge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 5px 18px; }
.ws-product-search-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 8px; }
.ws-product-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); }
.ws-product-result strong, .ws-product-result small { display: block; }
.ws-product-result small { margin-top: 2px; color: var(--ink-400); }
.ws-recipient-list { display: flex; flex-direction: column; gap: 8px; }
.ws-recipient-card { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(280px, 1.25fr) auto; gap: 8px 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-1); }
.ws-recipient-card.is-invalid { border-color: #FCA5A5; background: #FEF2F2; }
.ws-recipient-select { display: flex; gap: 9px; align-items: flex-start; margin: 0; }
.ws-recipient-select strong, .ws-recipient-select small { display: block; }
.ws-recipient-select small, .ws-recipient-address { color: var(--ink-500); font-size: 12.5px; }
.ws-recipient-address strong, .ws-recipient-address small { display: block; }
.ws-recipient-address strong { color: var(--ink-700); font-weight: 500; }
.ws-recipient-address small { margin-top: 3px; color: var(--ink-400); }
.ws-recipient-address-action { justify-self: end; }
.ws-recipient-products { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; padding-left: 25px; }
.ws-recipient-product { padding: 3px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--divider); font: inherit; font-size: 11.5px; line-height: 1.4; color: var(--ink-500); }
button.ws-recipient-product { cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease, color .15s ease; }
button.ws-recipient-product:hover, button.ws-recipient-product:focus { border-color: var(--brand-500); background: var(--surface-1); color: var(--brand-700); outline: none; }
button.ws-recipient-product.is-unmatched { border-color: #FCA5A5; background: #FFF7ED; color: var(--red-700); }
.ws-recipient-error { grid-column: 1 / -1; padding-left: 25px; color: var(--red-700); font-size: 12px; }
.ws-recipient-warning { grid-column: 1 / -1; padding-left: 25px; color: var(--amber-700); font-size: 12px; }
.ws-recipient-bundle { grid-column: 1 / -1; padding-left: 25px; color: var(--ink-400); font-size: 11.5px; }
.ws-stock-short { background: #FEF2F2; }
.ws-status-badge { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #E2E8F0; color: #475569; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ws-status-succeeded, .ws-status-completed { background: #DCFCE7; color: #166534; }
.ws-status-failed, .ws-status-completedwitherrors, .ws-status-needsreview { background: #FEE2E2; color: #991B1B; }
.ws-status-running, .ws-status-processing { background: #DBEAFE; color: #1D4ED8; }
.ws-status-blocked { background: #FEF3C7; color: #92400E; }
.ws-bulk-error { max-width: 420px; color: var(--red-700); font-size: 12px; overflow-wrap: anywhere; }
.ws-modal--customer { max-width: 620px; }
.ws-customer-import-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-bottom: 18px; }
.ws-customer-import-grid .ws-field { margin: 0; }
.ws-customer-import-grid .ws-field--wide { grid-column: 1 / -1; }
.ws-customer-import-success { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0 4px; color: #166534; font-size: 17px; }
.ws-customer-import-success__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #DCFCE7; color: #166534; font-size: 24px; font-weight: 700; }
.ws-modal--product-picker { max-width: 720px; }
.ws-product-picker-results { display: flex; flex-direction: column; gap: 6px; max-height: 390px; margin-top: 14px; overflow-y: auto; }
.ws-product-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-1); color: var(--ink-700); font: inherit; text-align: left; cursor: pointer; }
.ws-product-picker-option:hover, .ws-product-picker-option:focus { border-color: var(--brand-500); background: var(--surface-2); outline: none; }
.ws-product-picker-option[hidden], .ws-product-picker-empty[hidden] { display: none; }
.ws-product-picker-option span:first-child, .ws-product-picker-option strong, .ws-product-picker-option small { display: block; }
.ws-product-picker-option small { margin-top: 2px; color: var(--ink-400); }
.ws-product-picker-stock { flex: 0 0 auto; color: var(--ink-400); font-size: 12px; }
.ws-product-picker-empty { padding: 24px; color: var(--ink-400); text-align: center; }

@media (max-width: 1100px) {
  .ws-order-layout  { grid-template-columns: 1fr; }
  .ws-order-summary-column { position: static; max-height: none; overflow: visible; }
  .ws-postage-grid  { grid-template-columns: 1fr; }
  .ws-opts-grid     { grid-template-columns: 1fr; }
  .ws-bulk-two-col  { grid-template-columns: 1fr; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .ws-hero      { grid-template-columns: 1fr; }
  .ws-services  { grid-template-columns: 1fr; }
  .ws-quick     { grid-template-columns: 1fr 1fr; }
  .ws-home-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ws-quick { grid-template-columns: 1fr; }
  .ws-nav__right span { display: none; }
  .ws-admin-tools { grid-template-columns: 1fr; }
  .ws-admin-tools__group { border-bottom: 1px solid var(--divider); }
  .ws-admin-tools__group:last-child { border-bottom: none; }
  .ws-admin-create-grid { grid-template-columns: 1fr; }
  .ws-admin-create-actions { justify-content: flex-start; }
  .ws-registration-request { grid-template-columns: 1fr; }
  .ws-bulk-summary-grid { grid-template-columns: 1fr; }
  .ws-recipient-card { grid-template-columns: 1fr; }
  .ws-recipient-address-action { justify-self: start; padding-left: 25px; }
  .ws-customer-import-grid { grid-template-columns: 1fr; }
  .ws-customer-import-grid .ws-field--wide { grid-column: auto; }
  .ws-mode-switch { grid-template-columns: 1fr; }
}
