:root {
  --bg: #edf2fb;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --panel-soft: #f6f8fd;
  --line: rgba(213, 222, 239, 0.95);
  --text: #1f2b44;
  --muted: #6b7b98;
  --blue: #5f82e6;
  --blue-strong: #4f73da;
  --blue-soft: #edf3ff;
  --green-soft: #eef8f3;
  --green: #4c9b7b;
  --shadow: 0 24px 70px rgba(15, 26, 46, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
  background: #dfe7f6;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Aptos, "Segoe UI", Inter, system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(244, 247, 252, 0.88), rgba(232, 238, 250, 0.9)),
    url("/walker-index/walker-index.jpg") center / cover fixed no-repeat;
}

.page-glow {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
}

.glow-one {
  width: 260px;
  height: 260px;
  top: -90px;
  right: -50px;
  background: rgba(96, 130, 230, 0.65);
}

.glow-two {
  width: 260px;
  height: 260px;
  bottom: -110px;
  left: -70px;
  background: rgba(114, 198, 170, 0.52);
}

.uniform-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px);
}

.hero-card,
.panel-card,
.summary-bar,
.success-card,
.uniform-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card,
.panel-card,
.success-card {
  border-radius: 26px;
}

.hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.hero-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
}

.hero-home-link {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(95, 130, 230, 0.12);
  overflow: hidden;
  flex: 0 0 auto;
}

.hero-home-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow,
.section-label,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #dbe5ff;
  color: var(--blue-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h1,
.panel-head h2,
.success-card h2 {
  margin: 12px 0 0;
  color: var(--text);
  font-size: clamp(1.75rem, 5vw, 2.3rem);
  line-height: 0.98;
}

.connected-employee-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid #a9dcd5;
  border-radius: 18px;
  background: linear-gradient(110deg, #e6f9f5, #f7fbff);
  box-shadow: 0 12px 30px rgba(0, 116, 104, 0.09);
}

.connected-employee-initial {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, #008f83, #07545a);
  font-size: 1.15rem;
  font-weight: 900;
}

.connected-employee-card > div:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.connected-employee-card strong {
  overflow: hidden;
  color: var(--text);
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.connected-employee-card small {
  color: var(--muted);
  font-weight: 700;
}

.panel-head h2,
.success-card h2 {
  font-size: 1.5rem;
  line-height: 1.08;
}

.hero-copy,
.muted,
.sub,
.summary-copy span {
  color: var(--muted);
}

.hero-copy {
  max-width: 480px;
  margin: 8px 0 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(124px, 1fr));
  gap: 12px;
  min-width: 290px;
}

.hero-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.hero-stat-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stat strong {
  font-size: 1.3rem;
  line-height: 1;
}

.hero-stat span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.uniform-request-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.panel-card {
  padding: 22px;
}

.requester-card-compact {
  padding-top: 16px;
}

.requester-inline-note {
  margin-bottom: 14px;
  padding: 0 2px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.panel-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.panel-head-spread {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.panel-head h2 {
  margin-top: 8px;
}

.panel-head p {
  margin: 0;
  max-width: 560px;
  line-height: 1.55;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-notes {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field span,
.catalog-search span,
.size-field span {
  color: #5f6f8d;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8e0f1;
  border-radius: 16px;
  background: #f9fbff;
  color: var(--text);
  padding: 13px 15px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #91a0bb;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(95, 130, 230, 0.7);
  box-shadow: 0 0 0 4px rgba(95, 130, 230, 0.12);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.catalog-search {
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
}

.catalog-state {
  min-height: 1.25rem;
  text-align: right;
}

.catalog-grid {
  display: grid;
  gap: 12px;
}

.uniform-card {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.uniform-card:hover {
  transform: translateY(-1px);
  border-color: rgba(95, 130, 230, 0.28);
}

.uniform-card.active {
  border-color: rgba(95, 130, 230, 0.42);
  box-shadow: 0 12px 26px rgba(95, 130, 230, 0.12);
  background: #fbfdff;
}

.uniform-card.included {
  border-color: rgba(0, 158, 142, 0.55);
  background: #f2fcfa;
}

.uniform-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.thumb {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f9ff;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-main {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.row-header {
  display: grid;
  gap: 4px;
}

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

.stock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid #efb4bc;
  border-radius: 999px;
  color: #a42334;
  background: #fff0f1;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.uniform-card.out-of-stock {
  border-color: #e3d9da;
  background: #f8f6f6;
  box-shadow: none;
}

.uniform-card.out-of-stock:hover {
  transform: none;
  border-color: #e3d9da;
}

.uniform-card.out-of-stock .thumb,
.uniform-card.out-of-stock .row-header .sub {
  opacity: .62;
}

.uniform-card.out-of-stock .check-wrap {
  color: #8c5960;
  border-color: #ecd7da;
  background: #fff7f7;
  cursor: not-allowed;
}

.title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.sub {
  font-size: 0.84rem;
  line-height: 1.4;
}

.row-fields {
  display: block;
}

.size-field {
  display: grid;
  gap: 8px;
}

.row-fields.selection-collapsed .size-field {
  display: none;
}

.size-select {
  min-width: 0;
}

.check-wrap {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: #4c5b75;
  font-weight: 700;
}

.inc-toggle {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.size-picker-trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(135deg,#008f83,#00a995);
  font-weight: 900;
  cursor: pointer;
}

.size-picker-trigger.selected {
  color: #006d66;
  border-color: #8ed5cd;
  background: #e4f8f4;
}

.size-picker-trigger:disabled {
  color: #a42334;
  border-color: #efb4bc;
  background: #fff0f1;
  cursor: not-allowed;
}

.selection-pill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.summary-bar {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  margin-top: 2px;
  border-radius: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.summary-copy {
  display: grid;
  gap: 4px;
}

.selected-summary {
  min-width: 0;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
}

.selected-items-list {
  display: grid;
  gap: 7px;
}

.selected-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid #bfe0dc;
  border-radius: 12px;
  background: #fff;
}

.selected-item-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.selected-item-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-item-row small {
  color: var(--muted);
  font-weight: 800;
}

.selected-item-row button {
  min-height: 36px;
  padding: 0 10px;
  color: #a42334;
  border: 1px solid #efc5ca;
  border-radius: 10px;
  background: #fff5f6;
  font-weight: 850;
}

.size-picker-dialog {
  width: min(520px,calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(5,31,36,.32);
}

.size-picker-dialog::backdrop {
  background: rgba(5,31,36,.64);
  backdrop-filter: blur(5px);
}

.size-picker-panel {
  display: grid;
  grid-template-rows:auto minmax(0,1fr);
  max-height: inherit;
}

.size-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg,#e8faf7,#eef7ff);
}

.size-picker-head h2 {
  margin: 7px 0 0;
  font-size: 1.35rem;
}

.size-picker-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  padding: 18px;
  overflow: auto;
}

.size-choice {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f5faf9;
  font-weight: 900;
}

.size-choice strong { font-size: 1.05rem; }
.size-choice span { color: #08704d;font-size:.7rem;text-transform:uppercase; }
.size-choice.selected { color:#006d66;border-color:#68c9bd;background:#dff6f2; }
.size-choice:disabled { color:#9d6a70;border-color:#ecd7da;background:#fff5f6;cursor:not-allowed; }
.size-choice:disabled span { color:#a42334; }

.summary-copy strong {
  font-size: 1rem;
}

.field-error {
  color: #b42336;
  font-size: 0.78rem;
  font-weight: 800;
}

.catalog-error {
  margin: 12px 0 0;
}

.review-dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 30px 90px rgba(9, 39, 45, 0.32);
}

.review-dialog::backdrop {
  background: rgba(5, 31, 36, 0.62);
  backdrop-filter: blur(6px);
}

.review-panel {
  display: grid;
  max-height: inherit;
}

.review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(115deg, #e8faf7, #eef7ff);
}

.review-head h2 {
  margin: 4px 0 0;
}

.review-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 900;
}

.review-content {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  overflow: auto;
}

.review-contact {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: #f2f8f7;
}

.review-contact span,
.review-contact small {
  color: var(--muted);
}

.review-items {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.review-items div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

.review-items div:last-child {
  border-bottom: 0;
}

.review-items span {
  color: #087f78;
  font-weight: 900;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}

body.modal-open {
  overflow: hidden;
}

.btn-primary,
.btn-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 16px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), #6d8de0);
  border: 1px solid transparent;
  box-shadow: 0 12px 24px rgba(95, 130, 230, 0.24);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  color: var(--blue-strong);
  background: #ffffff;
  border: 1px solid var(--line);
}

.success-card {
  margin-top: 16px;
  padding: 24px;
}

.success-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.current-order-details {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.current-order-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(236, 252, 249, 0.72);
}

.current-order-top span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-order-top strong {
  color: var(--text);
}

.current-order-items {
  display: grid;
  gap: 8px;
}

.current-order-item,
.current-order-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.current-order-item strong {
  color: var(--text);
}

.current-order-item span,
.current-order-empty {
  color: var(--muted);
  font-weight: 800;
}

.success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dce6ff;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 34px rgba(20, 31, 54, 0.16);
}

@media (max-width: 900px) {
  .hero-card,
  .panel-head-spread,
  .summary-bar,
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-side,
  .form-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-side {
    min-width: 0;
  }

  .catalog-state {
    text-align: left;
  }

  .uniform-row {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 72px;
    height: 72px;
  }

  .row-fields {
    grid-template-columns: 1fr;
  }

  .selection-pill {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .uniform-shell {
    padding: 14px;
  }

  .panel-card { padding: 15px; }

  .catalog-grid { gap: 9px; }

  .uniform-card { padding: 11px; }

  .summary-bar {
    position: sticky;
    bottom: 8px;
    z-index: 20;
    gap: 12px;
  }

  .summary-bar>.btn-primary { width:100%; }

  .size-picker-dialog {
    width:100%;
    max-width:none;
    margin:auto 0 0;
    border-radius:22px 22px 0 0;
  }

  .hero-card,
  .panel-card,
  .success-card {
    border-radius: 22px;
    padding: 18px;
  }

  .hero-brand {
    flex-direction: column;
  }

  .uniform-card {
    padding: 10px;
  }

  .uniform-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 10px;
  }

  .thumb {
    width: 66px;
    height: 66px;
    grid-row: 1;
  }

  .row-main {
    gap: 8px;
  }

  .row-fields {
    gap: 8px;
  }

  .check-wrap {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .selection-pill {
    display: none;
  }

  .summary-bar {
    position: sticky;
    bottom: 8px;
    padding: 11px;
    z-index: 20;
  }

  .summary-copy span {
    display: none;
  }

  .summary-bar .btn-primary {
    min-height: 44px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .success-actions {
    display: grid;
  }

  .review-head,
  .review-content,
  .review-actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .review-actions {
    display: grid;
  }
}
