:root {
  color-scheme: light;
  /* Canonical tokens (deduped). Keep these as the single source of truth. */
  /* Lighter Apple off-white with a subtle pale blush undertone (less beige/yellow). */
  --bg: #f3eff3;
  --ink: #111111;
  --soft-ink: #6e6a64;
  --muted: #6e6a64;
  --panel: #fbf8fb;
  --panel-2: #f0ebf1;
  --charcoal: #111111;
  --charcoal-2: #302c26;
  --silver: #d5d0c7;
  --track: #cfc7bb;
  --line: rgba(17, 17, 17, 0.08);
  --hairline: rgba(255, 255, 255, 0.76);
  --glass: rgba(251, 249, 252, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow: var(--shadow-float);
  --soft-shadow: var(--shadow-card);
  --lift-shadow: var(--shadow-float);
  --spring: 420ms cubic-bezier(0.2, 0.9, 0.2, 1.05);
  --accent: #3f00ff;
  --danger: #c65b5b;

  /* Spacing scale (use these only): 4, 8, 12, 16, 24, 32 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  /* Radius system */
  --radius-app: 34px;
  --radius-xl: 28px; /* large panels */
  --radius-lg: 22px; /* cards */
  --radius-md: 18px; /* buttons */
  --nav-height: 92px;
  --add-order-header-height: 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01";
  font-size: 15px;
  font-weight: 500;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -1;
  pointer-events: none;
}

body::before {
  top: 2%;
  left: 50%;
  width: min(34rem, 110vw);
  height: min(34rem, 110vw);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(236, 230, 240, 0.22) 52%, transparent 72%);
  filter: blur(24px);
  transform: translateX(-50%);
}

body::after {
  right: -6rem;
  bottom: -6rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 124, 140, 0.16), transparent 66%);
  filter: blur(34px);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  overflow: clip;
  border-radius: var(--radius-app);
  background: transparent;
}

/* Allow sticky subpage header to remain visible while scrolling. */
body.is-subpage .app-shell {
  overflow: visible;
}

.main-view {
  display: none;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 16px calc(var(--nav-height) + 54px + env(safe-area-inset-bottom));
}

/* Subpages: sit closer to the status bar (Safari) while respecting the safe area. */
body.is-subpage .main-view {
  padding-top: env(safe-area-inset-top);
}

body.is-authenticated .main-view {
  display: block;
}

body.is-authenticated .bottom-nav {
  display: grid;
}

body.has-modal {
  overflow: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35) 55%, transparent 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--spring), transform var(--spring);
}

.login-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.is-authenticated .login-screen {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
}

.onboarding-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.onboarding-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.onboarding-loader {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.onboarding-logo {
  width: 64px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.onboarding-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-left-color: rgba(0,0,0,.85);
  border-bottom-color: rgba(0,0,0,.85);
  animation: onboardingSpin 900ms linear infinite;
}

@keyframes onboardingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ambient {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.48;
  pointer-events: none;
}

.ambient-one {
  top: 6%;
  left: -80px;
  background: radial-gradient(circle, #ffffff, transparent 66%);
}

.ambient-two {
  right: -90px;
  bottom: 14%;
  background: radial-gradient(circle, #eceaf2, transparent 68%);
}

.glass-panel,
.glass-card,
.glass-nav {
  position: relative;
  overflow: hidden;
  /* Global surface system: match Tempahan category card depth across the app. */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(17, 17, 17, 0.075),
    0 6px 18px rgba(17, 17, 17, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.035);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
}

.glass-panel::before,
.glass-card::before,
.glass-nav::before {
  /* Prevent double borders/highlights; depth comes from the unified shadow system. */
  content: none;
}

.glass-panel::after,
.glass-card::after,
.glass-nav::after {
  content: none;
}

.glass-panel > *,
.glass-card > *,
.glass-nav > * {
  position: relative;
  z-index: 1;
}

.glass-panel {
  border-radius: var(--radius-xl);
}

.glass-card {
  border-radius: var(--radius-lg);
}

.login-panel {
  width: min(100%, 390px);
  padding: 18px 20px 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: riseIn 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 16px;
}

.login-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

/* Premium Apple-style login */
.login-hello {
  /* Match Tempahan gateway "Hello," exactly */
  margin: 8px 0 0;
  font-size: 56px;
  font-weight: 700;
  color: #0088fb;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
}

.login-sub {
  /* Match Tempahan gateway question typography exactly */
  margin: 0;
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #1c1c1e;
  line-height: normal;
}

.login-sub strong {
  display: block;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-field > span {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.6);
  letter-spacing: -0.01em;
}

.login-input {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  padding: 0 12px 0 10px;
  min-height: 50px;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(17, 17, 15, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.08);
}

.login-input-icon {
  display: grid;
  place-items: center;
  color: rgba(17, 17, 15, 0.52);
}

.login-input input {
  border: 0;
  background: transparent;
  min-height: 50px;
  padding: 0 6px 0 2px;
  outline: none;
}

.login-input--pass {
  grid-template-columns: 32px minmax(0, 1fr) 40px;
  padding-right: 6px;
}

.login-eye {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: rgba(17, 17, 15, 0.62);
  cursor: pointer;
  transition: transform var(--spring), filter var(--spring);
}

.login-eye:active {
  transform: translateY(1px) scale(0.98);
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(17, 17, 15, 0.62);
  font-weight: 650;
  font-size: 13px;
}

.login-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #111111;
}

.login-link {
  border: 0;
  background: transparent;
  padding: 8px 8px;
  margin: -8px -8px;
  color: rgba(0, 136, 251, 0.88);
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
}

.login-submit {
  margin-top: 2px;
  min-height: 50px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 44px rgba(0, 0, 0, 0.18);
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 2px 0 2px;
  color: rgba(17, 17, 15, 0.4);
}

.login-divider span {
  height: 1px;
  background: rgba(17, 17, 15, 0.1);
}

.login-divider small {
  font-size: 12px;
  font-weight: 600;
}

.login-bio {
  border: 0;
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  cursor: pointer;
  color: rgba(17, 17, 15, 0.86);
  font-weight: 650;
  background: transparent;
  transition: transform var(--spring), filter var(--spring);
}

.login-bio:active {
  transform: translateY(1px) scale(0.99);
}

.login-bio-icon {
  color: rgba(0, 136, 251, 0.9);
}

.login-foot {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-top: 2px;
  color: rgba(17, 17, 15, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.login-foot-lock {
  font-size: 14px;
  opacity: 0.7;
}

.login-ambient {
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
  opacity: 0.75;
}

.login-ambient--a {
  width: min(520px, 120vw);
  height: min(520px, 120vw);
  left: 50%;
  top: -26%;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.9), rgba(230, 232, 246, 0.26) 55%, transparent 72%);
}

.login-ambient--b {
  width: 260px;
  height: 260px;
  right: -120px;
  bottom: -140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 136, 251, 0.16), transparent 70%);
  filter: blur(36px);
  opacity: 0.55;
}

.login-ambient--c {
  width: 320px;
  height: 320px;
  left: -160px;
  bottom: -160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(242, 234, 246, 0.24) 52%, transparent 72%);
  filter: blur(38px);
  opacity: 0.75;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: #111113;
  color: white;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -10px 18px rgba(255, 255, 255, 0.05), 0 18px 38px rgba(0, 0, 0, 0.2);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 12px;
  font-size: clamp(2.45rem, 11vw, 3.45rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
  letter-spacing: 0;
}

.muted {
  color: var(--soft-ink);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-size: 0.82rem;
  font-weight: 650;
}

input,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(20, 20, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(22, 22, 28, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus {
  border-color: rgba(17, 17, 19, 0.34);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 0 4px rgba(17, 17, 19, 0.055), 0 12px 30px rgba(22, 22, 28, 0.07);
}

.primary-button,
.secondary-button,
.icon-button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.primary-button {
  min-height: 56px;
  border-radius: 20px;
  background: #111113;
  color: #fff;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 17px 36px rgba(0, 0, 0, 0.2);
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
}

.primary-button:active,
.secondary-button:active,
.nav-item:active,
.icon-button:active {
  transform: scale(0.97);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.nav-item:hover {
  filter: brightness(1.02);
}

.wide {
  width: 100%;
}

.secondary-button {
  min-width: 88px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: #111113;
  color: white;
  font-weight: 720;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 26px rgba(0, 0, 0, 0.16);
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
}

.topbar {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  min-height: 48px;
  padding: 0 8px;
  margin: 0 0 10px;
  background: rgba(243, 239, 243, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.topbar > div {
  display: flex;
  align-items: center;
  text-align: left;
}

.topbar .eyebrow {
  display: none !important;
}

.topbar h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em;
  text-align: left;
  color: rgba(17, 17, 15, 0.92);
  display: flex;
  align-items: center;
  height: 40px;
}

.topbar-search {
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--spring), filter var(--spring);
}

.topbar-search:active {
  transform: translateY(1px) scale(0.98);
}

.topbar-search svg {
  width: 18px;
  height: 18px;
  display: block;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(22, 22, 28, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.page {
  display: none;
  animation: pageIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page.is-active {
  display: block;
}

.subview {
  display: none;
  animation: pageIn 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.subview.is-active {
  display: block;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  min-height: 164px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 1.65rem;
  line-height: 1.05;
}

.hero-orbit {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(17, 17, 19, 0.92), rgba(58, 58, 64, 0.92));
  color: white;
  font-size: 1.65rem;
  font-weight: 820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -18px 30px rgba(255, 255, 255, 0.045), 0 22px 44px rgba(0, 0, 0, 0.2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}

.metric-card {
  min-height: 112px;
  padding: 18px;
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.metric-value {
  display: block;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 820;
  line-height: 1;
}

.metric-label {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 600;
  opacity: 0.78;
}

.content-block {
  margin: 26px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin: 0 2px var(--sp-3);
}

.section-heading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading span,
.order-meta,
.compact-list span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.stack {
  display: grid;
  gap: var(--sp-3);
}

.list-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  transition: transform var(--spring), box-shadow var(--spring);
}

.list-card p {
  margin: 4px 0 0;
  color: var(--soft-ink);
  font-size: 0.9rem;
  line-height: 1.42;
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #111113;
}

.status-dot.mid {
  background: #7a7a82;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
}

.calendar-strip div {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 18px;
  color: var(--soft-ink);
  transition: transform var(--spring), background var(--spring), color var(--spring);
}

.calendar-strip .is-current {
  background: #111113;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 22px rgba(0, 0, 0, 0.14);
}

.calendar-strip span {
  font-size: 1.25rem;
  font-weight: 800;
}

.calendar-strip small {
  color: inherit;
  opacity: 0.78;
  font-weight: 650;
}

.stock-alert,
.compact-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stock-alert {
  min-height: 58px;
  padding: 0 16px;
  transition: transform var(--spring), box-shadow var(--spring);
}

.tempahan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 14px;
}

.page-subtitle {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.35;
}

.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.control-header h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.ops-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  min-height: 140px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.ops-overview article {
  display: grid;
  align-content: space-between;
  min-width: 0;
  min-height: 104px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.ops-overview .metric-value {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 9vw, 2.1rem);
}

.ops-overview .metric-label {
  line-height: 1.18;
}

.compact-overview {
  min-height: 118px;
  margin-bottom: 12px;
}

.compact-overview article {
  min-height: 82px;
}

.outlet-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.outlet-context p {
  display: grid;
  justify-items: end;
  min-width: 0;
  margin: 0;
  text-align: right;
}

.outlet-context strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}

.outlet-context span,
.ops-module small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.ops-module {
  display: grid;
  align-content: space-between;
  min-height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  padding: var(--sp-4);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.ops-module strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-1);
}

.module-stats {
  display: grid;
  gap: 8px;
}

.module-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(17, 17, 19, 0.055);
  color: var(--soft-ink);
  font-size: 0.78rem;
  font-weight: 720;
}

.module-stats b {
  color: var(--ink);
}

.module-total {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 19px;
  background: #111113;
  color: white;
  font-size: 1.35rem;
  font-weight: 820;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 28px rgba(0, 0, 0, 0.16);
}

.additional-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  margin-top: 14px;
  padding: 0 18px;
}

.additional-module span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.outlet-list {
  margin-top: 12px;
}

.back-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 760;
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
}

.detail-hero {
  padding: 22px;
  margin-bottom: 14px;
}

.detail-hero h3 {
  font-size: 1.55rem;
}

.order-card {
  padding: 18px;
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.order-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.order-top strong {
  font-weight: 900;
}

.order-item {
  margin: 0 0 6px;
  font-weight: 860;
  letter-spacing: 0;
}

.order-detail {
  margin: 0;
  color: var(--soft-ink);
  font-weight: 740;
}

.pill.soft {
  background: rgba(17, 17, 15, 0.06);
  color: var(--accent);
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

/* Order details page */
body.is-order-details .topbar {
  display: none;
}

.subtopbar {
  display: none;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  height: 48px;
  min-height: 48px;
  padding: 0 8px;
  margin: 0 0 10px;
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 100;
  background: rgba(243, 239, 243, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.subtopbar-center {
  position: relative;
  min-width: 0;
  display: grid;
  align-items: center;
}

body.is-subpage .topbar {
  display: none;
}

body.is-subpage .subtopbar {
  display: grid;
}

.subtopbar-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 18px !important;
  letter-spacing: -0.02em;
  margin: 0;
  padding: 0;
  text-align: center;
  transform: translateY(1px);
  color: rgba(17, 17, 15, 0.92);
}

.subtopbar-title.is-clickable {
  cursor: pointer;
}

.customer-outlet-dropdown {
  position: absolute;
  z-index: 230;
  top: calc(100% + 10px);
  left: 50%;
  width: 220px;
  display: none;
  transform: translateX(-50%);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  padding: 8px;
}

.customer-outlet-dropdown.is-open {
  display: grid;
}

.customer-outlet-dropdown button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(17, 17, 15, 0.86);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  padding: 0 12px;
}

.customer-outlet-dropdown button.is-selected {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
}

.subtopbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  position: relative;
}

.subtopbar-cancel {
  display: none;
  border: 0;
  background: transparent;
  padding: 0 8px;
  height: 40px;
  border-radius: 10px;
  font-weight: 700;
  color: rgba(17, 17, 15, 0.86);
  cursor: pointer;
}

.subtopbar-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 17, 15, 0.82);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--spring), background var(--spring), box-shadow var(--spring);
}

/* iOS-style frosted pill for the Customer "..." button (subpage header action). */
#subTopbarAction {
}

.subtopbar-back span {
  font-size: 26px;
  line-height: 1;
  transform: translateX(-1px);
}

.subtopbar-search {
  color: rgba(17, 17, 15, 0.86);
}

.subtopbar-search svg {
  width: 18px;
  height: 18px;
  display: block;
}

.subtopbar-menu span {
  font-size: 20px;
  line-height: 1;
}

.subtopbar-btn:active {
  transform: translateY(1px) scale(0.98);
}

body.is-subpage .details-topbar {
  display: none;
}

body.is-subpage .subview.is-active > .back-button {
  display: none;
}

.details-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin: 2px 0 14px;
}

.details-title {
  margin: 0;
  text-align: center;
  font-size: 1.22rem;
  font-weight: 860;
  color: rgba(17, 17, 15, 0.92);
}

.details-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 17, 15, 0.82);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--spring), background var(--spring), box-shadow var(--spring);
}

.details-icon:active {
  transform: translateY(1px) scale(0.98);
}

.details-stack {
  display: grid;
  gap: 12px;
  padding-bottom: 6px;
}

.details-identity {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  border-radius: 28px;
  align-items: start;
}

.details-order {
  display: block;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.details-item {
  font-weight: 860;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 15, 0.88);
}

.details-sub {
  margin-top: 10px;
  color: rgba(17, 17, 15, 0.58);
  font-weight: 760;
}

.details-identity-right {
  padding-top: 6px;
}

/* Unified order summary panel (Identity + Tempahan Info + Garment Info) */
.details-summary {
  padding: 16px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 16px;
}

.details-summary-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.details-divider {
  height: 1px;
  width: 100%;
  background: var(--line);
}

.details-summary-section .details-card-head {
  margin-bottom: 12px;
}

/* New Details tracking card (reference-style). */
.details-track {
  padding: 18px;
  border-radius: var(--radius-xl);
}

.details-track-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(17, 17, 15, 0.9);
}

.details-track-rail {
  position: relative;
  height: 58px;
}

.details-track-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.details-track-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 4;
}

.details-track-line--base {
  stroke: rgba(17, 17, 15, 0.14);
}

.details-track-line--active {
  stroke: var(--accent);
  opacity: 0.72;
  stroke-dasharray: 160 360;
}

.details-track-step {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -56%);
  color: rgba(63, 0, 255, 0.5);
}

.details-track-step svg {
  display: block;
}

.details-track-step--1 {
  left: 6%;
}

.details-track-step--2 {
  left: 40%;
}

.details-track-step--3 {
  left: 72%;
}

.details-track-step--4 {
  left: 94%;
}

.details-track-step.is-active {
  color: #ffffff;
}

.details-track-active {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 18px 36px rgba(63, 0, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.details-track-active svg {
  stroke: #ffffff;
}

/* Summary card: status + open icon + dates row. */
.details-status-pill {
  background: rgba(63, 0, 255, 0.08);
  border-color: rgba(63, 0, 255, 0.12);
  color: var(--accent);
}

.details-open {
  width: 46px;
  height: 46px;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--spring), filter var(--spring);
}

.details-open:active {
  transform: translateY(1px) scale(0.99);
}

.details-dates {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.details-date {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 4px 0;
}

.details-date span {
  font-size: 12px;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.58);
}

.details-date strong {
  font-size: 16px;
  font-weight: 760;
  color: rgba(17, 17, 15, 0.9);
}

.details-vdiv {
  width: 1px;
  height: 44px;
  background: rgba(17, 17, 15, 0.08);
}

/* Action cards row */
.details-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.details-action {
  border: 0;
  cursor: pointer;
  min-height: 118px;
  border-radius: 28px;
  padding: 18px 14px;
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  color: rgba(17, 17, 15, 0.92);
  transition: transform var(--spring), filter var(--spring);
}

.details-action:active {
  transform: translateY(1px) scale(0.99);
}

.details-action-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(20, 18, 16, 0.12);
  box-shadow: 0 16px 30px rgba(40, 35, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  overflow: hidden;
  position: relative;
}

.details-action-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.details-action strong {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.02em;
  text-align: center;
}

.details-action strong br {
  content: "";
  display: block;
  line-height: 20px;
}

.details-action-badge {
  position: absolute;
  right: 14px;
  top: 12px;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(17, 17, 15, 0.9);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 15, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.details-action {
  position: relative;
}

.details-date-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-align: inherit;
  display: inline-grid;
}

.details-date-link strong {
  color: rgba(17, 17, 15, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(63, 0, 255, 0.28);
  text-underline-offset: 6px;
}

.details-date-link:active {
  transform: translateY(1px);
}

/* Customer details card */
.details-customer {
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 0%, rgba(63, 0, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(63, 0, 255, 0.06), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(63, 0, 255, 0.12);
}

.details-customer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(17, 17, 15, 0.92);
}

.details-customer-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(17, 17, 15, 0.06);
}

.details-customer-head strong {
  font-size: 18px;
  font-weight: 760;
  color: var(--accent);
}

.details-customer-toggle {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(63, 0, 255, 0.85);
  transition: transform var(--spring);
}

.details-customer-add {
  margin-left: auto;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(63, 0, 255, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--spring), filter var(--spring);
}

.details-customer-add:active {
  transform: translateY(1px) scale(0.99);
}

.details-customer-toggle[aria-expanded="false"] {
  transform: rotate(0deg);
}

.details-customer-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.details-customer-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.details-customer-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 850;
  color: rgba(17, 17, 15, 0.88);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(17, 17, 15, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.details-customer-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.details-customer-meta strong {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: rgba(17, 17, 15, 0.92);
}

.details-customer-meta span {
  color: rgba(63, 0, 255, 0.75);
  font-weight: 650;
}

.details-customer-kpi {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.details-customer-kpi span {
  color: rgba(17, 17, 15, 0.62);
  font-size: 13px;
  font-weight: 650;
}

.details-customer-kpi strong {
  font-size: 26px;
  font-weight: 860;
  color: rgba(17, 17, 15, 0.92);
}

.details-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 12px;
}

.details-sheet-head strong {
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  color: rgba(17, 17, 15, 0.92);
}

.details-sheet-close {
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(17, 17, 15, 0.78);
  font-size: 20px;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform var(--spring);
}

.details-sheet-close:active {
  transform: translateY(1px) scale(0.99);
}

.details-sheet-body {
  padding: 6px 4px 14px;
  display: grid;
  gap: 12px;
}

.details-sheet-list {
  border-radius: 22px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.details-sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(17, 17, 15, 0.06);
}

.details-sheet-row:last-child {
  border-bottom: 0;
}

.details-sheet-row span {
  color: rgba(17, 17, 15, 0.62);
  font-weight: 650;
}

.details-sheet-row strong {
  color: rgba(17, 17, 15, 0.92);
  font-weight: 760;
}

.details-sheet-timeline {
  display: grid;
  gap: 0;
  padding: 8px 0 4px;
}

.details-sheet-timeline-item {
  display: grid;
  grid-template-columns: 72px 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 86px;
  position: relative;
}

.details-sheet-timeline-item time {
  padding-top: 7px;
  color: rgba(17, 17, 15, 0.48);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.15;
  white-space: nowrap;
}

.details-sheet-marker {
  position: relative;
  display: grid;
  justify-items: center;
  width: 34px;
  min-height: 86px;
}

.details-sheet-line {
  position: absolute;
  top: 34px;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.24);
}

.details-sheet-circle {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 15, 0.04);
  border: 2px solid rgba(17, 17, 15, 0.14);
  color: #fff;
}

.details-sheet-timeline-item.is-complete .details-sheet-circle,
.details-sheet-timeline-item.is-active .details-sheet-circle {
  background: #007aff;
  border-color: #007aff;
}

.details-sheet-timeline-item.is-active .details-sheet-circle {
  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.12), 0 10px 22px rgba(0, 122, 255, 0.24);
}

.details-sheet-timeline-item.is-active .details-sheet-circle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
}

.details-sheet-timeline-copy {
  display: grid;
  gap: 5px;
  padding-top: 5px;
}

.details-sheet-timeline-copy strong {
  font-weight: 820;
  color: rgba(17, 17, 15, 0.9);
  line-height: 1.2;
}

.details-sheet-timeline-copy span {
  color: rgba(17, 17, 15, 0.54);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.35;
}

.details-sheet-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  border-radius: 26px;
  border: 1px dashed rgba(17, 17, 15, 0.14);
  background: rgba(255, 255, 255, 0.48);
}

.details-sheet-empty .plus {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(63, 0, 255, 0.1);
  border: 1px solid rgba(63, 0, 255, 0.16);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 750;
  margin-bottom: 12px;
}

.details-sheet-empty strong {
  font-size: 18px;
}

.details-sheet-empty span {
  color: rgba(17, 17, 15, 0.62);
  font-weight: 650;
}

/* Global Search (Top Bar Expand) */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.search-overlay.is-open {
  display: block;
}

.search-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(243, 239, 243, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: 100%;
  height: 100%;
  animation: detailsBackdropIn 280ms cubic-bezier(0.2, 0.9, 0.2, 1.05) both;
}

.global-search-layer {
  position: relative;
  z-index: 2;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 0;
  max-width: 560px;
  margin: 0 auto;
}

.global-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-search-field {
  flex: 1;
  min-height: 44px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
}

.global-search-field svg {
  display: block;
  color: rgba(17, 17, 15, 0.82);
}

.global-search-field input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  color: rgba(17, 17, 15, 0.92);
  padding: 0;
  margin: 0;
  transition: none;
}

.global-search-field input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.global-search-field input[type="search"]::-webkit-search-decoration,
.global-search-field input[type="search"]::-webkit-search-cancel-button,
.global-search-field input[type="search"]::-webkit-search-results-button,
.global-search-field input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.global-search-clear {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.48);
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.global-search-clear[hidden] {
  display: none;
}

.global-search-cancel {
  border: 0;
  background: transparent;
  font-weight: 700;
  color: rgba(17, 17, 15, 0.86);
  cursor: pointer;
}

/* Results live under the overlay search bar. */
.search-overlay-results {
  margin-top: 16px;
  display: none;
  gap: 10px;
  padding: 0;
}

body.has-search-query .search-overlay-results {
  display: grid;
}

.search-result {
  border: 0;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 22px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  transition: transform var(--spring), filter var(--spring);
}

.search-result:active {
  transform: translateY(1px) scale(0.99);
}

.search-result strong {
  display: block;
  font-weight: 760;
  color: rgba(17, 17, 15, 0.92);
}

.search-result small {
  display: block;
  margin-top: 3px;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.58);
}

.search-chip {
  font-size: 12px;
  font-weight: 700;
  color: rgba(17, 17, 15, 0.62);
  background: rgba(17, 17, 15, 0.06);
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
}

/* Order details live status tracking (delivery-style icon rail) */
.status-track {
  padding: 16px;
}

.status-live {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft-ink);
  opacity: 0.78;
}

.status-rail {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.status-node {
  width: auto;
  height: auto;
  border-radius: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 17, 0.68);
  box-shadow: none;
  padding: 0 2px;
  transform: translateY(-1px);
}

.status-node-icon svg {
  display: block;
}

.status-line {
  height: 3px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.status-node.is-done,
.status-node.is-active {
  color: rgba(17, 17, 17, 0.9);
}

.status-node.is-done {
  color: var(--accent);
}

.status-node.is-active {
  color: var(--accent);
}

.status-line.is-active {
  background: color-mix(in srgb, var(--accent) 92%, transparent);
}

/* Order details redesign: match reference (lighter, cleaner rhythm). */
#orderDetailsView .details-order {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}

#orderDetailsView .details-item {
  font-weight: 650;
  letter-spacing: -0.01em;
}

#orderDetailsView .details-sub {
  margin-top: 6px;
  font-weight: 560;
  color: rgba(17, 17, 15, 0.74);
}

#orderDetailsView strong {
  font-weight: 700;
}

#orderDetailsView .details-date span,
#orderDetailsView .details-date strong {
  font-weight: 650;
}

/* Collapsible cards */
.details-card-head {
  justify-content: space-between;
}

.details-collapse {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(17, 17, 17, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform var(--spring), filter var(--spring);
}

.details-collapse:active {
  transform: translateY(1px) scale(0.98);
}

.details-collapse[aria-expanded="true"] {
  transform: rotate(180deg);
}

.details-collapse[aria-expanded="true"]:active {
  transform: rotate(180deg) translateY(1px) scale(0.98);
}

.details-card {
  padding: 16px;
  border-radius: var(--radius-xl);
}

.details-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.details-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(10, 132, 255, 0.1);
  color: rgba(10, 132, 255, 1);
  font-weight: 900;
}

.details-card-head strong {
  font-size: 1.02rem;
  font-weight: 900;
  color: rgba(17, 17, 15, 0.92);
}

.details-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(17, 17, 15, 0.06);
  padding-top: 12px;
}

.details-field {
  padding: 0 10px;
  text-align: center;
}

.details-field + .details-field {
  border-left: 1px solid rgba(17, 17, 15, 0.06);
}

.details-field span {
  display: block;
  color: rgba(17, 17, 15, 0.5);
  font-size: 0.78rem;
  font-weight: 820;
}

.details-field strong {
  display: block;
  margin-top: 8px;
  font-size: 0.98rem;
  font-weight: 920;
  color: rgba(17, 17, 15, 0.9);
}

.details-rows {
  border-top: 1px solid rgba(17, 17, 15, 0.06);
  margin-top: 10px;
}

.details-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.06);
}

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

.details-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 15, 0.06);
  color: rgba(17, 17, 15, 0.6);
}

.details-row-role {
  font-weight: 860;
  color: rgba(17, 17, 15, 0.78);
}

.details-row-name {
  font-weight: 920;
}

.timeline {
  position: relative;
  margin-top: 10px;
  padding-left: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.1);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 1);
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.12);
  margin-top: 4px;
  margin-left: 11px;
}

.timeline-main strong {
  display: block;
  font-weight: 920;
  color: rgba(17, 17, 15, 0.9);
}

.timeline-main span {
  display: block;
  margin-top: 6px;
  color: rgba(17, 17, 15, 0.58);
  font-weight: 760;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.74rem;
  font-weight: 780;
  white-space: nowrap;
}

.pill.ready {
  background: #111113;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(0, 0, 0, 0.12);
}

.pill.pending,
.pill.progress,
.pill.low {
  background: rgba(17, 17, 19, 0.075);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.order-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compact-list {
  display: grid;
  gap: 0;
  padding: 4px 16px;
}

.compact-list p {
  min-height: 56px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.compact-list p:last-child {
  border-bottom: 0;
}

.sticky-heading {
  position: sticky;
  top: 76px;
  z-index: 5;
  padding: 8px 0;
  backdrop-filter: blur(14px);
}

.hub-grid {
  display: grid;
  gap: 14px;
}

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

.hub-card--mini {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 132px;
  padding: 16px;
  gap: 12px;
}

.hub-card--mini strong {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

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

.accessories-grid .accessories-main {
  grid-column: 1 / -1;
}

/* Inventory uses the same master card system as Tempahan modules (ops-module + module-grid). */
.inventory-grid {
  margin-top: 16px;
}

.module-span-2 {
  grid-column: 1 / -1;
}

/* Songket hero (immersive) */
#inventory .songket-hero {
  width: 100%;
  height: clamp(210px, 32vh, 300px);
  overflow: hidden;
  position: relative;
  margin: 0 -16px;
}

#inventory .songket-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#inventory .songket-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(231, 226, 217, 0), rgba(231, 226, 217, 1));
  pointer-events: none;
}

.hub-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  padding: 22px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.hub-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.hub-card strong,
.hub-card small {
  display: block;
}

.hub-card strong {
  margin-bottom: 7px;
  font-size: 1.2rem;
}

.hub-card small {
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.28;
}

/* Production page: keep Calendar Potong + Calendar Jahit side-by-side */
.production-calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
  /* When placed inside other grids (e.g. hub-grid), span full row width. */
  grid-column: 1 / -1;
}

.production-calendar-card {
  width: 100%;
  min-width: 0;
  height: 180px;
  padding: 24px;
  border: 0;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  transition: transform var(--spring), filter var(--spring);
}

.production-calendar-card:active {
  transform: translateY(1px) scale(0.99);
}

.production-calendar-card strong {
  display: block;
  /* Match Production Catalogue title scale */
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.production-calendar-card small {
  display: block;
  /* Match Production Catalogue description scale */
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.28;
  color: rgba(17, 17, 15, 0.58);
}

.production-card-icon {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  display: block;
  color: rgba(17, 17, 15, 0.86);
}

.production-card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
  display: block;
}

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

.fabric-card {
  min-height: 208px;
  padding: 14px;
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.fabric-card strong {
  display: block;
  margin: 14px 0 7px;
  line-height: 1.18;
}

.fabric-card p {
  margin-bottom: 14px;
  color: var(--soft-ink);
  font-size: 0.86rem;
}

.fabric-swatch {
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 24px rgba(22, 22, 28, 0.08);
}

.fabric-swatch.wool {
  background: linear-gradient(135deg, #111113, #3d3d42);
}

.fabric-swatch.cotton {
  background: linear-gradient(135deg, #ffffff, #e4e4e8);
}

.fabric-swatch.linen {
  background: linear-gradient(135deg, #d8d8d6, #f2f2ef);
}

.fabric-swatch.lining {
  background: linear-gradient(135deg, #a8a8af, #eeeef1);
}

/* Fabric module redesign (search + list + detail) */
.fabric-list {
  display: grid;
  gap: 14px;
}

.fabric-section {
  scroll-margin-top: 84px;
}

.fabric-section-header {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(17, 17, 15, 0.72);
  padding: 8px 4px 10px;
}

.fabric-card-lg {
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 20px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  text-align: left;
  transition: transform var(--spring), filter var(--spring);
  min-height: 164px;
}

.fabric-card-lg:active {
  transform: translateY(1px) scale(0.99);
}

.fabric-card-preview {
  width: 136px;
  height: 136px;
  border-radius: 26px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 14px 26px rgba(0, 0, 0, 0.08);
}

.fabric-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fabric-card-name {
  font-weight: 820;
  letter-spacing: -0.01em;
  color: rgba(17, 17, 15, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 1.1;
}

.fabric-card-status {
  font-size: 12px;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.56);
}

.fabric-card-body .pill {
  margin-top: auto;
  justify-self: start;
}

.pill.fabric-available {
  background: rgba(17, 17, 15, 0.92);
  border-color: rgba(17, 17, 15, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.pill.fabric-low {
  background: rgba(116, 86, 55, 0.12);
  border-color: rgba(116, 86, 55, 0.18);
  color: rgba(98, 70, 45, 0.92);
}

.pill.fabric-limited {
  background: rgba(17, 17, 15, 0.08);
  border-color: rgba(17, 17, 15, 0.12);
  color: rgba(17, 17, 15, 0.86);
}

.fabric-detail-hero {
  padding: 14px;
  margin-bottom: 24px;
}

.fabric-preview {
  width: 100%;
  height: 210px;
  border-radius: 26px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.fabric-details-rows {
  border-top: 1px solid rgba(17, 17, 15, 0.06);
  margin-top: 10px;
}

.fabric-details-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.06);
}

.fabric-details-row:last-child {
  border-bottom: 0;
}

.fabric-details-row span {
  color: rgba(17, 17, 15, 0.6);
  font-weight: 650;
  font-size: 12px;
}

.fabric-details-row strong {
  color: rgba(17, 17, 15, 0.9);
  font-weight: 900;
}

.fabric-colours {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(17, 17, 15, 0.06);
  padding-top: 12px;
}

/* Fabric detail rhythm: give the cards more breathing room without touching other pages. */
#fabricDetailView .details-card + .details-card {
  margin-top: 24px;
}

#fabricDetailView .details-collapse {
  margin-left: auto;
}

.fabric-colour-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.06);
}

.fabric-colour-row:last-child {
  border-bottom: 0;
}

.fabric-colour-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.fabric-code {
  font-size: 12px;
  font-weight: 760;
  color: rgba(17, 17, 15, 0.58);
}

.fabric-colour-name {
  font-weight: 820;
  color: rgba(17, 17, 15, 0.9);
}

.fabric-colour-body {
  display: grid;
  grid-template-columns: 44px 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.fabric-colour-swatch {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.fabric-stock {
  display: grid;
  gap: 3px;
}

.fabric-stock span {
  font-size: 12px;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.56);
}

.fabric-stock strong {
  font-weight: 900;
  color: rgba(17, 17, 15, 0.9);
}

.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 150px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
  cursor: pointer;
}

.mini-tool {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.modal-host {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  pointer-events: none;
  visibility: hidden;
  isolation: isolate;
}

.sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.sheet.is-open .sheet-backdrop {
  opacity: 1;
}

.sheet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: 92dvh;
  margin: 0 auto;
  padding: 10px 18px 18px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet--bottom {
  align-items: end;
}

.sheet--bottom .sheet-panel {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
}

.sheet.is-open .sheet-panel {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(17, 17, 19, 0.18);
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.sheet-heading h3 {
  margin-bottom: 0;
}

.tempahan-create-actions {
  display: grid;
  gap: 0;
}

.tempahan-create-action {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 0;
  padding: 8px 10px;
  background: transparent;
  background-image: none;
  color: rgba(17, 17, 15, 0.9);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tempahan-create-action:last-child {
  border-bottom: 0;
}

.tempahan-create-icon {
  display: grid;
  place-items: center;
  color: rgba(17, 17, 15, 0.84);
}

.tempahan-create-copy {
  display: grid;
  align-items: center;
  min-width: 0;
}

.tempahan-create-copy strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tempahan-create-chevron {
  color: rgba(17, 17, 15, 0.36);
  font-size: 28px;
  line-height: 1;
}

.commercial-password-panel {
  gap: 14px;
  padding: 10px 20px 20px;
}

.commercial-password-copy {
  display: grid;
  gap: 6px;
  text-align: center;
}

.commercial-password-copy h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.commercial-password-copy p,
.commercial-password-field span,
.commercial-password-error {
  margin: 0;
  color: rgba(17, 17, 15, 0.58);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

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

.commercial-password-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.54);
  padding: 0 14px;
  color: rgba(17, 17, 15, 0.92);
  font-size: 16px;
  font-weight: 600;
}

.commercial-password-field input:focus {
  border-color: rgba(0, 122, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.commercial-password-error {
  color: rgba(220, 38, 38, 0.88);
}

.commercial-password-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.commercial-password-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(17, 17, 15, 0.88);
  font-size: 15px;
  font-weight: 700;
}

.commercial-password-actions button:last-child {
  background: #007aff;
  color: #fff;
}

.add-order-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--add-order-header-height);
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  padding: 0 16px;
  background: transparent;
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.04);
  box-shadow: none;
}

.add-order-header::before,
.add-order-header::after {
  content: none;
  background: transparent;
  background-image: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.add-order-cancel {
  border: 0;
  background: transparent;
  padding: 0;
  color: #007aff;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  text-align: left;
}

.add-order-header h2 {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.02em;
  text-align: center;
}

.header-spacer {
  width: 80px;
}

.add-order-scroll-content {
  flex: 1;
  overflow: auto;
  padding: 12px 18px 18px;
  scroll-padding-top: calc(var(--add-order-header-height) + 12px);
}

#addOrderModal.is-success .add-order-header {
  display: none;
}

#addOrderModal.is-success .add-order-scroll-content {
  padding-top: 0;
}

.add-order-form {
  display: grid;
  gap: 14px;
}

.add-order-card {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(17, 17, 15, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.add-order-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 16px;
  color: rgba(17, 17, 15, 0.54);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.add-order-section-title span {
  color: #007aff;
  font-size: 15px;
  line-height: 1;
}

.add-order-row {
  position: relative;
  min-height: 50px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(60, 60, 67, 0.11);
  background: transparent;
  color: rgba(17, 17, 15, 0.92);
  display: grid;
  grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  text-align: left;
  font: inherit;
}

.add-order-row > span {
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  color: rgba(17, 17, 15, 0.9);
}

.add-order-row > strong {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgba(17, 17, 15, 0.54);
  font-size: 15px;
  font-weight: 600;
  line-height: 19px;
  text-align: right;
}

.add-order-row em {
  color: rgba(60, 60, 67, 0.32);
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.add-order-row--input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(17, 17, 15, 0.92);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}

.add-order-row--input input::placeholder {
  color: rgba(60, 60, 67, 0.38);
}

.add-order-stepper {
  justify-self: end;
  display: inline-grid;
  grid-template-columns: 32px 34px 32px;
  align-items: center;
  gap: 2px;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.12);
  padding: 3px;
}

.add-order-stepper button {
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #007aff;
  font-size: 20px;
  font-weight: 650;
  line-height: 1;
}

.add-order-stepper strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.add-order-swatch,
.add-order-hex-preview {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d8a0a6;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 4px rgba(17, 17, 15, 0.14);
}

.add-order-colour-row strong b,
.add-order-colour-row strong small {
  font: inherit;
  font-weight: 600;
}

.add-order-colour-row strong small {
  color: rgba(17, 17, 15, 0.42);
}

.add-order-file-row {
  cursor: pointer;
}

.add-order-file-row input {
  display: none;
}

.add-order-empty {
  margin: 0;
  border-top: 1px solid rgba(60, 60, 67, 0.11);
  padding: 12px 16px 14px;
  color: rgba(17, 17, 15, 0.48);
  font-size: 14px;
  font-weight: 600;
}

.add-order-submit {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: #007aff;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(0, 122, 255, 0.2);
}

.add-order-form-view {
  display: contents;
}

.add-order-form-view[hidden] {
  display: none;
}

.add-order-success-view {
  flex: 1;
  overflow: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 12px 18px 28px;
  text-align: center;
}

.add-order-success-view[hidden] {
  display: none;
}

.add-order-success-view lottie-player {
  width: 260px;
  height: 260px;
  max-width: 76%;
}

.add-order-success-copy {
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.add-order-success-copy h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.add-order-success-copy p {
  margin: 0;
  color: rgba(17, 17, 15, 0.58);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.add-order-success-actions {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.add-order-success-actions button {
  min-height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
}

.add-order-success-primary {
  background: rgba(220, 220, 220, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #007aff;
}

.add-order-success-secondary {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
  color: rgba(17, 17, 15, 0.86);
}

.add-fabric-panel .add-order-scroll-content {
  padding-bottom: 24px;
}

#addFabricModal.is-success .add-order-header {
  display: none;
}

.add-fabric-form-view {
  display: contents;
}

.add-fabric-form-view[hidden] {
  display: none;
}

.add-fabric-success-view {
  flex: 1;
  overflow: auto;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 12px 18px 28px;
  text-align: center;
}

.add-fabric-success-view[hidden] {
  display: none;
}

.add-fabric-success-view lottie-player {
  width: 260px;
  height: 260px;
  max-width: 76%;
}

.add-fabric-colours-card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.add-fabric-colour-list {
  display: grid;
  gap: 14px;
  padding: 0;
  border-top: 0;
}

.add-fabric-colour-card {
  display: grid;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 28px rgba(17, 17, 15, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.add-fabric-colour-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
}

.add-fabric-colour-head strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 14px;
  font-weight: 750;
}

.add-fabric-colour-head button {
  border: 0;
  background: transparent;
  color: #ff3b30;
  font-size: 12px;
  font-weight: 700;
}

.add-fabric-mini-field,
.add-fabric-hex-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(94px, 0.7fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-top: 1px solid rgba(60, 60, 67, 0.1);
  color: rgba(17, 17, 15, 0.92);
  font: inherit;
  text-align: left;
}

.add-fabric-hex-row {
  width: 100%;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  background: transparent;
}

.add-fabric-mini-field span,
.add-fabric-hex-row > span {
  font-size: 14px;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.82);
}

.add-fabric-mini-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: rgba(17, 17, 15, 0.92);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.add-fabric-mini-field input::placeholder {
  color: rgba(60, 60, 67, 0.36);
}

.add-fabric-hex-row strong {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(17, 17, 15, 0.58);
  font-size: 14px;
  font-weight: 650;
}

.add-fabric-hex-row i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 4px rgba(17, 17, 15, 0.14);
}

.add-fabric-hex-row em {
  color: rgba(60, 60, 67, 0.32);
  font-style: normal;
  font-size: 24px;
  line-height: 1;
}

.add-fabric-add-colour {
  min-height: 48px;
  border: 0;
  background: transparent;
  color: #007aff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.add-fabric-limit,
.add-fabric-success {
  margin: 0;
  color: rgba(17, 17, 15, 0.52);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.add-fabric-limit {
  padding: 0 14px 12px;
}

.add-fabric-submit {
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(220, 220, 220, 0.6), rgba(220, 220, 220, 0.48));
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  color: #007aff;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.15px;
}

.add-order-popup {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.add-order-popup[hidden] {
  display: none;
}

.add-order-popup-card {
  width: 100%;
  max-width: 420px;
  max-height: min(74dvh, 560px);
  overflow: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.66);
  box-shadow: 0 18px 54px rgba(17, 17, 15, 0.18);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
}

.add-order-popup-card header {
  height: 48px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.12);
}

.add-order-popup-card header button {
  border: 0;
  background: transparent;
  color: #007aff;
  font-size: 15px;
  font-weight: 650;
}

.add-order-popup-card header button:first-child {
  text-align: left;
}

.add-order-popup-card header button:last-child {
  text-align: right;
}

.add-order-popup-card header strong {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.add-order-picker-list {
  display: grid;
  padding: 8px 0;
}

.add-order-picker-list button {
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: rgba(17, 17, 15, 0.9);
  font-size: 16px;
  font-weight: 600;
}

.add-order-picker-list button:last-child {
  border-bottom: 0;
}

.add-order-picker-list button.is-selected::after {
  content: "✓";
  color: #007aff;
  font-weight: 800;
}

.add-order-calendar-head {
  height: 48px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 12px;
}

.add-order-calendar-head button {
  border: 0;
  background: transparent;
  color: #007aff;
  font-size: 28px;
}

.add-order-calendar-head strong {
  text-align: center;
  font-size: 16px;
}

.add-order-calendar-week,
.add-order-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 0 14px;
}

.add-order-calendar-week span {
  color: rgba(17, 17, 15, 0.42);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.add-order-calendar-grid {
  padding-bottom: 16px;
}

.add-order-calendar-grid button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(17, 17, 15, 0.86);
  font-size: 14px;
  font-weight: 650;
}

.add-order-calendar-grid button.is-selected {
  background: #007aff;
  color: #fff;
}

.add-order-calendar-grid button:disabled {
  color: rgba(17, 17, 15, 0.2);
}

.add-order-colour-card {
  display: grid;
  gap: 14px;
  padding-bottom: 16px;
}

.colour-shade-box {
  position: relative;
  height: 120px;
  margin: 16px 16px 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(to top, #000, transparent),
    linear-gradient(to right, #fff, transparent),
    var(--selected-hue-color, #ff2d55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  touch-action: none;
}

.colour-shade-thumb {
  position: absolute;
  left: calc(var(--shade-x, 0.26) * 100%);
  top: calc(var(--shade-y, 0.15) * 100%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.colour-hue-slider {
  padding: 0 18px 4px;
  touch-action: none;
}

.colour-hue-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff3b30, #ffcc00, #34c759, #32ade6, #007aff, #af52de, #ff2d55, #ff3b30);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.colour-hue-thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--hue-position, 0.97) * 100%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--hue-colour, #d8a0a6);
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.colour-hex-row {
  display: grid;
  grid-template-columns: 32px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 0;
}

.colour-hex-row label {
  display: grid;
  gap: 4px;
}

.colour-hex-row label span {
  color: rgba(17, 17, 15, 0.48);
  font-size: 11px;
  font-weight: 700;
}

.colour-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d8a0a6;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 4px rgba(17, 17, 15, 0.14);
}

.colour-hex-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(17, 17, 15, 0.9);
  font-size: 16px;
  font-weight: 700;
  padding: 0 12px;
  text-transform: uppercase;
}

.colour-eyedropper {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.12);
  color: rgba(17, 17, 15, 0.62);
  font-size: 19px;
}

body.has-modal .bottom-nav {
  display: none !important;
}

output {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 18px;
  background: #111113;
  color: white;
  font-weight: 760;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 28px rgba(0, 0, 0, 0.16);
}

.profile-card {
  display: grid;
  justify-items: center;
  padding: 34px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.profile-card .avatar {
  margin-bottom: 16px;
}

.profile-card p {
  color: var(--soft-ink);
  margin-bottom: 0;
}

.bottom-nav {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  /* Sit closer to the iOS safe area like a native tab bar (not floating too high). */
  bottom: env(safe-area-inset-bottom);
  z-index: 12;
  display: none;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  /* Standard iOS tab-bar feel: ~60px + safe-area inset (~34px) => ~94px total. */
  min-height: 60px;
  margin: 0 auto;
  /* Slightly more vertical breathing room without changing icon sizing. */
  padding: 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(40px) saturate(2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-plus {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff8ef;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, var(--charcoal), var(--charcoal-2));
  box-shadow: 0 18px 40px rgba(28, 24, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateY(0);
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
  -webkit-tap-highlight-color: transparent;
}

.nav-plus span {
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.nav-plus:active {
  transform: translateY(1px) scale(0.98);
}

.nav-item {
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(17, 17, 15, 0.62);
  cursor: pointer;
  transition: background var(--spring), color var(--spring), transform var(--spring), box-shadow var(--spring);
}

.nav-item span {
  font-size: 1.12rem;
  line-height: 1;
}

.nav-item small {
  display: block;
  font-size: 0.64rem;
  font-weight: 820;
  line-height: 1;
}

.nav-item.is-active {
  background: rgba(17, 17, 15, 0.06);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) {
  .metric-card:hover,
  .list-card:hover,
  .stock-alert:hover,
  .order-card:hover,
  .fabric-card:hover,
  .tool-card:hover,
  .hub-card:hover,
  .back-button:hover,
  .ops-module:hover,
  .search-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--lift-shadow);
  }
}

.metric-card:active,
.list-card:active,
.stock-alert:active,
.order-card:active,
.fabric-card:active,
.tool-card:active,
.hub-card:active,
.back-button:active,
.ops-module:active,
.search-button:active,
.calendar-strip div:active {
  transform: translateY(1px) scale(0.992);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topbar {
  padding: 8px 0 24px;
}

.topbar h2 {
  font-size: clamp(2.05rem, 9vw, 2.75rem);
  font-weight: 820;
  line-height: 0.96;
}

.eyebrow {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: 0.75;
}

.muted,
.page-subtitle {
  color: var(--soft-ink);
}

.hero-card {
  min-height: 186px;
  padding: 28px;
  border-radius: 38px;
}

.hero-card h3 {
  font-size: 2rem;
  font-weight: 840;
}

.hero-orbit,
.module-total,
.outlet-icon,
.hub-icon,
.brand-mark,
.avatar {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, #111111, #34322f);
}

.metric-grid {
  gap: 14px;
  margin: 18px 0 34px;
}

.metric-card,
.ops-overview article {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.36)),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.75), transparent 46%);
}

.metric-card {
  min-height: 128px;
  padding: 21px;
}

.metric-value {
  margin-bottom: 24px;
  font-size: 2.35rem;
  font-weight: 860;
}

.metric-label {
  color: var(--soft-ink);
  font-size: 0.9rem;
  line-height: 1.18;
}

.content-block {
  margin-top: 32px;
}

.section-heading {
  margin-bottom: 15px;
}

.section-heading h3 {
  font-size: 1.22rem;
  font-weight: 810;
}

.stack,
.outlet-list,
.hub-grid {
  gap: 14px;
}

.list-card,
.stock-alert,
.compact-list,
.calendar-strip,
.additional-module {
  box-shadow: 0 14px 36px rgba(40, 36, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.list-card {
  padding: 18px;
  border-radius: 24px;
}

.calendar-strip {
  gap: 10px;
  padding: 12px;
}

.calendar-strip div {
  min-height: 78px;
  border-radius: 21px;
}

.calendar-strip .is-current,
.pill.ready {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #111111, #2f2d2a);
}

.tempahan-toolbar {
  margin: -6px 0 18px;
}

.ops-overview {
  min-height: 154px;
  gap: 10px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 36px;
}

.ops-overview article {
  min-height: 122px;
  padding: 16px;
}

.compact-overview {
  min-height: 132px;
  margin-bottom: 16px;
}

.compact-overview article {
  min-height: 96px;
}

.outlet-context {
  margin-bottom: 16px;
}

.module-grid {
  gap: 14px;
  margin-bottom: 30px;
}

.ops-module {
  min-height: 172px;
  padding: 20px;
  border-radius: 30px;
}

.ops-module strong {
  font-size: 1.22rem;
}

.module-stats span {
  min-height: 38px;
  border-radius: 16px;
  background: rgba(24, 22, 20, 0.055);
}

.order-card {
  padding: 20px;
  border-radius: 30px;
}

.order-card::before {
  opacity: 0.82;
}

.order-top {
  margin-bottom: 20px;
}

.order-top strong {
  font-size: 1.08rem;
}

.order-meta {
  position: relative;
  padding-left: 18px;
}

.order-meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #141414;
  box-shadow: 0 0 0 5px rgba(20, 20, 20, 0.055);
}

.pill {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  padding: 0 12px;
  font-size: 0.72rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 8px 18px rgba(40, 36, 32, 0.06);
}

.pill.pending {
  background: #f0ebe4;
  color: #5f564a;
}

.pill.progress {
  background: #e9ece8;
  color: #4e584e;
}

.pill.low {
  background: #eee5dc;
  color: #6a4f38;
}

.additional-module {
  min-height: 86px;
  margin-top: 16px;
  border-radius: 26px;
}

.hub-card {
  grid-template-columns: 66px minmax(0, 1fr);
  min-height: 140px;
  padding: 24px;
  border-radius: 34px;
}

.hub-icon {
  width: 66px;
  height: 66px;
  border-radius: 24px;
}

.hub-card strong {
  font-size: 1.34rem;
}

.fabric-grid {
  gap: 14px;
}

.fabric-card {
  min-height: 232px;
  padding: 16px;
  border-radius: 30px;
}

.fabric-swatch {
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 18px 30px rgba(40, 36, 32, 0.1);
}

.tool-card {
  min-height: 168px;
  padding: 26px;
  margin-bottom: 16px;
  border-radius: 34px;
}

.tool-card h3,
.detail-hero h3 {
  font-size: 1.45rem;
}

.secondary-button,
.primary-button,
output {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #111111, #302e2b);
}

.profile-card {
  padding: 42px 24px;
  border-radius: 38px;
}

.profile-card h3 {
  font-size: 1.65rem;
}

.compact-list {
  padding: 8px 18px;
  border-radius: 28px;
}

.compact-list p {
  min-height: 64px;
}

/* (removed duplicate bottom-nav/nav-item overrides; canonical styles live in the base definitions + final override) */

@media (max-width: 390px) {
  .main-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ops-overview .metric-value {
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: center;
    padding: 28px;
  }

  .app-shell {
    width: 430px;
    min-height: min(920px, calc(100dvh - 56px));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 44px;
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  }

  .login-screen {
    position: absolute;
  }

  .bottom-nav {
    position: absolute;
  }
}

.topbar {
  align-items: start;
  padding: 4px 2px 24px;
}

.topbar h2 {
  max-width: 10ch;
  font-size: clamp(2.35rem, 11vw, 3.25rem);
  font-weight: 780;
  line-height: 0.96;
  color: #11100f;
}

.topbar .eyebrow {
  margin-bottom: 10px;
}

.eyebrow {
  color: #8c8376;
  font-size: 0.7rem;
  font-weight: 820;
  text-transform: uppercase;
}

h3 {
  font-weight: 820;
}

.muted,
.page-subtitle,
.metric-label,
.section-heading span,
.order-meta,
.compact-list span {
  color: #696259;
}

.icon-button,
.search-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.86), rgba(237, 231, 220, 0.66));
  box-shadow: 0 14px 34px rgba(42, 37, 31, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring), color var(--spring), border-color var(--spring), filter var(--spring);
}

.login-panel {
  /* Remove parent "card" wrapper: content should sit directly on the page background. */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 18px 20px 18px;
}

.login-panel h1 {
  /* Legacy selector; keep inert for current login typography. */
  max-width: unset;
}

input,
select {
  min-height: 56px;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.74);
}

.primary-button,
.secondary-button,
output,
.calendar-strip .is-current {
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, var(--charcoal), var(--charcoal-2));
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 210px;
  padding: 28px;
  border-radius: 36px;
  color: #f7f2eb;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #151412, #302d28);
  box-shadow: 0 34px 90px rgba(32, 28, 23, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-card::before {
  opacity: 0.3;
}

.hero-card .eyebrow,
.hero-card .muted {
  color: rgba(247, 242, 235, 0.68);
}

.hero-card h3 {
  max-width: 7ch;
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 0.93;
}

.hero-orbit {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  color: #fffaf2;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.metric-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin: 18px 0 36px;
}

.metric-card {
  min-height: 138px;
  border-radius: 30px;
  padding: 22px;
}

.metric-card:nth-child(1),
.metric-card:nth-child(3) {
  transform: translateY(8px);
}

.metric-card:nth-child(2) {
  min-height: 158px;
}

.metric-value {
  margin-bottom: 26px;
  font-size: 2.6rem;
  font-weight: 900;
}

.metric-label {
  max-width: 8ch;
  font-size: 0.9rem;
  font-weight: 760;
}

.content-block {
  margin-top: 36px;
}

.section-heading {
  margin: 0 4px 16px;
}

.section-heading h3 {
  font-size: 1.28rem;
}

.list-card,
.stock-alert,
.calendar-strip,
.compact-list,
.additional-module {
  border-radius: 28px;
}

.list-card {
  align-items: center;
  min-height: 86px;
  padding: 18px;
}

.status-dot {
  width: 13px;
  height: 13px;
  box-shadow: 0 0 0 7px rgba(20, 20, 20, 0.06);
}

.calendar-strip {
  padding: 12px;
}

.calendar-strip div {
  min-height: 84px;
  border-radius: 22px;
}

.stock-alert {
  min-height: 72px;
  padding: 0 18px;
}

.tempahan-toolbar {
  position: relative;
  margin: -8px 0 20px;
}

.page-subtitle {
  max-width: 18ch;
  font-size: 1.02rem;
  line-height: 1.28;
}

.search-button {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 18px;
}

.search-button small {
  display: none;
}

.search-button span {
  font-size: 1.22rem;
}

/* Tempahan toolbar: icon-only search (no circular button background). */
#tempahanHub .search-button--icon {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: rgba(17, 17, 15, 0.86);
}

#tempahanHub .search-button--icon:active {
  transform: translateY(1px) scale(0.98);
}

.ops-overview {
  display: grid;
  grid-template-columns: 1.15fr 0.92fr 0.92fr;
  gap: 10px;
  min-height: 168px;
  padding: 12px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.82), rgba(231, 224, 212, 0.7));
}

.ops-overview article {
  min-height: 140px;
  border-radius: 26px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.76), rgba(235, 229, 218, 0.58));
}

.ops-overview article:first-child {
  color: #f9f4ed;
  background:
    radial-gradient(circle at 26% 10%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(145deg, #171614, #302d28);
}

.ops-overview article:first-child .metric-label {
  color: rgba(249, 244, 237, 0.7);
}

.ops-overview .metric-value {
  font-size: clamp(1.7rem, 10vw, 2.45rem);
}

.hub-icon {
  width: 58px;
  height: 58px;
  border-radius: 22px;
}

.compact-overview {
  min-height: 152px;
}

.compact-overview article {
  min-height: 124px;
}

.outlet-context {
  align-items: center;
  margin: 2px 2px 20px;
}

.outlet-context strong {
  font-size: 1.08rem;
}

.module-grid {
  gap: 16px;
  margin-bottom: 34px;
}

.ops-module {
  min-height: 188px;
  border-radius: 32px;
  padding: 22px;
}

.ops-module:first-child {
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(180deg, #f7f0e8, #e7ded3);
}

.ops-module:nth-child(2) {
  color: #f8f3ec;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(145deg, #191817, #35312b);
}

.ops-module:nth-child(2) small {
  color: rgba(248, 243, 236, 0.62);
}

.ops-module strong {
  font-size: 1.34rem;
}

.module-stats span {
  min-height: 42px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.56);
}

.module-total {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.13);
}

.order-list {
  gap: 16px;
}

.order-card {
  border-radius: 32px;
  padding: 20px;
}

.order-card::after {
  border-color: rgba(255, 255, 255, 0.42);
}

.order-top {
  align-items: center;
}

.order-top strong {
  font-size: 1.12rem;
}

.order-meta {
  min-height: 38px;
  border-radius: 18px;
  padding: 0 0 0 20px;
}

.order-meta span:last-child {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(24, 22, 20, 0.055);
}

.pill {
  min-height: 34px;
  border-radius: 999px;
  font-weight: 840;
}

.pill.ready {
  color: #fbf7ef;
}

.pill.progress {
  background: #e1e6df;
  color: #3f5145;
}

.pill.pending {
  background: #eee7dc;
  color: #65584b;
}

.pill.low {
  background: #eaded0;
  color: #704c30;
}

.additional-module {
  min-height: 96px;
  margin-top: 18px;
  padding: 0 22px;
  border-style: dashed;
  border-color: rgba(38, 34, 30, 0.16);
  background: rgba(255, 252, 247, 0.48);
}

.detail-hero {
  border-radius: 34px;
  padding: 26px;
}

.hub-grid {
  gap: 16px;
}

.hub-card {
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 154px;
  border-radius: 34px;
  padding: 24px;
}

/* Inventory hub cards should remain light (no dark first-card override). */
#inventoryHub .hub-card:nth-child(1) {
  color: var(--ink);
  background: unset;
}

#inventoryHub .hub-card:nth-child(1) small {
  color: var(--soft-ink);
}

#inventoryHub .hub-card:nth-child(1) .hub-icon {
  background: transparent;
}

.hub-icon {
  width: 68px;
  height: 68px;
  border-radius: 25px;
}

.hub-card strong {
  font-size: 1.44rem;
}

.fabric-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.fabric-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 138px;
  gap: 16px;
  border-radius: 32px;
  padding: 18px;
}

.fabric-card strong,
.fabric-card p {
  margin: 0;
}

.fabric-card .pill {
  align-self: end;
}

.fabric-swatch {
  aspect-ratio: 1;
  border-radius: 28px;
}

.tool-card {
  min-height: 186px;
  border-radius: 36px;
  padding: 28px;
}

.tool-card:nth-child(1) {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(180deg, #fbf7f0, #e8dfd2);
}

.tool-card:nth-child(2) {
  color: #f8f3ec;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #171614, #332f29);
}

.tool-card:nth-child(2) .muted,
.tool-card:nth-child(2) .eyebrow {
  color: rgba(248, 243, 236, 0.68);
}

.profile-card {
  min-height: 254px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #171614, #332f29);
  color: #f8f3ec;
}

.profile-card p {
  color: rgba(248, 243, 236, 0.66);
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.compact-list {
  border-radius: 30px;
}

.compact-list p {
  min-height: 70px;
}

/* (removed duplicate bottom-nav/nav-item overrides; canonical styles live in the base definitions + final override) */

@media (max-width: 390px) {
  .ops-overview {
    gap: 8px;
    padding: 10px;
  }

  .ops-overview article {
    padding: 12px;
  }

  .fabric-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .fabric-card .pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (min-width: 760px) {
  .app-shell {
    width: 440px;
    border-radius: 48px;
  }
}

/* Full composition rebuild */
.topbar {
  position: sticky;
}

.topbar::after {
  content: none;
}

.topbar h2 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.home-command {
  display: grid;
  gap: 14px;
}

.priority-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -28px;
  padding: 0 12px;
  z-index: 2;
}

.rail-card {
  min-height: 88px;
  padding: 14px;
  border-radius: 24px;
}

.rail-card span,
.rail-card strong {
  display: block;
}

.rail-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.rail-card strong {
  margin-top: 14px;
  font-size: 1.9rem;
  line-height: 1;
}

.hero-card {
  min-height: 256px;
  align-items: start;
  padding: 30px;
  border-radius: 42px;
}

.hero-card h3 {
  max-width: 8ch;
  font-size: 2.7rem;
}

.hero-orbit {
  display: grid;
  align-content: center;
  gap: 2px;
  width: 104px;
  height: 104px;
}

.hero-orbit span {
  font-size: 1.75rem;
}

.hero-orbit small {
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.68;
  text-transform: uppercase;
}

.metric-grid {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  margin-top: 30px;
}

.metric-card {
  min-height: 150px;
  border-radius: 34px;
}

.metric-card:nth-child(1) {
  grid-row: span 2;
  min-height: 314px;
  color: #f8f1e8;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #11110f, #332e27);
}

.metric-card:nth-child(1) .metric-label {
  color: rgba(248, 241, 232, 0.7);
}

.metric-card:nth-child(1) .metric-value {
  margin-top: auto;
  font-size: 4.2rem;
}

.metric-card:nth-child(2),
.metric-card:nth-child(3),
.metric-card:nth-child(4) {
  min-height: 96px;
  transform: none;
}

.metric-card:nth-child(n + 2) .metric-value {
  margin-bottom: 12px;
  font-size: 2rem;
}

.metric-card:nth-child(n + 2) .metric-label {
  max-width: none;
}

.content-block {
  margin-top: 42px;
}

.control-surface {
  padding: 18px;
  border-radius: 38px;
  color: #11110f;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.control-surface .eyebrow,
.control-surface .page-subtitle,
.control-surface .metric-label {
  color: rgba(17, 17, 15, 0.58);
}

.control-surface .tempahan-toolbar {
  margin: 0 0 16px;
}

.control-surface .ops-overview {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  gap: 12px;
}

.control-surface .ops-overview article {
  color: #11110f;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 18, 16, 0.12);
}

.control-surface .ops-overview article:first-child {
  background: rgba(255, 255, 255, 0.58);
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr 0.95fr;
  align-items: center;
  gap: 12px;
}

.dash-metric {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 84px;
  border-radius: 26px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dash-metric--late {
  justify-items: center;
}

.dash-metric--repair {
  justify-items: end;
}

.dash-metric--button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: center;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
}

.dash-metric--button:active {
  transform: translateY(2px) scale(0.99);
}

.dash-number {
  font-size: 2.25rem;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1;
  color: #f8f1e8;
}

.dash-metric--total .dash-number {
  color: rgba(90, 168, 255, 0.96);
}

.dash-metric--late .dash-number {
  color: rgba(255, 92, 92, 0.92);
}

.dash-metric--repair .dash-number {
  color: rgba(248, 241, 232, 0.92);
}

.control-surface .dash-metrics {
  margin: 0;
}

.control-surface .dash-metric {
  min-height: 84px;
}

.control-surface .dash-metric--total .dash-number {
  font-size: 3.3rem;
  justify-self: start;
}

.control-surface .dash-metric:not(.dash-metric--total) .dash-number {
  font-size: 2.05rem;
}

.outlet-stage .dash-metrics {
  grid-template-columns: 1fr 1fr 1fr;
}

.outlet-stage .dash-metric {
  min-height: 74px;
  justify-items: start;
}

.outlet-stage .dash-number {
  font-size: 2.1rem;
}

/* Option 4 dashboard widget layout (dominant total + inline metrics + slim bottom stage chips). */
.dash-widget {
  display: grid;
  gap: 12px;
}

.dash-widget--panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(17, 17, 17, 0.075),
    0 6px 18px rgba(17, 17, 17, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.035);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
}

.dash-metrics-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  align-items: center;
}

.dash-total-block {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 2px 0 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.dash-total-block--button {
  cursor: pointer;
  border-radius: 18px;
  padding: 2px 0 0;
  transition: transform var(--spring), filter var(--spring);
}

.dash-total-block--button:active {
  transform: translateY(1px) scale(0.99);
}

.dash-total-number {
  font-size: 52px;
  font-weight: 930;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent);
}

.dash-total-label {
  font-size: 0.8rem;
  font-weight: 820;
  color: rgba(17, 17, 15, 0.55);
}

.dash-inline-metrics {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.dash-inline-divider {
  width: 1px;
  height: 44px;
  background: rgba(20, 18, 16, 0.12);
}

.dash-inline-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 6px;
  border-radius: 18px;
  color: rgba(17, 17, 15, 0.78);
  transition: transform var(--spring), filter var(--spring);
}

.dash-inline-group:active {
  transform: translateY(1px) scale(0.99);
}

.dash-inline-icon {
  display: grid;
  place-items: center;
  color: rgba(17, 17, 15, 0.62);
}

.dash-inline-icon svg {
  display: block;
}

.dash-inline-number {
  font-size: 36px;
  font-weight: 920;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(17, 17, 15, 0.88);
}

/* (removed duplicate bottom navbar override block; canonical bottom navbar styles live at the end of the file) */

/* Accent greeting blue: Tempahan/Inventory/Login greeting */
.gateway-greeting,
.login-hello {
  color: #007aff !important;
}

/* ==========================================================
   Dashboard Widget Cleanup
   ----------------------------------------------------------
   Keep ONLY the main dashboard outer container surface.
   Remove mini card/pill/box surfaces behind inner metrics.
   Applies to Tempahan dashboard widget + Outlet dashboard widgets.
   ========================================================== */

.dash-widget--panel {
  /* outer container keeps the unified surface */
}

.dash-total-block,
.dash-inline-group,
.dash-stage,
.dash-metric {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.dash-inline-group,
.dash-stage,
.dash-metric {
  border-radius: 0 !important;
}

/* If any dashboard variant still injects a search icon inside the widget, hide it. */
.dash-widget .search-button {
  display: none !important;
}

/* ==========================================================
   Text Readability Fix (Non-dashboard cards only)
   ----------------------------------------------------------
   Ensure light/glass containers never render white/low-contrast text.
   Dashboard KPI colors remain controlled by their own rules.
   ========================================================== */

.glass-panel,
.glass-card,
.glass-nav,
.metric-card,
.list-card,
.stock-alert,
.ops-overview,
.ops-overview article,
.ops-module,
.additional-module,
.detail-hero,
.order-card,
.hub-card,
.hub-card--mini,
.fabric-card,
.fabric-card-lg,
.details-identity,
.details-summary,
.details-track,
.details-action,
.details-customer,
.details-sheet-list,
.outlet-tile {
  color: rgba(17, 17, 15, 0.92);
}

.glass-panel small,
.glass-card small,
.glass-nav small,
.hub-card small,
.ops-module small,
.details-sub,
.muted {
  color: rgba(17, 17, 15, 0.58);
}

.glass-panel .eyebrow,
.glass-card .eyebrow,
.glass-nav .eyebrow,
.glass-panel .metric-label,
.glass-card .metric-label,
.glass-nav .metric-label {
  color: rgba(17, 17, 15, 0.48);
}

.glass-panel .section-heading span,
.glass-card .section-heading span,
.glass-nav .section-heading span {
  color: rgba(17, 17, 15, 0.48);
}

.glass-panel .kpi-breakdown,
.glass-card .kpi-breakdown {
  color: rgba(17, 17, 15, 0.58) !important;
}

.glass-panel .kpi-breakdown b,
.glass-card .kpi-breakdown b {
  color: rgba(17, 17, 15, 0.92) !important;
}

/* Some components previously had "dark card" variants; now surfaces are light. Force readable text. */
.ops-overview article:first-child {
  color: rgba(17, 17, 15, 0.92) !important;
}

.ops-overview article:first-child .metric-label {
  color: rgba(17, 17, 15, 0.48) !important;
}

.ops-module:nth-child(2) {
  color: rgba(17, 17, 15, 0.92) !important;
}

.ops-module:nth-child(2) small {
  color: rgba(17, 17, 15, 0.58) !important;
}

.profile-topline span {
  color: rgba(17, 17, 15, 0.58) !important;
}

.hub-icon,
.outlet-tile-icon {
  color: rgba(17, 17, 15, 0.82);
}

/* ==========================================================
   Global Surface Unification
   ----------------------------------------------------------
   Unify all app containers/cards/tiles/panels/modules/popups
   to the same light glass depth used by Tempahan category cards.
   IMPORTANT: layout/spacing/typography/navigation unchanged.
   ========================================================== */

:root {
  --surface-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  --surface-border: 1px solid rgba(255, 255, 255, 0.72);
  --surface-shadow:
    0 18px 42px rgba(17, 17, 17, 0.075),
    0 6px 18px rgba(17, 17, 17, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.035);
  --surface-filter: blur(16px) saturate(1.06);
}

/* Core surfaces */
.glass-panel,
.glass-card,
.glass-nav,
.dash-widget--panel,
.metric-card,
.list-card,
.stock-alert,
.ops-overview,
.ops-overview article,
.ops-module,
.additional-module,
.detail-hero,
.order-card,
.hub-card,
.hub-card--mini,
.fabric-card,
.fabric-card-lg,
.details-identity,
.details-summary,
.details-track,
  .details-action,
.details-customer,
.details-sheet-list {
  background: var(--surface-bg) !important;
  border: var(--surface-border) !important;
  box-shadow: var(--surface-shadow) !important;
  backdrop-filter: var(--surface-filter) !important;
  -webkit-backdrop-filter: var(--surface-filter) !important;
}

/* Prevent legacy highlight overlays from reintroducing double borders. */
.glass-panel::before,
.glass-card::before,
.glass-nav::before,
.order-card::before,
.order-card::after {
  content: none !important;
}

.dash-inline-label {
  font-size: 0.8rem;
  font-weight: 820;
  color: rgba(17, 17, 15, 0.58);
}

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

.dash-stage {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-radius: var(--radius-lg);
  padding: 9px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 42px rgba(17, 17, 17, 0.075),
    0 6px 18px rgba(17, 17, 17, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.035);
  color: rgba(17, 17, 15, 0.82);
  cursor: pointer;
  text-align: left;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
}

.dash-stage:active {
  transform: translateY(1px) scale(0.99);
}

.dash-stage-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 14px;
  color: rgba(17, 17, 15, 0.72);
}

.dash-stage-number {
  font-size: 1.12rem;
  font-weight: 920;
  color: rgba(17, 17, 15, 0.9);
}

.dash-stage-label {
  font-size: 0.82rem;
  font-weight: 820;
  color: rgba(17, 17, 15, 0.58);
}

.dash-widget--outlet .dash-total-number {
  font-size: 2.55rem;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.flow-strip span {
  min-height: 48px;
  border-radius: 18px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 18, 16, 0.1);
  color: rgba(17, 17, 15, 0.66);
  font-size: 0.74rem;
  font-weight: 760;
}

.flow-strip b {
  display: block;
  color: #11110f;
  font-size: 0.82rem;
}

.outlet-heading {
  align-items: start;
  margin-top: 34px;
}

.outlet-heading div {
  display: grid;
  gap: 4px;
}

.outlet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  justify-items: center;
  padding: 10px 8px 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ops-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  justify-items: center;
}

.outlet-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  width: 100%;
  max-width: 104px;
  aspect-ratio: 4 / 5;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 12px 10px 11px;
  border-radius: 26px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  box-shadow:
    0 18px 42px rgba(17, 17, 17, 0.075),
    0 6px 18px rgba(17, 17, 17, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.035);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
}

.outlet-tile-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  font-size: 1.32rem;
  box-shadow: none;
  transform: translateY(-1px);
}

.outlet-tile-icon svg {
  display: block;
}

.outlet-tile strong {
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.15;
}

.outlet-tile:active {
  transform: translateY(2px) scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .outlet-tile:hover {
    filter: brightness(1.02);
    box-shadow: var(--lift-shadow);
    transform: translateY(-3px);
  }
}

@media (max-width: 390px) {
  .outlet-grid {
    gap: 8px;
    padding: 10px 6px 12px;
  }

  .outlet-tile {
    max-width: 96px;
    padding: 11px 8px 10px;
  }

  .outlet-tile-icon {
    width: 34px;
    height: 34px;
  }
}

/* Outlet orders toolbar */
.back-inline {
  margin-top: -10px;
  margin-bottom: 12px;
}

.orders-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.fabric-toolbar {
  margin-bottom: 14px;
}

.alpha-index {
  position: absolute;
  right: 10px;
  top: 92px;
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(20, 18, 16, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  z-index: 3;
}

@media (max-width: 390px) {
  .alpha-index {
    right: 6px;
    top: 88px;
    padding: 10px 5px;
  }
}

.alpha-index button {
  width: 20px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.5);
  font-size: 0.66rem;
  font-weight: 860;
  line-height: 1;
}

.alpha-index button:active {
  color: rgba(17, 17, 15, 0.8);
}

/* Customer page: Apple Contacts-style alphabet index (position-only; tap-to-jump handled elsewhere). */
#customerView .customer-alpha-index {
  position: fixed;
  right: max(8px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  pointer-events: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#customerView .customer-alpha-index button,
#customerView .customer-alpha-index a,
#customerView .customer-alpha-index span {
  width: 18px;
  height: 13px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #007aff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.customer-leaderboard-page {
  padding-bottom: 120px;
}

.customer-leaderboard-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.customer-leaderboard-top {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 6px 18px 0;
}

.customer-leaderboard-trophy {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 10px 16px rgba(217, 155, 18, 0.18));
}

.customer-leaderboard-top h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.customer-leaderboard-top p {
  max-width: 320px;
  margin: 0;
  color: rgba(17, 17, 15, 0.58);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.leaderboard-podium {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: end;
  gap: 10px;
}

.podium-card {
  min-width: 0;
  min-height: 162px;
  border: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: inherit;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.podium-card:active {
  transform: translateY(1px) scale(0.99);
}

.podium-card--gold {
  min-height: 188px;
  background: linear-gradient(180deg, rgba(255, 246, 218, 0.78), rgba(255, 255, 255, 0.5));
  box-shadow: 0 14px 32px rgba(217, 155, 18, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.podium-card--silver {
  background: linear-gradient(180deg, rgba(241, 244, 248, 0.74), rgba(255, 255, 255, 0.48));
}

.podium-card--bronze {
  background: linear-gradient(180deg, rgba(244, 225, 207, 0.68), rgba(255, 255, 255, 0.48));
}

.podium-crown {
  width: 34px;
  height: 24px;
  filter: drop-shadow(0 5px 8px rgba(17, 17, 15, 0.12));
}

.podium-rank {
  color: rgba(17, 17, 15, 0.46);
  font-size: 12px;
  font-weight: 800;
}

.podium-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 15, 0.82);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(17, 17, 15, 0.08);
}

.podium-card strong {
  max-width: 100%;
  color: rgba(17, 17, 15, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.podium-card b {
  color: #007aff;
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.podium-card small {
  color: rgba(17, 17, 15, 0.48);
  font-size: 11px;
  font-weight: 700;
}

.leaderboard-rank-list {
  display: grid;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.leaderboard-rank-row {
  min-height: 54px;
  width: 100%;
  border: 0;
  display: grid;
  grid-template-columns: 30px 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(60, 60, 67, 0.1);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.leaderboard-rank-row:last-child {
  border-bottom: 0;
}

.leaderboard-rank-row:active {
  background: rgba(255, 255, 255, 0.32);
}

.leaderboard-rank-row span {
  color: rgba(17, 17, 15, 0.48);
  font-size: 14px;
  font-weight: 800;
}

.leaderboard-rank-row i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 15, 0.82);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.leaderboard-rank-row strong {
  color: rgba(17, 17, 15, 0.88);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.leaderboard-rank-row b {
  color: #007aff;
  font-size: 16px;
  font-weight: 850;
}

.customer-leaderboard-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(17, 17, 15, 0.5);
  font-size: 13px;
  font-weight: 600;
}

.customer-leaderboard-foot p {
  margin: 0;
}

.customer-analytics-page {
  padding-bottom: 112px;
}

.outlet-analytics-page {
  gap: 14px;
  padding-bottom: 112px;
}

.subview.outlet-analytics-page.is-active {
  display: grid;
}

.customer-analytics-filter {
  width: max-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(17, 17, 15, 0.82);
  padding: 0 13px 0 14px;
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(17, 17, 15, 0.055);
  cursor: pointer;
}

.outlet-analytics-filter-wrap {
  position: relative;
  width: max-content;
}

.outlet-analytics-filter {
  margin-bottom: 0;
}

.outlet-analytics-filter-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: 190px;
  display: none;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 34px rgba(17, 17, 15, 0.12);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}

.outlet-analytics-filter-popover.is-open {
  display: grid;
}

.outlet-analytics-filter-popover button {
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.07);
  background: transparent;
  padding: 0 14px;
  color: rgba(17, 17, 15, 0.82);
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  text-align: left;
}

.outlet-analytics-filter-popover button:last-child {
  border-bottom: 0;
}

.customer-analytics-filter svg {
  color: rgba(17, 17, 15, 0.48);
}

.customer-analytics-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.outlet-analytics-tabs {
  margin-bottom: 0;
}

.customer-analytics-tabs button {
  min-width: 0;
  height: 52px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  color: rgba(17, 17, 17, 0.55);
  padding: 0 18px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.customer-analytics-tabs button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-analytics-tabs button.is-active {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.44), transparent 38%),
    linear-gradient(135deg, #4aa3ff 0%, #007aff 58%, #0060d5 100%);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.customer-analytics-content {
  display: grid;
  gap: 14px;
}

.outlet-analytics-content {
  display: grid;
  gap: 14px;
}

.outlet-analytics-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}

.outlet-analytics-months span {
  color: rgba(17, 17, 15, 0.42);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

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

.customer-analytics-kpis article,
.customer-analytics-hero-card,
.customer-analytics-card,
.customer-analytics-interval {
  border-radius: 24px;
  padding: 16px;
}

.customer-analytics-kpis article {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.customer-analytics-kpis span,
.customer-analytics-hero-card span,
.customer-analytics-interval span {
  color: rgba(17, 17, 15, 0.56);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.customer-analytics-kpis strong,
.customer-analytics-hero-card strong,
.customer-analytics-interval strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
}

.customer-analytics-hero-card {
  position: relative;
  min-height: 140px;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.42), transparent 35%),
    linear-gradient(135deg, #4aa3ff 0%, #007aff 58%, #0060d5 100%);
  box-shadow: 0 18px 38px rgba(0, 122, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.customer-analytics-hero-card .customer-analytics-hero-title {
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 780;
  line-height: 1.05;
}

.customer-analytics-hero-card .customer-analytics-hero-filter {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.customer-analytics-hero-card strong {
  margin-top: 8px;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.customer-analytics-hero-card em {
  width: max-content;
  min-height: 25px;
  display: inline-grid;
  align-items: center;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.22);
  color: rgba(230, 255, 238, 0.96);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.customer-analytics-hero-icon {
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 72px;
  height: 72px;
  opacity: 0.18;
  color: #fff;
}

.customer-analytics-hero-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-analytics-card {
  display: grid;
  gap: 14px;
}

.customer-analytics-card h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.9);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.customer-analytics-chart-wrap {
  display: grid;
  gap: 8px;
}

.customer-analytics-chart {
  width: 100%;
  height: 122px;
  overflow: visible;
}

.customer-analytics-baseline {
  fill: none;
  stroke: rgba(17, 17, 15, 0.08);
  stroke-width: 1;
}

.customer-analytics-area {
  fill: url("#customerAnalyticsGradient");
  stroke: none;
}

.customer-analytics-line {
  fill: none;
  stroke: #007aff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(0, 122, 255, 0.18));
}

.customer-analytics-point {
  fill: #007aff;
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 6px 10px rgba(0, 122, 255, 0.28));
}

.customer-analytics-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2px;
}

.customer-analytics-months span {
  color: rgba(17, 17, 15, 0.42);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.customer-analytics-ranks,
.customer-analytics-card {
  min-width: 0;
}

.customer-analytics-rank {
  width: 100%;
  min-height: 46px;
  border: 0;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.customer-analytics-rank + .customer-analytics-rank {
  border-top: 1px solid rgba(17, 17, 15, 0.07);
}

.customer-analytics-rank span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  font-size: 12px;
  font-weight: 850;
}

.customer-analytics-rank strong {
  color: rgba(17, 17, 15, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.customer-analytics-rank b {
  color: #007aff;
  font-size: 14px;
  font-weight: 850;
}

.customer-analytics-link {
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.customer-analytics-bar {
  display: grid;
  gap: 7px;
}

.outlet-analytics-ranked-bars {
  display: grid;
  gap: 12px;
}

.outlet-analytics-ranked-bars div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.outlet-analytics-ranked-bars span {
  color: rgba(17, 17, 15, 0.76);
  font-size: 13px;
  font-weight: 740;
}

.outlet-analytics-ranked-bars b {
  color: #007aff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.outlet-analytics-ranked-bars i {
  grid-column: 1 / -1;
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
}

.outlet-analytics-ranked-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #4aa3ff, #007aff);
}

.outlet-analytics-performance {
  gap: 0;
}

.outlet-analytics-performance > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(17, 17, 15, 0.07);
}

.outlet-analytics-performance span {
  color: rgba(17, 17, 15, 0.54);
  font-size: 13px;
  font-weight: 720;
}

.outlet-analytics-performance strong {
  color: rgba(17, 17, 15, 0.9);
  font-size: 15px;
  font-weight: 850;
  text-align: right;
}

.customer-analytics-bar div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-analytics-bar span {
  color: rgba(17, 17, 15, 0.74);
  font-size: 13px;
  font-weight: 700;
}

.customer-analytics-bar b {
  color: rgba(17, 17, 15, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.customer-analytics-bar i {
  position: relative;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
}

.customer-analytics-bar i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, #4aa3ff, #007aff);
  box-shadow: 0 8px 16px rgba(0, 122, 255, 0.16);
}

.customer-analytics-interval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-analytics-interval strong {
  font-size: 24px;
  color: #007aff;
}

.customer-analytics-filter-panel {
  gap: 0;
}

.customer-analytics-filter-options {
  display: grid;
  gap: 0;
}

.customer-analytics-filter-options button {
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.08);
  background: transparent;
  color: rgba(17, 17, 15, 0.88);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.customer-analytics-filter-options button:last-child {
  border-bottom: 0;
}

.cutter-analytics-page {
  gap: 14px;
  padding-bottom: 112px;
}

.subview.cutter-analytics-page.is-active {
  display: grid;
}

.jahit-analytics-page {
  gap: 14px;
  padding-bottom: 112px;
}

.subview.jahit-analytics-page.is-active {
  display: grid;
}

.cutter-analytics-filter {
  justify-self: center;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.56);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.jahit-analytics-segment {
  position: relative;
  width: min(100%, 240px);
  height: 40px;
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  overflow: hidden;
}

.jahit-analytics-segment-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.96), rgba(37, 151, 255, 0.88));
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.jahit-analytics-segment[data-active="seluar"] .jahit-analytics-segment-indicator {
  transform: translateX(100%);
}

.jahit-analytics-segment button {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.58);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.jahit-analytics-segment button.is-active {
  color: #fff;
}

.cutter-analytics-hero {
  position: relative;
  min-height: 145px;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(135deg, #4aa3ff 0%, #007aff 58%, #0060d5 100%);
  box-shadow: 0 18px 38px rgba(0, 122, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: #fff;
}

.cutter-analytics-hero span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 750;
}

.cutter-analytics-hero strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 38px;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.cutter-analytics-hero em {
  width: max-content;
  min-height: 25px;
  display: inline-grid;
  align-items: center;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.22);
  color: rgba(230, 255, 238, 0.96);
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.cutter-analytics-hero svg {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 90px;
  height: 90px;
  fill: none;
  stroke: #fff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.22;
}

.jahit-analytics-hero svg {
  stroke-width: 4.5;
}

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

.cutter-mini-kpis article {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border-radius: 18px;
  text-align: center;
}

.cutter-mini-kpis article small {
  color: rgba(17, 17, 15, 0.5);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
}

.cutter-mini-kpis article strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 21px;
  font-weight: 850;
  line-height: 1;
}

.cutter-leaderboard {
  display: grid;
  gap: 12px;
  border-radius: 24px;
  padding: 16px;
}

.cutter-leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cutter-leaderboard h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.9);
  font-size: 18px;
  font-weight: 800;
}

.cutter-leaderboard-head button {
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.48);
  font-size: 12px;
  font-weight: 750;
}

.cutter-leaderboard-list {
  display: grid;
}

.cutter-leaderboard-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 32px 38px 72px 1fr auto;
  gap: 10px;
  align-items: center;
}

.cutter-leaderboard-row span {
  color: rgba(17, 17, 15, 0.46);
  font-size: 13px;
  font-weight: 800;
}

.cutter-leaderboard-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 15, 0.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.cutter-leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cutter-leaderboard-row strong {
  color: rgba(17, 17, 15, 0.86);
  font-size: 14px;
  font-weight: 800;
}

.cutter-leaderboard-row em {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
}

.cutter-leaderboard-row em::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: #007aff;
}

.cutter-leaderboard-row b {
  color: #007aff;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.customer-birthdays-page {
  gap: 14px;
  padding-bottom: 112px;
}

.subview.customer-birthdays-page.is-active {
  display: grid;
}

.customer-birthday-filter {
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.56);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.customer-birthday-filter-wrap {
  position: relative;
  justify-self: center;
}

.customer-birthday-filter-popover {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 50%;
  width: 220px;
  display: none;
  transform: translateX(-50%);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  padding: 10px;
}

.customer-birthday-filter-popover.is-open {
  display: grid;
  gap: 8px;
}

.customer-birthday-filter-popover label {
  display: grid;
  gap: 5px;
  color: rgba(17, 17, 15, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.customer-birthday-filter-popover select {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(17, 17, 15, 0.88);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px;
}

.customer-birthday-hero {
  min-height: 170px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 245, 252, 0.95), rgba(240, 244, 255, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 34px rgba(17, 17, 15, 0.07);
  text-align: center;
}

.customer-birthday-hero svg {
  width: 44px;
  height: 44px;
  fill: rgba(255, 214, 238, 0.72);
  stroke: rgba(121, 92, 255, 0.74);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-birthday-hero strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 42px;
  font-weight: 880;
  line-height: 0.95;
}

.customer-birthday-hero span {
  color: rgba(17, 17, 15, 0.62);
  font-size: 14px;
  font-weight: 750;
}

.customer-birthday-hero em {
  min-height: 24px;
  display: inline-grid;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(52, 199, 89, 0.16);
  color: rgba(21, 112, 49, 0.92);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

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

.birthday-summary-grid button {
  height: 95px;
  border: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border-radius: 18px;
  text-align: center;
  font: inherit;
}

.birthday-summary-grid button.is-active {
  outline: 2px solid rgba(0, 122, 255, 0.18);
}

.birthday-summary-grid button span {
  color: #007aff;
  font-size: 18px;
  font-weight: 800;
}

.birthday-summary-grid button strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.birthday-summary-grid button b {
  color: rgba(17, 17, 15, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.upcoming-birthdays {
  display: grid;
  gap: 8px;
  border-radius: 24px;
  padding: 16px;
}

.birthday-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.birthday-list-head h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.9);
  font-size: 18px;
  font-weight: 800;
}

.birthday-list-head span {
  color: rgba(17, 17, 15, 0.48);
  font-size: 12px;
  font-weight: 750;
}

.birthday-list {
  display: grid;
}

.birthday-row {
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.07);
  background: transparent;
  display: grid;
  grid-template-columns: 40px 1fr auto 38px;
  gap: 3px 10px;
  align-items: center;
  text-align: left;
  font: inherit;
}

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

.birthday-row i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(17, 17, 15, 0.82);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.birthday-row-main {
  display: grid;
  gap: 3px;
}

.birthday-row-main strong {
  color: rgba(17, 17, 15, 0.88);
  font-size: 14px;
  font-weight: 800;
}

.birthday-row-main span {
  color: rgba(17, 17, 15, 0.52);
  font-size: 12px;
  font-weight: 750;
}

.birthday-row small {
  color: #007aff;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.birthday-row--today small {
  color: rgba(255, 45, 85, 0.92);
}

.birthday-row em {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  font-style: normal;
}

.birthday-row em svg {
  width: 16px;
  height: 16px;
}

.birthday-row--today em {
  background: rgba(255, 45, 85, 0.12);
  color: rgba(255, 45, 85, 0.92);
}

.birthday-view-all {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(0, 122, 255, 0.08);
  color: #007aff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 800;
}

/* Customer page: 3-dot menu popover (urgent visibility + positioning fix). */
.customer-action-menu {
  display: none;
  position: absolute;
  top: 0;
  right: -8px;
  width: 240px;
  max-width: 240px;
  z-index: 9999 !important;
  padding: 8px 12px !important;
  border-radius: 24px !important;
  overflow: visible;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  transform-origin: top right;
}

.customer-action-menu.is-open {
  display: block !important;
}

.customer-action-menu button,
.subtopbar-actions .customer-action-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 12px 14px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px !important;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.2px;
  color: #111;
  cursor: pointer;
}

.subtopbar-actions .customer-action-item:active {
  transform: translateY(1px) scale(0.99);
}

.subtopbar-actions .customer-action-item:disabled {
  opacity: 0.42;
  cursor: default;
}

.subtopbar-actions .customer-action-menu-icon {
  width: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
  color: rgba(17, 17, 15, 0.82);
}

.customer-action-menu-icon,
.customer-action-menu svg,
.subtopbar-actions .customer-action-menu-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}

.customer-action-menu-divider,
.subtopbar-actions .customer-action-sep {
  height: 1px;
  margin: 8px 0 !important;
  background: rgba(60, 60, 67, 0.12);
}

.order-detail-action-menu {
  display: none;
  position: absolute;
  top: 0;
  right: -8px;
  width: 240px;
  max-width: 240px;
  z-index: 9999 !important;
  padding: 8px 12px !important;
  border-radius: 24px !important;
  overflow: visible;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  transform-origin: top right;
}

.order-detail-action-menu.is-open {
  display: block !important;
}

.order-detail-action-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 18px;
  padding: 12px 14px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 10px !important;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.2px;
  color: #111;
  cursor: pointer;
}

.order-detail-action-item:active {
  transform: translateY(1px) scale(0.99);
}

.order-detail-action-item--danger {
  color: rgba(255, 59, 48, 0.96);
}

.order-detail-action-menu-icon {
  width: 28px;
  min-width: 28px;
  display: grid;
  place-items: center;
  color: currentColor;
}

.order-detail-action-menu-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}

.order-detail-action-sep {
  height: 1px;
  margin: 8px 0 !important;
  background: rgba(60, 60, 67, 0.12);
}

/* Removed legacy .customer-menu-popover positioning. Use .customer-action-menu only. */

/* Inventory: Stockist Kilang maintenance state (scoped). */
#factoryStockView .factory-maintenance {
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding: 24px 0;
}

#factoryStockView .factory-maintenance lottie-player {
  width: 280px;
  height: 280px;
}

#factoryStockView .factory-maintenance-kicker {
  margin: 10px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 15, 0.48);
}

#factoryStockView .factory-maintenance-title {
  margin: 0;
}

#factoryStockView .factory-maintenance-sub {
  margin: 8px 0 0;
  font-weight: 650;
  color: rgba(17, 17, 15, 0.72);
}

#factoryStockView .factory-maintenance-desc {
  max-width: 28ch;
  margin: 12px 0 0;
  color: rgba(17, 17, 15, 0.58);
  font-weight: 600;
}

.orders-search {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 0 12px 0 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(20, 18, 16, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(1.06);
}

.orders-search-icon {
  display: grid;
  place-items: center;
  color: rgba(17, 17, 15, 0.82);
  font-size: 1.05rem;
}

.orders-search input {
  border: 0;
  background: transparent;
  min-height: 54px;
  padding: 0 8px 0 0;
  box-shadow: none;
  color: #11110f;
  outline: none;
}

.orders-search input::placeholder {
  color: rgba(17, 17, 15, 0.58);
}

.orders-segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  min-height: 48px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 18, 16, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.processing-segment {
  grid-template-columns: repeat(3, 1fr);
}

.reminder-segment {
  grid-template-columns: repeat(3, 1fr);
}

.orders-segment button {
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: rgba(17, 17, 15, 0.8);
  font-weight: 820;
  transition: transform var(--spring), background var(--spring), color var(--spring), box-shadow var(--spring);
}

.orders-segment .is-selected {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
  color: #11110f;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.orders-segment button:active {
  transform: translateY(1px) scale(0.99);
}

/* Page-scoped readability overrides removed; controls are globally readable now. */

.outlet-stage {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 40px;
  color: #11110f;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.outlet-back {
  margin: 6px 2px 14px;
}

.stage-title h3 {
  margin: 0 0 6px;
  font-size: 2.2rem;
}

.stage-title span,
.outlet-stage .eyebrow {
  color: rgba(17, 17, 15, 0.58);
}

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

.stage-action {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: 84px;
  border: 1px solid rgba(20, 18, 16, 0.12);
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: #11110f;
  text-align: left;
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.stage-action span {
  color: rgba(17, 17, 15, 0.58);
  font-size: 0.8rem;
  font-weight: 820;
}

.stage-action strong {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.stage-action:active {
  transform: translateY(2px) scale(0.99);
}

.outlet-stage .ops-overview {
  margin: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  gap: 12px;
}

.outlet-stage .ops-overview article {
  color: #11110f;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 18, 16, 0.12);
}

.kpi-tile {
  display: grid;
  align-content: space-between;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 18, 16, 0.12);
  color: #11110f;
  transition: transform var(--spring), box-shadow var(--spring), background var(--spring);
}

.kpi-tile:active {
  transform: translateY(2px) scale(0.99);
}

.outlet-stage .metric-label {
  color: rgba(17, 17, 15, 0.58);
}

.kpi-breakdown {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 760;
  color: rgba(248, 241, 232, 0.7);
}

.kpi-breakdown span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-breakdown b {
  color: #fff8ef;
}

.module-grid {
  margin-top: 16px;
}

.order-card {
  display: grid;
  gap: 16px;
  border-radius: 34px;
}

.order-card .order-top {
  margin: 0;
}

.order-card .order-top > div {
  display: grid;
  gap: 4px;
}

.order-card .order-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 44px;
  padding-left: 22px;
}

/* Processing Order view: compact Shazam-style list cards (scoped to this page only) */
#processingOrdersView .order-card {
  min-height: 118px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 10px;
}

#processingOrdersView .order-card .order-top {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

#processingOrdersView .order-card .order-top strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  color: rgba(17, 17, 15, 0.92);
  letter-spacing: -0.01em;
}

#processingOrdersView .order-card .pill {
  justify-self: end;
  align-self: center;
  margin: 0;
}

#processingOrdersView .order-card .order-item {
  grid-column: 1 / 2;
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  color: rgba(17, 17, 15, 0.86);
  letter-spacing: -0.01em;
}

#processingOrdersView .order-card .order-detail {
  grid-column: 1 / 2;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  color: rgba(17, 17, 15, 0.58);
}

.future-grid {
  margin-top: 18px;
}

.inventory-hero {
  min-height: 194px;
  padding: 28px;
  margin-bottom: 18px;
  border-radius: 40px;
  color: #f8f1e8;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #11110f, #343029);
}

.inventory-hero .muted,
.inventory-hero .eyebrow {
  color: rgba(248, 241, 232, 0.68);
}

.inventory-hero h3 {
  max-width: 8ch;
  font-size: 2.35rem;
  line-height: 0.95;
}

.hub-grid {
  grid-template-columns: 1fr 1fr;
}

.hub-card {
  grid-template-columns: 1fr;
  align-content: space-between;
  min-height: 188px;
}

.hub-card:first-child {
  grid-column: 1 / -1;
  min-height: 172px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.fabric-card {
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-areas:
    "swatch title"
    "swatch meta"
    "swatch pill";
}

.fabric-swatch {
  grid-area: swatch;
}

.fabric-card strong {
  grid-area: title;
}

.fabric-card p {
  grid-area: meta;
}

.fabric-card .pill {
  grid-area: pill;
  justify-self: start;
}

.tool-board {
  display: grid;
  gap: 18px;
}

.tool-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: start;
  min-height: 206px;
}

.tool-card .secondary-button {
  grid-column: 2;
  justify-self: start;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 25px;
  background: rgba(17, 17, 15, 0.1);
  font-weight: 860;
}

.tool-card:nth-child(2) .tool-icon {
  background: rgba(255, 255, 255, 0.13);
}

.profile-card {
  display: block;
  padding: 26px;
}

.profile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.profile-topline span {
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(248, 241, 232, 0.72);
  font-size: 0.76rem;
  font-weight: 820;
}

/* (removed duplicate bottom-nav/nav-item overrides; canonical styles live in the base definitions + final override) */

@media (max-width: 390px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-card:first-child {
    grid-column: auto;
  }

  .metric-card:nth-child(1) {
    min-height: 270px;
  }
}

/* Tempahan dashboard + outlet action refinements */
.control-surface .tempahan-toolbar {
  align-items: center;
  min-height: 50px;
}

.control-surface .tempahan-toolbar .eyebrow {
  margin-bottom: 0;
  font-size: 0.76rem;
}

.flow-strip {
  gap: 10px;
  margin-top: 14px;
}

.flow-strip span {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-strip b {
  line-height: 1;
}

.gateway-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 4px 10px;
}

.gateway-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

/* gateway-search removed: Tempahan root header now provides the search icon */

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

.gateway-welcome {
  text-align: center;
  padding: 18px 6px 22px;
  margin: 6px 0 18px;
}

.gateway-greeting {
  font-size: 56px;
  font-weight: 700;
  color: #0088fb;
  line-height: 1;
}

.gateway-question {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #1c1c1e;
}

.gateway-helper {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
  color: #8e8e93;
}

.gateway-option {
  border: 1px solid rgba(255, 255, 255, 0.72);
  width: 100%;
  text-align: left;
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  min-height: clamp(360px, 52vh, 520px);
  padding: 22px 16px 56px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  box-shadow:
    0 18px 42px rgba(17, 17, 17, 0.075),
    0 6px 18px rgba(17, 17, 17, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 17, 17, 0.035);
}

.gateway-option:active {
  transform: translateY(1px) scale(0.992);
}

.gateway-option-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 0;
  box-shadow: none;
  color: rgba(17, 17, 15, 0.86);
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(40, 35, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.gateway-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.gateway-bottom-chevron {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1;
  opacity: 0.65;
  color: rgba(17, 17, 15, 0.82);
  pointer-events: none;
}

.gateway-bottom-chevron--left {
  transform: translateX(-50%);
}

.gateway-bottom-chevron--right {
  transform: translateX(-50%);
}

.gateway-option-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(17, 17, 15, 0.92);
  line-height: 1.1;
  text-align: center;
}

.gateway-option-text small {
  display: block;
  margin-top: 6px;
  color: rgba(17, 17, 15, 0.56);
  font-size: 0.86rem;
  font-weight: 760;
  text-align: center;
}

@media (max-width: 390px) {
  .gateway-option {
    min-height: clamp(330px, 52vh, 470px);
    padding: 18px 14px 52px;
  }

  .gateway-option-icon {
    width: 78px;
    height: 78px;
    border-radius: 999px;
  }

  .gateway-avatar {
    width: 78px;
    height: 78px;
  }
}

/* Legacy gateway card styles removed (Tempahan gateway now uses .gateway-options). */

.jahit-kpis {
  margin-bottom: 14px;
}

.jahit-kpis article.kpi-action {
  cursor: default;
}

.jahit-kpis article.kpi-action:active {
  transform: none;
}

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

.jahit-panel {
  padding: 16px;
  border-radius: 28px;
}

.jahit-panel-total {
  display: block;
  margin-bottom: 6px;
  color: rgba(17, 17, 15, 0.92);
  font-size: 2.2rem;
  font-weight: 920;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.jahit-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.jahit-panel-head strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: rgba(17, 17, 15, 0.92);
}

.jahit-panel-head span {
  color: rgba(17, 17, 15, 0.52);
  font-size: 0.78rem;
  font-weight: 840;
}

.jahit-list {
  display: grid;
  gap: 8px;
}

.jahit-row {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring), background var(--spring);
}

.jahit-row:active {
  transform: translateY(1px) scale(0.992);
}

.jahit-row span {
  color: rgba(17, 17, 15, 0.74);
  font-weight: 820;
}

.jahit-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
  color: rgba(17, 17, 15, 0.82);
  font-weight: 920;
}

@media (max-width: 390px) {
  .jahit-split {
    gap: 10px;
  }

  .jahit-panel {
    padding: 14px;
  }
}

.tailor-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.tailor-analytics {
  border: 0;
  min-height: 96px;
  padding: 16px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
}

.tailor-analytics:active {
  transform: translateY(1px) scale(0.992);
}

.tailor-analytics-icon {
  width: 42px;
  height: 42px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: rgba(17, 17, 15, 0.86);
  font-weight: 900;
}

.tailor-analytics strong {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: rgba(17, 17, 15, 0.92);
  line-height: 1.05;
}

.tailor-analytics small {
  display: block;
  margin-top: 6px;
  color: rgba(17, 17, 15, 0.56);
  font-size: 0.82rem;
  font-weight: 760;
}

.tailor-kpi {
  min-height: 96px;
  padding: 16px;
  border-radius: 28px;
  display: grid;
  align-content: space-between;
}

.tailor-kpi .metric-label {
  color: rgba(17, 17, 15, 0.56);
  font-size: 0.86rem;
  font-weight: 840;
}

.tailor-kpi .metric-value {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 920;
  line-height: 1;
}

.tailor-detail-filter {
  position: relative;
  height: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  margin: 0 0 14px;
  border-radius: 999px;
  overflow: hidden;
}

.tailor-detail-filter-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.96), rgba(37, 151, 255, 0.88));
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tailor-detail-filter[data-active="readymade"] .tailor-detail-filter-indicator {
  transform: translateX(100%);
}

.tailor-detail-filter button {
  position: relative;
  z-index: 1;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(17, 17, 15, 0.58);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 820;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.tailor-detail-filter button.is-active {
  color: #fff;
}

#tukangPotongCutterView .cutter-dashboard-top {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

#tukangPotongCutterView .cutter-processing-card,
#tukangPotongCutterView .cutter-analytics-card {
  min-height: 152px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

#tukangPotongCutterView .cutter-processing-card {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

#tukangPotongCutterView .cutter-processing-card .metric-label,
#tukangPotongCutterView .cutter-analytics-card strong {
  color: rgba(17, 17, 15, 0.58);
  font-size: 0.86rem;
  font-weight: 840;
  letter-spacing: -0.01em;
}

#tukangPotongCutterView .cutter-processing-card .metric-value {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 3rem;
  font-weight: 920;
  line-height: 0.95;
  position: relative;
  z-index: 2;
}

.cutter-kpi-person {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding-top: 2px;
  min-width: 0;
}

.cutter-kpi-person strong {
  color: rgba(17, 17, 15, 0.92);
  font-size: 0.95rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.01em;
}

.cutter-kpi-image {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  transform: translateY(-4px);
  border: 1px solid rgba(20, 18, 16, 0.12);
  box-shadow: 0 16px 28px rgba(40, 35, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.cutter-kpi-stat {
  display: grid;
  align-content: space-between;
  justify-items: end;
  text-align: right;
  min-width: 0;
  padding: 2px 0 8px;
}

#tukangPotongCutterView .cutter-analytics-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  padding: 18px;
  align-content: stretch;
  justify-items: center;
  text-align: center;
}

#tukangPotongCutterView .cutter-analytics-card .tailor-analytics-icon {
  width: 52px;
  height: 52px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: rgba(17, 17, 15, 0.86);
  align-self: center;
}

#tukangPotongCutterView .cutter-analytics-card .tailor-analytics-icon svg {
  width: 52px;
  height: 52px;
}

.potong-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-action {
  border: 0;
  width: 100%;
  text-align: left;
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 16px;
  border-radius: 26px;
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
}

.kpi-action:active {
  transform: translateY(1px) scale(0.992);
}

.kpi-action-dark {
  color: #f9f4ed;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(145deg, #11110f, #332e27);
  box-shadow: 0 22px 56px rgba(32, 28, 23, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.kpi-action-dark .metric-label {
  color: rgba(249, 244, 237, 0.68);
}

.kpi-action-light {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.74), rgba(235, 229, 218, 0.56));
  border: 1px solid rgba(20, 18, 16, 0.08);
  box-shadow: 0 16px 34px rgba(40, 35, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.kpi-action-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kpi-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 15, 0.06);
  border: 1px solid rgba(20, 18, 16, 0.08);
  color: rgba(17, 17, 15, 0.8);
}

.cutter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cutter-card {
  width: 100%;
  border: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  min-height: 162px;
  padding: 16px 10px 54px;
  border-radius: 26px;
  cursor: pointer;
  transition: transform var(--spring), box-shadow var(--spring), filter var(--spring);
  position: relative;
  justify-items: stretch;
  align-content: start;
}

.cutter-card:active {
  transform: translateY(1px) scale(0.992);
}

.cutter-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(20, 18, 16, 0.12);
  box-shadow: 0 16px 30px rgba(40, 35, 30, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  color: rgba(17, 17, 15, 0.84);
  margin: 8px auto 0;
  overflow: hidden;
  position: relative;
}

.cutter-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cutter-fallback {
  width: 44px;
  height: 44px;
  color: rgba(17, 17, 15, 0.5);
}

.cutter-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cutter-meta strong {
  font-size: 0.92rem;
  font-weight: 900;
  color: rgba(17, 17, 15, 0.92);
  line-height: 1.05;
  padding-right: 6px;
}

.cutter-meta small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.08);
  color: rgba(17, 17, 15, 0.82);
  font-weight: 920;
  font-size: 0.78rem;
}

@media (max-width: 390px) {
  .cutter-grid {
    gap: 8px;
  }
  .cutter-card {
    min-height: 154px;
    padding: 14px 8px 52px;
  }
  .cutter-avatar {
    width: 78px;
    height: 78px;
  }
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.action-module {
  align-content: start;
  gap: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6) 52%, rgba(255, 255, 255, 0.5) 100%),
    linear-gradient(145deg, rgba(255, 249, 242, 0.92), rgba(243, 237, 229, 0.86));
  border: 1px solid rgba(20, 18, 16, 0.1);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #11110f;
}

.action-module small {
  color: rgba(17, 17, 15, 0.58);
}

.module-symbol {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(20, 18, 16, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  color: rgba(17, 17, 15, 0.9);
  font-size: 1.35rem;
  font-weight: 860;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 14px 26px rgba(0, 0, 0, 0.12);
}

.ops-module[disabled] {
  opacity: 0.72;
}

.ops-module[disabled] .module-symbol {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

/* Customer directory (Apple Contacts-style) */
.customer-directory {
  margin-top: 8px;
}

.customer-section {
  scroll-margin-top: 84px;
}

.customer-section-header {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(17, 17, 15, 0.72);
  padding: 14px 4px 10px;
}

.customer-row {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 17, 15, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.customer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(17, 17, 15, 0.88);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 17, 15, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 20px rgba(0, 0, 0, 0.06);
}

.customer-avatar--large {
  width: 62px;
  height: 62px;
  font-size: 1.05rem;
}

.customer-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.customer-name {
  font-weight: 820;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-orders {
  color: rgba(17, 17, 15, 0.56);
  font-weight: 650;
  font-size: 12px;
}

.alpha-index {
  position: fixed;
  right: max(10px, calc(50% - 280px + 10px));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 20px;
  border: 1px solid rgba(17, 17, 15, 0.06);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  z-index: 12;
}

.alpha-index button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 18px;
  height: 14px;
  font-size: 10px;
  font-weight: 750;
  color: rgba(17, 17, 15, 0.5);
  cursor: pointer;
}

.alpha-index button:active {
  color: rgba(17, 17, 15, 0.78);
}

.customer-detail-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 6px 4px 2px;
  border-radius: 0;
}

.customer-detail-identity {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.customer-detail-identity h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.customer-detail-identity .muted {
  margin: 0;
  color: rgba(17, 17, 15, 0.56);
  font-size: 14px;
  font-weight: 600;
}

.customer-detail-dob {
  font-size: 13px;
}

.customer-active-pill {
  display: inline-grid;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(52, 199, 89, 0.18);
  color: rgba(21, 112, 49, 0.92);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.customer-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.customer-quick-action {
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: rgba(17, 17, 15, 0.78);
  font: inherit;
  cursor: pointer;
}

.customer-quick-action span {
  display: grid;
  place-items: center;
  color: #007aff;
}

.customer-quick-action strong {
  font-size: 13px;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.customer-summary-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  min-height: 126px;
  margin-top: 16px;
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #4aa3ff 0%, #007aff 56%, #0060d5 100%);
  box-shadow: 0 16px 34px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.customer-notes-panel {
  gap: 12px;
}

.customer-notes-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
}

.customer-notes-header h3 {
  grid-column: 2;
  margin: 0;
  text-align: center;
  color: rgba(17, 17, 15, 0.92);
  font-size: 18px;
  font-weight: 850;
}

.customer-notes-header .icon-button {
  grid-column: 3;
  justify-self: end;
}

.customer-notes-empty,
.customer-notes-text {
  margin: 0;
  min-height: 96px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(17, 17, 15, 0.06);
  color: rgba(17, 17, 15, 0.62);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.customer-notes-text {
  color: rgba(17, 17, 15, 0.84);
  white-space: pre-wrap;
}

.customer-notes-input {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border: 1px solid rgba(17, 17, 15, 0.08);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(17, 17, 15, 0.9);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.customer-notes-input:focus {
  border-color: rgba(0, 122, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.customer-notes-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.customer-notes-actions button {
  height: 44px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(17, 17, 15, 0.72);
}

.customer-notes-actions button:last-child {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.96), rgba(37, 151, 255, 0.88));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 122, 255, 0.2);
}

.customer-summary-metric {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
}

.customer-summary-metric:last-child {
  padding-left: 18px;
}

.customer-summary-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.customer-summary-metric small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.customer-summary-metric strong {
  color: #fff;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.customer-summary-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.32);
}

.customer-history-section {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.customer-history-section h3 {
  margin: 0;
  color: rgba(17, 17, 15, 0.92);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.history-list {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
}

.history-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: #007aff;
}

.history-row {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  display: grid;
  grid-template-columns: 22px 76px 1fr auto 12px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px 13px 0;
  text-align: left;
  border-bottom: 0;
  box-shadow: 0 10px 24px rgba(17, 17, 15, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  cursor: pointer;
  color: var(--ink);
}

.history-row:active {
  transform: translateY(1px) scale(0.99);
}

.history-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  justify-self: center;
  border-radius: 50%;
  background: #007aff;
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.history-id {
  font-weight: 700;
  color: rgba(17, 17, 15, 0.92);
}

.history-item {
  color: var(--ink);
  font-weight: 600;
  min-width: 0;
}

.history-outlet {
  justify-self: end;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(0, 122, 255, 0.1);
  color: rgba(0, 94, 204, 0.92);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.history-status {
  display: none;
}

.history-chevron {
  color: rgba(17, 17, 15, 0.3);
  font-size: 20px;
  line-height: 1;
  justify-self: end;
  white-space: nowrap;
}

/* Outlet > Tempahan All filter flow */
.outlet-orders-all {
  margin-top: 12px;
}

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

.year-tile,
.month-tile {
  border: 0;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius-xl);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--spring), filter var(--spring);
  min-height: 92px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}

.year-tile:active,
.month-tile:active {
  transform: translateY(1px) scale(0.99);
}

.outlet-month-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.month-tile {
  min-height: 78px;
  font-size: 0.98rem;
  line-height: 1.15;
  padding: 20px 16px;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.action-module:active {
  transform: translateY(2px) scale(0.985);
}

.calendar-hero {
  margin-bottom: 16px;
}

.schedule-stack {
  display: grid;
  gap: 14px;
}

.schedule-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 18px;
  border-radius: 30px;
}

.schedule-card strong {
  display: grid;
  place-items: center;
  min-height: 52px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #11110f, #302c26);
  color: #fff8ef;
  font-size: 0.95rem;
}

.schedule-card span {
  color: var(--soft-ink);
  font-weight: 720;
  line-height: 1.35;
}

.reminder-segment {
  margin: 12px 0 16px;
}

.reminder-view {
  display: none;
}

.reminder-view.is-active {
  display: block;
}

.reminder-date {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
  margin-bottom: 14px;
}

.reminder-date strong {
  font-size: 1.1rem;
}

.reminder-date span {
  color: var(--muted);
  font-weight: 760;
  font-size: 0.82rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.week-day {
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(17, 17, 15, 0.78);
  min-height: 56px;
  font-weight: 820;
  cursor: pointer;
  transition: transform var(--spring), background var(--spring), box-shadow var(--spring);
}

.week-day b {
  display: block;
  font-size: 0.82rem;
  opacity: 0.9;
}

.week-day.is-selected {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px rgba(0, 0, 0, 0.18);
}

.month-card {
  border-radius: 34px;
  padding: 16px;
  margin-bottom: 14px;
}

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

.month-head span {
  color: var(--muted);
  font-weight: 760;
  font-size: 0.82rem;
}

.month-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 15, 0.08);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: rgba(17, 17, 15, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform var(--spring), background var(--spring);
}

.month-nav:active {
  transform: translateY(1px) scale(0.99);
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.month-day {
  border: 0;
  border-radius: 16px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(17, 17, 15, 0.78);
  font-weight: 820;
  cursor: pointer;
  transition: transform var(--spring), background var(--spring), box-shadow var(--spring);
}

.month-day i {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  margin-left: 6px;
  font-style: normal;
  background: rgba(17, 17, 15, 0.1);
  color: rgba(17, 17, 15, 0.78);
  font-size: 0.72rem;
}

.month-day.is-selected {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px rgba(0, 0, 0, 0.18);
}

/* Reminder month grid (Apple Calendar-inspired) */
.month-calendar {
  border-radius: 34px;
  padding: 16px;
  margin-bottom: 12px;
}

.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 10px;
  color: rgba(17, 17, 15, 0.6);
  font-size: 0.76rem;
  font-weight: 860;
  text-align: center;
}

.month-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.month-cell {
  position: relative;
  border: 0;
  border-radius: 16px;
  min-height: 62px;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(17, 17, 15, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform var(--spring), background var(--spring), box-shadow var(--spring);
  text-align: left;
  padding: 12px;
}

.month-cell.is-outside {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.month-cell:active {
  transform: translateY(1px) scale(0.99);
}

.month-cell.is-selected {
  /* Subtle Apple-style tint for selection (keep text black) */
  background: rgba(63, 0, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.month-num {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-block;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}

.month-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(17, 17, 15, 0.085);
  color: rgba(17, 17, 15, 0.8);
  font-size: 0.72rem;
  font-weight: 860;
  z-index: 1;
}

.month-cell.is-today {
  /* Today should not have a filled background; only the date number is accented */
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.month-cell.is-today .month-num {
  z-index: 2;
  color: var(--accent);
}

.month-cell.is-today .month-num::before {
  content: none;
}

.potong-calendar-page {
  display: grid;
  gap: 14px;
  padding-bottom: 112px;
}

.potong-calendar {
  border-radius: 24px;
  padding: 16px;
}

.potong-calendar-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.potong-calendar-head strong {
  text-align: center;
  color: rgba(17, 17, 15, 0.9);
  font-size: 18px;
  font-weight: 850;
}

.potong-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
  color: rgba(17, 17, 15, 0.56);
  font-size: 0.72rem;
  font-weight: 820;
  text-align: center;
}

.potong-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.potong-calendar-cell {
  position: relative;
  min-height: 66px;
  display: grid;
  align-content: start;
  gap: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 9px 5px 6px;
  overflow: hidden;
}

.potong-calendar-cell.is-outside {
  background: transparent;
  box-shadow: none;
}

.potong-calendar-cell.is-today {
  background: rgba(0, 122, 255, 0.08);
}

.potong-calendar-num {
  color: rgba(17, 17, 15, 0.82);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.potong-calendar-cell.is-today .potong-calendar-num {
  color: #007aff;
}

.production-event-bar {
  height: 14px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: rgba(17, 17, 15, 0.82);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
  padding: 0 5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.production-event-bar--start {
  border-radius: 999px 0 0 999px;
  margin-left: 2px;
  margin-right: -2px;
}

.production-event-bar--middle {
  border-radius: 0;
  margin-left: -2px;
  margin-right: -2px;
}

.production-event-bar--end {
  border-radius: 0 999px 999px 0;
  margin-left: -2px;
  margin-right: 2px;
}

.production-event-bar--single {
  border-radius: 999px;
  margin-left: 2px;
  margin-right: 2px;
}

.production-event-bar--blue,
.potong-production-dot--blue {
  background: rgba(0, 122, 255, 0.24);
}

.production-event-bar--yellow,
.potong-production-dot--yellow {
  background: rgba(255, 204, 0, 0.32);
}

.production-event-bar--green,
.potong-production-dot--green {
  background: rgba(52, 199, 89, 0.28);
}

.potong-calendar-list {
  display: grid;
  gap: 10px;
}

.potong-production-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  padding: 14px;
}

.potong-production-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.potong-production-card strong {
  display: block;
  color: rgba(17, 17, 15, 0.9);
  font-size: 15px;
  font-weight: 850;
}

.potong-production-card small {
  display: block;
  margin-top: 4px;
  color: rgba(17, 17, 15, 0.52);
  font-size: 12px;
  font-weight: 700;
}

.potong-production-card em {
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.06);
  color: rgba(17, 17, 15, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
  padding: 7px 10px;
  white-space: nowrap;
}

@media (max-width: 390px) {
  .module-grid {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }
}

/* ===========================
   Global Design System Layer
   Typography / Spacing / Radius / Color consistency
   =========================== */

/* Root page titles (main tab pages only) */
.topbar h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
}

/* Subpage titles (iOS-style compact top nav) */
.subtopbar-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Section titles */
.section-heading h3,
.details-card h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

/* Body text */
p,
li,
input,
textarea,
select,
button {
  font-size: 15px;
  font-weight: 500;
}

/* Small labels */
.eyebrow,
.metric-label,
.dash-total-label,
.dash-inline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--soft-ink);
  opacity: 0.78;
}

/* Radius normalization */
.app-shell {
  border-radius: var(--radius-app);
}

.glass-panel,
.glass-nav,
.dash-widget--panel {
  border-radius: var(--radius-xl);
}

.glass-card,
.order-card,
.dash-stage {
  border-radius: var(--radius-lg);
}

.primary-button,
.secondary-button,
.orders-search,
.orders-segment,
.search-button,
.icon-button {
  border-radius: var(--radius-md);
}

/* Color tokens for key system accents */
.dash-total-number {
  color: var(--accent);
}

.dash-inline-number--late {
  color: var(--danger);
}

/* ==========================================================
   Bottom Navbar (Canonical)
   One clean Apple Files-style system + Customer popover glass feel.
   Visual CSS only; no HTML/JS changes.
   ========================================================== */
.bottom-nav,
.bottom-nav.glass-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 24px !important;

  width: min(520px, 88vw) !important;
  height: 64px !important;
  min-height: 64px !important;
  border-radius: 999px !important;

  /* Shell glass (EXACT): match Customer 3-dot popover and avoid opacity buildup */
  background: rgba(255,255,255,0.82) !important;
  background-image: none !important;
  backdrop-filter: blur(30px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.8) !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;

  /* Slightly larger inner content area (shell position unchanged) */
  padding: 10px 14px !important;

  /* Ensure perfect vertical centering for all nav children (incl. + button) */
  align-items: center !important;
}

.bottom-nav::before,
.bottom-nav::after,
.bottom-nav.glass-nav::before,
.bottom-nav.glass-nav::after {
  content: none !important;
  display: none !important;
}

.bottom-nav .nav-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  justify-self: stretch !important;
  width: 100% !important;
  min-height: 52px !important;
  padding: 6px 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(17, 17, 15, 0.78) !important;
  text-align: center !important;
}

.bottom-nav .nav-item span {
  display: grid !important;
  place-items: center !important;
}

.bottom-nav .nav-item svg {
  width: 24px !important;
  height: 24px !important;
}

.bottom-nav .nav-item small {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.15px !important;
  text-align: center !important;
  color: rgba(17, 17, 15, 0.78) !important;
  opacity: 1 !important;
}

.bottom-nav .nav-item span,
.bottom-nav .nav-item svg {
  color: currentColor !important;
}

.bottom-nav .nav-item.is-active,
.bottom-nav .nav-item.active {
  /* Active pill: translucent grey, like Apple Files */
  background: rgba(220, 220, 220, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  color: #007aff !important;
  /* More breathing room so label never spills outside the pill */
  padding-left: 14px !important;
  padding-right: 14px !important;
}

.bottom-nav .nav-item.is-active small,
.bottom-nav .nav-item.active small {
  color: #007aff !important;
  /* keep EXACT same size/weight as inactive */
  font-size: 11px !important;
  font-weight: 500 !important;
}

/* + button: force true vertical centering inside the tab bar shell */
.bottom-nav .nav-plus {
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

/* Order Detail page: Customer Analytics-inspired blue accent styling. */
#orderDetailsView .details-stack {
  gap: 14px;
}

#orderDetailsView .details-track {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(135deg, #4aa3ff 0%, #007aff 58%, #0060d5 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 18px 38px rgba(0, 122, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
  color: #fff;
}

#orderDetailsView .details-track::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 88px;
  height: 88px;
  border-radius: 32px;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.22) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.18) 46% 54%, transparent 54%);
  opacity: 0.22;
  transform: rotate(-10deg);
}

#orderDetailsView .details-track-title {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.96);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.16;
}

#orderDetailsView .details-track-rail {
  position: relative;
  z-index: 1;
}

#orderDetailsView .details-track-line--base {
  stroke: rgba(255, 255, 255, 0.3);
}

#orderDetailsView .details-track-line--active {
  stroke: rgba(255, 255, 255, 0.9);
  opacity: 0.95;
}

#orderDetailsView .details-track-step {
  color: rgba(255, 255, 255, 0.72);
}

#orderDetailsView .details-track-active {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 30px rgba(0, 64, 140, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  color: #fff;
}

#orderDetailsView .details-summary,
#orderDetailsView .details-action,
#orderDetailsView .details-customer {
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)) !important;
  border: 1px solid rgba(255, 255, 255, 0.56) !important;
  box-shadow: 0 16px 34px rgba(17, 17, 15, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

#orderDetailsView .details-summary {
  padding: 18px;
  gap: 16px;
}

#orderDetailsView .details-order {
  color: rgba(17, 17, 15, 0.96);
  font-size: 28px;
  font-weight: 920;
  letter-spacing: -0.03em;
}

#orderDetailsView .details-item {
  color: rgba(17, 17, 15, 0.88);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

#orderDetailsView .details-sub {
  margin-top: 7px;
  color: rgba(17, 17, 15, 0.56);
  font-weight: 680;
}

#orderDetailsView .details-status-pill {
  background: rgba(0, 122, 255, 0.11);
  border: 1px solid rgba(0, 122, 255, 0.18);
  color: #007aff;
}

#orderDetailsView .details-open {
  border-color: rgba(0, 122, 255, 0.14);
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#orderDetailsView .details-divider,
#orderDetailsView .details-vdiv {
  background: rgba(17, 17, 15, 0.06);
}

#orderDetailsView .details-date span {
  color: rgba(17, 17, 15, 0.48);
  font-size: 11px;
  font-weight: 760;
}

#orderDetailsView .details-date strong {
  color: rgba(17, 17, 15, 0.9);
  font-size: 15px;
  font-weight: 820;
}

#orderDetailsView .details-date-link strong {
  color: #007aff;
  text-decoration-color: rgba(0, 122, 255, 0.34);
}

#orderDetailsView .details-actions {
  gap: 12px;
}

#orderDetailsView .details-action {
  min-height: 108px;
  padding: 16px 12px;
  border-radius: 22px !important;
}

#orderDetailsView .details-action-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 122, 255, 0.11);
  border: 1px solid rgba(0, 122, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

#orderDetailsView .details-action strong {
  color: rgba(17, 17, 15, 0.88);
  font-size: 16px;
  font-weight: 780;
}

#orderDetailsView .details-action-badge {
  background: #007aff;
  border-color: rgba(255, 255, 255, 0.44);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 122, 255, 0.24);
}

#orderDetailsView .details-customer {
  padding: 18px;
}

#orderDetailsView .details-customer-icon {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.14);
}

#orderDetailsView .details-customer-head strong {
  color: #007aff;
  font-weight: 850;
}

#orderDetailsView .details-customer-toggle {
  color: #007aff;
}

#orderDetailsView .details-customer-meta strong,
#orderDetailsView .details-customer-kpi strong {
  color: rgba(17, 17, 15, 0.92);
}

#orderDetailsView .details-customer-meta span {
  color: #007aff;
}

#orderDetailsView .details-customer-avatar {
  background: rgba(0, 122, 255, 0.1);
  border: 1px solid rgba(0, 122, 255, 0.14);
  color: #007aff;
}
