:root {
  /* Website dark futuristic (Menu Analysis / v13+) */
  --red: #e10600;
  --red-hot: #ff1a0a;
  --red-deep: #9e0400;
  --red-dark: #9e0400;
  --red-outline: #b80500;
  --red-glow: rgba(225, 6, 0, 0.45);
  --red-glow-soft: rgba(225, 6, 0, 0.22);
  --black: #070708;
  --near-black: #070708;
  --surface-dark: #0c0c0f;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --line: rgba(225, 6, 0, 0.45);
  --bg: #000000;
  --cream: #0c0c0f; /* alias: dark surface, NOT cream wash */
  --cream-rich: #000000;
  --card: #121218;
  --panel: #0c0c0f;
  --charcoal: #0e0e12;
  --charcoal-2: #16161c;
  --chip: #1a1a22;
  --ok: #1f7a3f;
  --warn: #b45309;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 0 28px var(--red-glow-soft);
  --shadow-offset: 0 0 24px var(--red-glow-soft);
  --shadow-glow: 0 0 32px var(--red-glow), 0 12px 36px rgba(0, 0, 0, 0.35);
  --glass-dark: rgba(18, 18, 24, 0.72);
  --sticky-h: 72px;
  --bottom-tabs-h: 64px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Archivo Black", "Impact", sans-serif;
  --marker: "Permanent Marker", cursive;
  font-family: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #000; color: #fff; }
html { background: #000; }
body { min-height: 100dvh; -webkit-tap-highlight-color: transparent; font-family: var(--font); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; color-scheme: dark; }
button, input, select { font: inherit; }
button { cursor: pointer; }


/* Sticky top chrome: brand + store (+ vendor tabs) stay while OG/Inventory scroll */
.app-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  /* iOS status bar clearance (constant for older iOS, env for modern) */
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top, 0px);
}

.app-header {
  position: relative; top: auto; z-index: 1;
  background: var(--black); color: #fff;
  border-bottom: none;
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.18);
}
.brand-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 6px;
  background: var(--charcoal);
}
.brand {
  font-family: var(--display);
  font-weight: 400; letter-spacing: .06em; font-size: 1.25rem;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #0a0a0a, 1px 1px 0 #0a0a0a;
}
.brand span { color: var(--red); }
.meta-tiny { font-size: .68rem; color: #aaa; text-align: right; line-height: 1.3; }
.brand-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.session-user {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
}
.session-who {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
}
.session-name {
  font-size: .78rem; font-weight: 700; color: #fff; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.role-chip {
  font-size: .58rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 6px; border-radius: 999px;
  background: var(--red); color: #fff;
}
.role-chip.employee { background: #333; border: 1px solid #555; }
.role-chip.manager { background: var(--red); }
.btn-logout {
  color: #fff !important; border-color: #555 !important;
  padding: 8px 12px !important; font-size: .72rem !important;
  min-height: 36px;
  min-width: 64px;
}
.btn-logout:hover, .btn-logout:active { border-color: var(--red) !important; color: #fff !important; }

/* v145 store block — mock-styled */
.store-primary {
  margin: 0;
  padding: 12px 14px 14px;
  background: var(--charcoal);
  border-top: 1px solid #2a2a2a;
  border-bottom: 3px solid var(--red);
}
.store-primary-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 4px;
}
.store-primary-name {
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
  word-break: break-word;
  color: #fff;
  -webkit-text-stroke: 1.75px var(--red);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 #000;
}
.store-select-lg {
  width: 100%;
  min-height: 52px;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #fff;
  color: var(--black);
  appearance: auto;
  -webkit-appearance: menulist;
  box-shadow: none;
}
.store-select-lg:focus {
  outline: 3px solid rgba(225,6,0,.45);
  border-color: var(--red);
}
.store-custom-lg {
  width: 100%;
  margin-top: 10px;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #fff;
  color: var(--black);
}

body.login-active #appRoot { display: none !important; }
body.login-active { background: #0a0a0a; padding-top: env(safe-area-inset-top, 0px); }
body.login-active #loginScreen,
body.login-active .login-screen {
  padding-top: 8px;
}
body:not(.login-active) #loginScreen { display: none !important; }

.login-screen {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  background: #0a0a0a;
  color: #fff;
  text-align: center;
}
.login-logo {
  display: block;
  width: min(580px, 100%);
  max-width: 100%;
  height: auto;
  margin: 0 auto 22px;
  padding: 0;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  object-position: center center;
  transform: translateX(-6px);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.login-stack {
  position: relative;
  z-index: 1;
  width: min(580px, 96vw);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: min(420px, 100%);
  background: linear-gradient(165deg, #1a1a22, #0c0c10);
  border: 1.5px solid rgba(225, 6, 0, 0.55);
  border-radius: 16px;
  padding: 28px 22px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 0 32px rgba(225,6,0,0.22), 0 18px 48px rgba(0,0,0,.55);
}
.login-brand {
  font-family: var(--display);
  font-weight: 400; letter-spacing: .08em; font-size: 2rem;
  text-align: center; margin-bottom: 6px;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 2.25px var(--red);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000;
}
.login-brand span { color: var(--red); }
.login-sub {
  text-align: center; color: #999; font-size: .85rem; margin: 0 0 22px;
  font-weight: 600; letter-spacing: .04em;
}
.login-role {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  width: 100%;
}
.login-role-btn {
  appearance: none; border: 2px solid #333; background: #1a1a1a; color: #bbb;
  border-radius: 10px; padding: 12px 4px; font-weight: 800; font-size: .82rem;
  letter-spacing: .03em;
  white-space: nowrap;
  min-width: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
}
.login-role-btn.active {
  border-color: var(--red); background: rgba(225,6,0,.18); color: #fff;
}
.login-label {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin: 12px 0 6px;
}
.login-input {
  width: 100%; min-height: 52px; font-size: 1.05rem; font-weight: 700;
  padding: 12px 14px; border-radius: 10px; border: 2px solid #fff;
  background: #fff; color: var(--black);
}
.login-store { appearance: auto; -webkit-appearance: menulist; }
.login-input:focus {
  outline: 3px solid rgba(225,6,0,.55); border-color: var(--red);
}
.login-pin-wrap { margin-top: 4px; }
.login-error {
  margin: 12px 0 0; padding: 10px 12px; border-radius: 8px;
  background: rgba(225,6,0,.15); border: 1px solid var(--red);
  color: #F07070; font-size: .85rem; font-weight: 600;
}
.login-continue {
  width: 100%; margin-top: 20px; min-height: 52px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .04em;
}

.managers-only-toast {
  position: fixed; left: 50%; bottom: calc(var(--bottom-tabs-h) + 24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: #111; color: #fff; border: 1px solid var(--red);
  padding: 10px 16px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  z-index: 80; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.managers-only-toast.show { opacity: 1; }

/* Main tabs — fixed bottom bar matching mock (white + icons) */
.tabs.bottom-tabs,
.bottom-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: rgba(12, 12, 16, 0.92);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid rgba(225, 6, 0, 0.45);
  box-shadow: 0 -8px 28px rgba(0,0,0,.45), 0 0 24px rgba(225,6,0,0.12);
  min-height: calc(var(--bottom-tabs-h) + env(safe-area-inset-bottom, 0px));
}
.tab {
  appearance: none; border: 0; background: transparent; color: #111;
  padding: 8px 6px 7px; font-weight: 800; letter-spacing: .05em;
  border-top: 3px solid transparent; text-transform: uppercase; font-size: .62rem;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.tab .tab-ico {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.tab .tab-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab.tab-team {
  font-size: 0.72rem;
  padding: 7px 6px 6px;
  letter-spacing: 0.07em;
  font-weight: 900;
}
.tab.tab-team .tab-ico {
  width: 26px;
  height: 26px;
}
.tab[hidden] { display: none !important; }
.tabs.tabs-one .tab {
  flex: 0 1 280px;
  font-size: 0.75rem;
  padding: 10px 18px 9px;
}
.tab.active {
  color: var(--red);
  border-top-color: var(--red);
  background: transparent;
}
.tab.tab-team.active {
  border-top-width: 4px;
  color: var(--red);
  background: transparent;
}

/* Vendor sub-tabs */
.vendor-tabs,
.vendor-tabs.seg-rail {
  position: relative;
  top: auto;
  z-index: 1;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: rgba(12, 12, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 6, 0, 0.35);
  padding: 10px 12px;
  justify-content: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
.vendor-tabs::-webkit-scrollbar { display: none; }
.vendor-tab {
  appearance: none;
  background: #fff;
  color: #111;
  flex: 1 0 auto;
  min-width: 64px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  border: 1px solid #111;
  border-right-width: 0;
  margin: 0;
}
.vendor-tab:first-child { border-radius: 10px 0 0 10px; }
.vendor-tab:last-child { border-radius: 0 10px 10px 0; border-right-width: 1px; }
.vendor-tab.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.vendor-tab.active + .vendor-tab { border-left-color: var(--red); }

.banner {
  margin: 10px 12px 0; padding: 10px 12px;
  background: #111; border: 1px solid var(--red); color: #eee;
  border-radius: var(--radius); font-size: .85rem; line-height: 1.35;
}

.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px;
}
.search {
  flex: 1 1 180px; min-width: 140px;
  border: 1px solid #111; border-radius: 10px; padding: 10px 12px;
  background: #fff;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.order-tools-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px 12px;
  margin: 0;
}
.order-tools-row .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  white-space: nowrap;
}
.order-tools-row .hidden-file { display: none; }
.btn {
  border: 1.5px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff;
  border-radius: 10px; padding: 9px 12px; font-weight: 700; font-size: .85rem;
  box-shadow: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--red-hot) 0%, var(--red) 45%, var(--red-deep) 100%);
  border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-family: var(--display); letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(225,6,0,0.35), 0 0 28px var(--red-glow-soft), 0 8px 20px rgba(0,0,0,0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 0 36px var(--red-glow), 0 12px 28px rgba(0,0,0,0.4); }
.btn.primary:active { transform: translateY(0); filter: brightness(0.96); }
.btn.ghost { background: transparent; box-shadow: none; border-color: rgba(255,255,255,0.28); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.panel { display: none; padding-bottom: calc(var(--sticky-h) + var(--bottom-tabs-h) + env(safe-area-inset-bottom, 0px) + 24px); }
.panel.active { display: block; }
.panel-order:not(.has-send-bar) { padding-bottom: calc(var(--bottom-tabs-h) + env(safe-area-inset-bottom, 0px) + 28px); }

.list { padding: 0 12px 24px; display: flex; flex-direction: column; gap: 8px; }
.item-card {
  background: linear-gradient(165deg, #1a1a22, #0c0c10);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 12px;
  box-shadow: none;
  color: #fff;
}

/* Blue/red tinted cards — solid outline, no glow */
.item-card.item-tint-blue {
  background: linear-gradient(165deg, #152238, #0c1018);
  border: 3px solid #002060;
  box-shadow: none;
}
.item-card.item-tint-red {
  background: linear-gradient(165deg, #2a1014, #120a0c);
  border: 3px solid #FF0000;
  box-shadow: none;
}
.item-card.item-tint-blue .item-name {
  color: #93c5fd !important;
}
.item-card.item-tint-red .item-name {
  color: #fca5a5 !important;
}
.item-card.item-tint-green {
  background: linear-gradient(165deg, #102418, #0c1010);
  border: 3px solid #3B7D23;
  box-shadow: none;
}
.item-card.item-tint-green .item-name {
  color: #4ade80 !important;
}

.item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }

.item-card.has-image .item-top {
  align-items: center;
}
.item-thumb-wrap {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a22;
  border: 2px solid var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.15), 0 0 14px rgba(225,6,0,0.25);
}
.item-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-top-main { flex: 1; min-width: 0; }
.count-row .item-thumb-wrap {
  flex-basis: 48px;
  width: 48px;
  height: 48px;
}

.item-name { font-weight: 700; font-size: .98rem; line-height: 1.25; flex: 1; }
.item-meta { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.badge {
  flex-shrink: 0; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  background: var(--red); color: #fff; border-radius: 4px; padding: 3px 6px;
  text-transform: uppercase;
}
.fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  align-items: stretch;
}
@media (max-width: 420px) {
  .fields { gap: 6px; }
}
.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.field label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
  text-align: center;
}
.field input, .field .readonly {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 6px;
  background: #fafafa;
  min-height: 40px;
  text-align: center;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.field input:focus { outline: 2px solid rgba(225,6,0,.25); border-color: var(--red); background: #1a1a22; color: #fff; }
.field .readonly {
  background: #1a1a22;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 12px 12px 0;
  align-items: end;
}
.order-controls label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.order-controls select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--card);
}

.count-controls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px;
}
@media (max-width: 480px) { .count-controls { grid-template-columns: 1fr; } }
.count-controls label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.count-controls select, .count-controls input {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--card);
}

.complete-banner {
  display: none; margin: 0 12px 10px; padding: 12px;
  background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46;
  border-radius: var(--radius); font-weight: 700;
}
.complete-banner.show { display: block; }

/* Inventory count row with line $ */
.count-row {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}
.count-row .item-name { font-size: .92rem; }
.count-qty-wrap {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0;
}
.count-row input {
  width: 88px; text-align: center; font-size: 1.05rem; font-weight: 700;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; background: #fafafa;
}
.count-row input:focus { outline: 2px solid rgba(225,6,0,.25); border-color: var(--red); background: #fff; }
.line-dollars {
  font-size: .72rem; font-weight: 700; color: var(--muted); letter-spacing: .01em;
  min-height: 1em;
}
.line-dollars.has-value { color: var(--red); }

/* Sticky bottom bars */
.sticky-bar {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--bottom-tabs-h) + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  background: var(--black);
  color: #fff;
  border-top: 3px solid var(--red);
  padding: 10px 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25);
}
.sticky-bar[hidden] { display: none !important; }
.sticky-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 720px; margin: 0 auto;
}
.sticky-bar-meta {
  font-size: .82rem; color: #ccc; font-weight: 600;
}
.sticky-send-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .03em;
  min-width: 140px;
}
.inv-sticky-main { align-items: stretch; }
.inv-sticky-totals { flex: 1; min-width: 0; }
.inv-grand {
  font-size: 1.05rem; font-weight: 700; color: #fff; letter-spacing: .01em;
}
.inv-grand strong { color: #fff; font-size: 1.15rem; }
.inv-vendor-line {
  margin-top: 3px; font-size: .75rem; color: #aaa; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.inv-sep { margin: 0 4px; color: #666; }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80;
  display: none; align-items: flex-end; justify-content: center; padding: 12px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: linear-gradient(165deg, #1a1a22, #0c0c10);
  width: min(480px, 100%); border-radius: 16px;
  padding: 16px; max-height: 90dvh; overflow: auto;
  border: 1.5px solid rgba(225, 6, 0, 0.5);
  box-shadow: 0 0 32px rgba(225,6,0,0.22), 0 24px 56px rgba(0,0,0,0.55);
  color: #fff;
}
.modal h2 {
  margin: 0 0 12px; font-size: 1.25rem;
  font-family: var(--display); letter-spacing: .05em; text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--red);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 #000;
}
.modal .form-grid { display: grid; gap: 10px; }
.modal label { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.modal input, .modal select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-top: 4px;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }

.empty {
  text-align: center; color: var(--muted); padding: 40px 16px; font-size: .95rem;
}
.hidden-file { display: none; }

.order-modal {
  width: min(560px, 100%);
  border-top: 4px solid var(--red);
  background: #fff;
  color: var(--black);
}
.order-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.order-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.btn-close-x {
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 10px;
  border: none;
  box-shadow: none;
  color: var(--muted);
}
.order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  padding: 10px 12px;
  background: var(--black);
  color: #fff;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 12px;
}
.order-meta .k {
  display: inline-block;
  min-width: 64px;
  color: #bbb;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: 6px;
}
.order-lines-head {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin: 4px 0 8px;
}
.order-lines-head.skip-head { color: var(--muted); border-color: var(--line); }
.order-line {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.order-line:last-child { border-bottom: none; }
.ol-name { font-weight: 700; font-size: .92rem; }
.ol-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: .78rem;
  color: var(--muted);
}
.ol-qty {
  color: var(--red);
  font-weight: 800;
  font-size: .85rem;
}
.order-skipped {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f4f4f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.order-skipped:empty { display: none; }
.skip-line { font-size: .82rem; padding: 3px 0; color: var(--muted); }
.order-modal-actions {
  flex-wrap: wrap;
  justify-content: stretch;
}
.order-modal-actions .btn { flex: 1 1 auto; }
.order-push-setup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.order-push-setup[hidden] { display: none !important; }
.order-push-setup label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 4px;
}
.order-push-setup input {
  width: 100%;
  box-sizing: border-box;
}
.order-push-setup .btn { margin-top: 6px; align-self: flex-start; }

.order-footnote {
  margin: 12px 0 0;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.empty-soft {
  text-align: center;
  color: var(--muted);
  padding: 18px 8px;
  font-size: .88rem;
}

.inv-breakdown {
  margin-bottom: 8px;
}
.inv-break-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.inv-break-row:last-child { border-bottom: none; }
.inv-break-row .vb-name { font-weight: 700; }
.inv-break-row .vb-amt { font-weight: 800; color: var(--red); }
.inv-break-row.grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 2px solid var(--black);
  border-bottom: none;
  font-size: 1.05rem;
}
.inv-break-row.grand .vb-amt { color: var(--black); }

.store-select-lg {
  width: 100%;
  min-height: 56px;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #fff;
  background: #fff;
  color: var(--black);
  appearance: auto;
  -webkit-appearance: menulist;
}
.store-select-lg:focus {
  outline: 3px solid rgba(225,6,0,.55);
  border-color: var(--red);
}
.store-custom-lg {
  width: 100%;
  margin-top: 10px;
  min-height: 52px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #fff;
  background: #fff;
  color: var(--black);
}

.period-only {
  margin: 12px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.period-only label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.period-input-lg {
  width: 100%;
  min-height: 48px;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: #fafafa;
  color: var(--ink);
}
.period-input-lg:focus {
  outline: 3px solid rgba(225,6,0,.35);
  border-color: var(--red);
  background: #fff;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* obsolete per-panel store heroes (if any remain) */
.store-hero { display: none !important; }
.order-controls { display: none !important; }
.count-controls { display: none !important; }

/* Hide vendor tabs on Team */
.vendor-tabs.hidden-for-team,
.vendor-tabs.hidden-for-employee { display: none !important; }

/* ---------- Team ---------- */
.panel-team { padding-bottom: calc(var(--bottom-tabs-h) + env(safe-area-inset-bottom, 0px) + 28px); }
.team-subtabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
  padding: 10px 12px 12px;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  max-width: 720px;
  width: 100%;
  box-sizing: border-box;
}
.team-subtab {
  appearance: none;
  background: #fff;
  color: #111;
  padding: 11px 8px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
  font-size: .82rem;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  border: 1px solid #111;
  border-right-width: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  order: 0;
  max-width: none;
  width: auto;
}
.team-subtab:not(.mgr-hq-btn):first-child {
  border-radius: 10px 0 0 10px;
}
.team-subtab:not(.mgr-hq-btn)[data-team-sub="comms"] {
  border-right-width: 1px;
  border-radius: 0 10px 10px 0;
}
.team-subtab[hidden] { display: none !important; }
.team-subtab.active:not(.mgr-hq-btn) {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
/* Big Manager HQ button under the row — black idle, red outline when selected */
.team-subtab.mgr-hq-btn {
  flex: 1 0 100%;
  order: 10;
  display: block;
  width: calc(100% - 8px);
  max-width: 420px;
  margin: 12px auto 2px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid #111;
  border-radius: 12px;
  background: #111;
  color: #fff;
  box-shadow: none;
  align-self: center;
}
.team-subtab.mgr-hq-btn.active {
  background: #111;
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red);
}
.team-subtabs.has-mgr-hq .team-subtab:not(.mgr-hq-btn) {
  flex: 1 1 0;
}
.team-pane { display: none !important; }
.team-pane.active { display: block; }
/* Comms panes are flex chat shells — only when active */
#team-comms.team-pane.active,
#team-mgrroom .mgr-comms-panel.comms-chat {
  display: flex !important;
}

.team-schedule-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 12px 8px; flex-wrap: wrap;
}
.team-schedule-actions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  justify-content: flex-end;
}
.team-schedule-actions .btn { font-size: .78rem; padding: 8px 10px; }
.team-week-label {
  font-weight: 800; font-size: .95rem; color: var(--ink);
  letter-spacing: .02em;
}
.team-week-label .src-tag {
  display: inline-block; margin-left: 8px;
  font-size: .65rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--warn);
  border-radius: 4px; padding: 2px 6px; vertical-align: middle;
}

.schedule-list { padding: 0 12px 24px; }
.schedule-week-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.schedule-week-table {
  border-collapse: separate; border-spacing: 0;
  width: max-content; min-width: 100%;
  font-size: .78rem;
}
.schedule-week-table thead th {
  background: var(--black); color: #fff;
  font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; font-size: .72rem;
  padding: 10px 8px; text-align: center;
  border-bottom: 3px solid var(--red);
  white-space: nowrap; position: sticky; top: 0; z-index: 2;
}
.schedule-week-table thead th.sch-emp-col {
  text-align: left; padding-left: 12px; min-width: 132px;
  position: sticky; left: 0; z-index: 4;
  background: var(--black);
  box-shadow: 2px 0 0 rgba(225,6,0,.35);
}
.schedule-week-table thead th.sch-day-col { min-width: 108px; }
.schedule-week-table thead th.sch-hrs-col { min-width: 48px; }

.schedule-week-table tbody th,
.schedule-week-table tbody td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  background: #fff;
}
.schedule-week-table tbody tr:last-child th,
.schedule-week-table tbody tr:last-child td { border-bottom: none; }
.schedule-week-table tbody td:last-child { border-right: none; }

.sch-emp-cell {
  position: sticky; left: 0; z-index: 3;
  text-align: left; padding: 10px 12px;
  background: #fafafa !important;
  box-shadow: 2px 0 0 var(--line);
  min-width: 132px; max-width: 160px;
}
.sch-emp-name { font-weight: 800; font-size: .86rem; color: var(--ink); line-height: 1.25; }
.sch-emp-role {
  font-size: .68rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .03em; margin-top: 2px;
}

.sch-day-cell {
  padding: 6px; text-align: center; min-width: 108px;
}
.sch-day-cell.sch-off { background: #f7f7f7; }
.sch-off-label {
  display: block; color: #9a9a9a; font-weight: 700;
  font-size: .72rem; letter-spacing: .08em;
}

.sch-chip {
  display: block; text-align: left;
  background: #fff;
  border: 1px solid rgba(17,17,17,.18);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 5px 7px;
  margin: 0 auto;
  max-width: 124px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}
.sch-chip + .sch-chip { margin-top: 4px; }
.sch-chip-role {
  font-size: .62rem; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .03em; margin-bottom: 1px;
}
.sch-chip-time {
  font-size: .72rem; font-weight: 800; color: var(--ink);
  white-space: nowrap; line-height: 1.25;
}

.sch-hrs-cell {
  text-align: center; font-weight: 800; color: var(--red);
  font-size: .82rem; padding: 8px 6px; white-space: nowrap;
}

.sch-chip {
  position: relative;
  padding-right: 22px;
}
.sch-chip-more {
  position: absolute; top: 2px; right: 2px;
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font-weight: 900; font-size: .95rem;
  line-height: 1; width: 22px; height: 22px; border-radius: 4px;
  padding: 0; cursor: pointer;
}
.sch-chip-more:hover, .sch-chip-more[aria-expanded="true"] {
  background: rgba(225,6,0,.1); color: var(--red);
}
.sch-chip-menu {
  display: none; position: absolute; z-index: 6;
  top: 100%; right: 0; margin-top: 4px;
  min-width: 150px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 4px;
  text-align: left;
}
.sch-chip-menu.open { display: block; }
.sch-chip-menu button {
  display: block; width: 100%; text-align: left;
  appearance: none; border: 0; background: transparent;
  padding: 8px 10px; border-radius: 6px;
  font-size: .78rem; font-weight: 700; color: var(--ink); cursor: pointer;
}
.sch-chip-menu button:hover { background: rgba(225,6,0,.08); color: var(--red); }

.sch-off {
  position: relative;
}
.sch-pickup-btn {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font-size: .62rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: 4px; padding: 2px 4px; border-radius: 4px;
  cursor: pointer;
}
.sch-pickup-btn:hover { color: var(--red); background: rgba(225,6,0,.08); }

.shift-req-modal { border-top: 4px solid var(--red); }
.shift-req-blurb {
  margin: 0 0 12px; color: var(--muted); font-size: .88rem; line-height: 1.4;
}
.shift-req-modal textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px; margin-top: 4px; resize: vertical; font: inherit;
}
.comms-tag {
  display: inline-block; margin-right: 6px;
  font-size: .65rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #fff; background: var(--red);
  border-radius: 4px; padding: 2px 6px; vertical-align: middle;
}
.comms-tag.trade { background: var(--black); }
.comms-tag.pickup { background: #333; }

/* legacy day-stack (unused) kept minimal for safety */
.schedule-day { display: none; }

.banner-comms {
  background: #111; border-color: var(--red); color: #eee;
}
.banner-comms strong { color: #fff; }

.comms-composer {
  margin: 12px; padding: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 8px;
}
.comms-composer label {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.comms-composer input, .comms-composer textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; background: #fafafa; color: var(--ink);
  resize: vertical;
}
.comms-composer input:focus, .comms-composer textarea:focus {
  outline: 2px solid rgba(225,6,0,.25); border-color: var(--red); background: #fff;
}
.comms-composer .btn { justify-self: end; min-width: 100px; }

.comms-list { padding: 0 12px 28px; display: flex; flex-direction: column; gap: 10px; }
.comms-post {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px;
}
.comms-post-head {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  margin-bottom: 6px;
}
.comms-author { font-weight: 800; font-size: .92rem; }
.comms-time { font-size: .72rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.comms-body {
  font-size: .92rem; line-height: 1.4; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.comms-actions { margin-top: 8px; }
.comms-actions .btn { padding: 6px 10px; font-size: .78rem; }

.comms-replies {
  margin-top: 10px; padding-left: 12px;
  border-left: 3px solid var(--red);
  display: flex; flex-direction: column; gap: 8px;
}
.comms-reply {
  background: #fafafa; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px;
}
.comms-reply-form {
  margin-top: 8px; display: grid; gap: 6px;
  padding: 8px; background: #f7f7f7; border-radius: 8px; border: 1px dashed var(--line);
}
.comms-reply-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; background: #fff; resize: vertical; min-height: 56px;
}
.comms-reply-form .btn-row { padding: 0; justify-content: flex-end; }

/* Request off panel */
.request-off-panel {
  margin: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.request-off-head {
  background: var(--black);
  color: #fff;
  padding: 14px 16px;
  border-bottom: 2px solid var(--red);
}
.request-off-head h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.request-off-rule {
  margin: 0;
  color: #ccc;
  font-size: .82rem;
  line-height: 1.4;
}
.request-off-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.request-off-form label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.label-optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: #999;
}
.request-off-form input[type="text"],
.request-off-form input[type="date"],
.request-off-form input[type="time"],
.request-off-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafafa;
  color: var(--ink);
  font: inherit;
}
.request-off-form input:focus,
.request-off-form textarea:focus {
  outline: 2px solid rgba(225,6,0,.25);
  border-color: var(--red);
  background: #fff;
}
.request-off-form input:disabled,
.request-off-form input[type="date"]:invalid {
  /* keep native */
}
.request-off-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .request-off-dates { grid-template-columns: 1fr; }
}
.request-off-hint {
  margin: -4px 0 0;
  font-size: .8rem;
  color: var(--red);
  font-weight: 700;
}
.request-off-actions {
  display: flex;
  justify-content: flex-end;
}
.request-off-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(31,122,63,.1);
  color: var(--ok);
  font-weight: 700;
  font-size: .88rem;
}
.request-off-status.err {
  background: rgba(225,6,0,.08);
  color: var(--red);
}
.comms-tag.requestoff { background: var(--black); }

.sch-emp-hrs {
  font-size: .72rem; font-weight: 800; color: var(--red);
  margin-top: 2px;
}
.team-week-total {
  font-size: .85rem; font-weight: 700; color: var(--ink);
  margin-top: 4px;
}
.team-week-total strong { color: var(--red); }
.schedule-week-table thead th.sch-hrs-col { min-width: 56px; }



/* Skinny daily + week totals row under schedule grid */
.schedule-week-table tfoot .sch-totals-row th,
.schedule-week-table tfoot .sch-totals-row td {
  background: #1a1a1a;
  color: #fff;
  border-top: 2px solid var(--red);
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
  height: 32px;
  line-height: 1.2;
}
.schedule-week-table tfoot .sch-totals-label {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #1a1a1a;
}
.schedule-week-table tfoot .sch-totals-week {
  color: #fff;
  background: var(--red) !important;
  font-size: 12px;
  font-weight: 800;
}
.schedule-week-table tfoot .sch-totals-cell {
  font-variant-numeric: tabular-nums;
}

.login-owner-hint {
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  border-left: 3px solid var(--red);
  font-size: 13px;
  font-weight: 600;
}
.login-owner-hint[hidden] { display: none !important; }


.request-off-history { margin-top: 22px; padding-top: 14px; border-top: 1px solid #2a2a2a; }
.request-off-history h3 {
  margin: 0 0 10px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 800;
}
.req-off-history-list { display: flex; flex-direction: column; gap: 8px; }
.req-off-card {
  background: #1a1a1a; border: 1px solid #333; border-radius: 10px;
  padding: 10px 12px; color: #eee;
}
.req-off-card .roh-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.req-off-card .roh-dates { font-weight: 800; font-size: .92rem; }
.req-off-status-pill {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.req-off-status-pill.pending { background: #444; color: #fff; }
.req-off-status-pill.approved { background: #1f6b3a; color: #fff; }
.req-off-status-pill.denied { background: var(--red); color: #fff; }
.req-off-card .roh-meta { font-size: .75rem; color: #999; margin-top: 4px; }
.request-off-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  background: #1a1a1a;
  color: #bbb;
  font-size: .82rem;
  line-height: 1.45;
}
.mgr-review-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #161616;
  display: grid;
  gap: 10px;
}
.mgr-review-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mgr-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #555;
  border-radius: 12px;
  background: #1c1c1c;
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mgr-check input[type="checkbox"],
.mgr-check input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.mgr-box {
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 6px;
  background: #0d0d0d;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mgr-check input:checked + .mgr-box {
  background: var(--red);
  border-color: #fff;
}
.mgr-check input:checked + .mgr-box::after {
  content: "✓";
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.mgr-check.is-approved {
  border-color: #1f6b3a;
  background: rgba(31, 107, 58, 0.25);
}
.mgr-check.is-denied {
  border-color: var(--red);
  background: rgba(200, 16, 46, 0.18);
}
.mgr-review-panel label.mgr-why-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #999;
}
.mgr-review-panel textarea {
  width: 100%;
  border: 1px solid #444;
  border-radius: 10px;
  background: #111;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
}
.mgr-review-panel .btn.primary { font-weight: 800; }
.mgr-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mgr-review-actions .btn { flex: 1 1 120px; font-weight: 800; }
.btn.approve { background: #1f6b3a; border-color: #1f6b3a; color: #fff; }
.btn.deny { background: transparent; border: 2px solid var(--red); color: #F07070; }
.sch-chip.timeoff, .sch-timeoff-label {
  background: #2A1214; border: 1px solid var(--red); color: #F07070;
  font-weight: 800; font-size: .72rem; letter-spacing: .04em;
  padding: 6px 8px; border-radius: 8px; display: inline-block;
}

.login-under {
  width: min(420px, 100%);
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.login-install {
  display: block;
  width: auto;
  min-width: 200px;
  min-height: 48px;
  margin: 0 auto;
  padding: 12px 22px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 10px;
}
.login-install:hover, .login-install:focus {
  border-color: var(--red);
  color: #fff;
  background: rgba(225,6,0,.15);
}
.login-legal {
  width: 100%;
  max-width: min(420px, 100%);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow-x: hidden;
  padding: 0 4px;
  box-sizing: border-box;
}
.login-install-hint {
  margin: 0;
  text-align: center;
  color: #bdbdbd;
  font-size: .72rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: .01em;
  white-space: normal;
  max-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
.login-install-hint-sub {
  color: #999;
  font-size: .68rem;
}
.login-legal-fine {
  margin: 0;
  text-align: center;
  color: #777;
  font-size: .68rem;
  line-height: 1.45;
  font-weight: 500;
  font-style: italic;
}
.login-copyright {
  margin: 4px 0 0;
  text-align: center;
  color: #888;
  font-size: .7rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .04em;
}
.install-help-body {
  display: grid;
  gap: 12px;
  margin: 8px 0 4px;
}
.install-help-card {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 14px;
  background: #161616;
}
.install-help-card h3 {
  margin: 0 0 6px;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.install-help-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: #ddd;
  font-size: .9rem;
  line-height: 1.45;
}
.install-help-card li { margin: 4px 0; }
.install-help-note {
  margin: 0;
  color: #aaa;
  font-size: .82rem;
  line-height: 1.4;
}

/* ---------- Manager HQ banner + metrics (match Enzo Ops app) ---------- */
.mgr-room-banner {
  margin: 12px 12px 0;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  border-left: 3px solid var(--red);
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  box-shadow: none;
}
.mgr-room-banner strong {
  color: #fff;
  font-weight: 800;
}

.hq-metrics-panel {
  margin: 12px 12px 16px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}
.hq-metrics-head {
  padding: 12px 14px 10px;
  margin: 0;
  background: var(--black);
  border-bottom: 3px solid var(--red);
  text-align: center;
}
.hq-metrics-head::before { display: none; content: none; }
.hq-metrics-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
}
.hq-metrics-sub { display: none !important; }
.hq-metrics-body {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  background: var(--bg);
  overflow: visible;
}
.hq-store-section {
  border: none;
  padding: 0;
  background: transparent;
}


.hq-store-section-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  display: block;
  line-height: 1.25;
  text-align: center;
}
.hq-store-section-title::before { display: none; content: none; }
.hq-charts-row { display: contents; }

.hq-chart-card,
.hq-chart-card-single {
  position: relative;
  background: var(--card);
  border: 1px solid #111;
  border-radius: 12px;
  padding: 16px 14px 18px;
  overflow: visible;
  box-shadow: var(--shadow);
}
.hq-card-head { display: none; }
.hq-chart-label { display: none; }


.hq-hero-scope {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #9ca3af;
  text-align: center;
}

.hq-hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px 14px;
  margin: 4px 0 14px;
  padding: 16px 12px 14px;
  background: var(--black);
  color: #fff;
  border-radius: 12px;
  justify-items: center;
  text-align: center;
}
.hq-hero-month {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 4px;
}
.hq-hero-month-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
  min-width: 9.5rem;
  text-align: center;
  white-space: nowrap;
}
.hq-hero-month-btn {
  appearance: none;
  border: 1px solid #444;
  background: #1f1f1f;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hq-hero-month-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.hq-hero-month-btn:not(:disabled):active {
  background: #333;
}

.hq-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  width: 100%;
}
.hq-hero-val {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.hq-hero-rev .hq-hero-val {
  font-size: 1.3rem;
  color: #16A34A;
}
.hq-hero-sec .hq-hero-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ddd6fe;
}
.hq-hero-cogs .hq-hero-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #e5e7eb;
}
.hq-hero-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #bbb;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.hq-hero-pct {
  font-size: 0.68rem;
  font-weight: 800;
  color: #e5e7eb;
  letter-spacing: 0;
  text-transform: none;
}
.hq-hero-asof {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: #999;
  font-weight: 600;
  text-align: center;
  justify-self: center;
}

.hq-store-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  justify-content: flex-start;
  align-items: center;
}
.hq-store-pill {
  appearance: none;
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hq-store-pill.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.hq-toggles,
.hq-period {
  display: flex;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 8px 0 14px;
  padding: 0;
  background: #fff;
  border: 1px solid #111;
  border-radius: 10px;
  overflow: visible;
  box-sizing: border-box;
}
.hq-toggle,
.hq-period-btn {
  appearance: none;
  flex: 1 1 0;
  border: none;
  border-right: 1px solid #111;
  border-bottom: none;
  background: #fff;
  color: #111;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  padding: 11px 6px;
  border-radius: 0;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 42px;
  line-height: 1.2;
}
/* Daily / Weekly / Monthly share the top row */
.hq-period-btn:not(.hq-period-year) {
  flex: 1 1 0;
  min-width: 0;
}
.hq-period-btn:not(.hq-period-year):nth-child(3) {
  border-right: none;
}
/* Year = full-width row under Daily/Weekly/Monthly */
.hq-period-btn.hq-period-year {
  flex: 1 0 100%;
  width: 100%;
  border-right: none;
  border-top: 1px solid #111;
  min-height: 44px;
  letter-spacing: 0.06em;
}
.hq-toggle:last-child:not(.hq-period-year),
.hq-period-btn:last-child:not(.hq-period-year) {
  border-right: none;
}
.hq-toggle.active,
.hq-period-btn.active {
  color: #fff;
  background: #e10600;
  border-bottom-color: transparent;
  box-shadow: none;
  font-weight: 800;
}
.hq-toggle:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  justify-content: center;
}
.hq-legend-under {
  justify-content: center;
  align-items: center;
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: nowrap;
  gap: 6px 8px;
  font-size: 0.64rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hq-legend-under .hq-leg {
  flex: 0 0 auto;
  white-space: nowrap;
}
.hq-leg { display: inline-flex; align-items: center; gap: 5px; }
.hq-leg i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #c7c7cc;
}
.hq-leg-gfs i { background: #F87171; }
.hq-leg-sofo i { background: #0891B2; }
.hq-leg-pepsi i { background: #EAB308; }
.hq-leg-gelardi i { background: #7C3AED; }
.hq-leg-webcor i { background: #EA580C; }
.hq-leg-netsales i { background: #16A34A; height: 3.5px; }
.hq-leg-revenue i { background: #92400E; height: 3.5px; }
.hq-leg-labor i { background: #7C3AED; }
.hq-leg-cogs i { background: repeating-linear-gradient(90deg, #111827 0 6px, transparent 6px 11px); background-color: transparent; border: 0; height: 3px; border-radius: 0; }

.hq-chart-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  touch-action: manipulation;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
  overflow: visible;
}
.hq-chart-wrap-tall {
  height: 300px;
  margin-top: 4px;
  /* keep tip/dots visible when clicking the chart */
  overflow: visible;
}
.hq-chart {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
}
.hq-chart .hq-grid { stroke: #e5e5e5; stroke-width: 1; }
.hq-chart .hq-axis-label {
  fill: #6b6b6b;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
}
.hq-chart .hq-axis-label.hq-axis-right { fill: #7a7a7a; }
.hq-chart .hq-plot-hit { pointer-events: all; }

.hq-chart .hq-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hq-chart .hq-line.netsales { stroke: #16A34A; stroke-width: 3.5; }
.hq-chart .hq-line.revenue { stroke: #92400E; stroke-width: 3.5; }
.hq-chart .hq-line.labor { stroke: #7C3AED; stroke-width: 2.5; }
.hq-chart .hq-line.cogs { stroke: #111827; stroke-width: 2.5; stroke-dasharray: 6 5; stroke-linecap: butt; }
.hq-chart .hq-line.gfs { stroke: #F87171; stroke-width: 2.5; }
.hq-chart .hq-line.sofo { stroke: #0891B2; stroke-width: 2.5; }
.hq-chart .hq-line.pepsi { stroke: #EAB308; stroke-width: 2.5; }
.hq-chart .hq-line.gelardi { stroke: #7C3AED; stroke-width: 2.5; }
.hq-chart .hq-line.webcor { stroke: #EA580C; stroke-width: 2.5; }
.hq-chart .hq-dot { stroke: #fff; stroke-width: 1.5; }
.hq-chart .hq-dot.netsales { fill: #16A34A; }
.hq-chart .hq-dot.revenue { fill: #92400E; }
.hq-chart .hq-dot.labor { fill: #7C3AED; }
.hq-chart .hq-dot.cogs { fill: #111827; }
.hq-chart .hq-dot.gfs { fill: #F87171; }
.hq-chart .hq-dot.sofo { fill: #0891B2; }
.hq-chart .hq-dot.pepsi { fill: #EAB308; }
.hq-chart .hq-dot.gelardi { fill: #7C3AED; }
.hq-chart .hq-dot.webcor { fill: #EA580C; }
.hq-chart .hq-empty {
  fill: #6b6b6b;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.hq-chart .hq-guide {
  stroke: #e10600;
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.45;
  pointer-events: none;
}
.hq-chart .hq-dot-hit {
  pointer-events: all;
}
.hq-chart-tip {
  position: absolute;
  z-index: 120;
  min-width: 168px;
  max-width: min(280px, 92%);
  padding: 10px 12px;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
  transform: translateZ(0);
}
.hq-chart-tip[hidden] { display: none !important; }
.hq-chart-tip.is-pinned {
  pointer-events: auto;
}
.hq-chart-tip-period {
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2a2a2a;
  text-transform: none;
}
.hq-chart-tip-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  gap: 4px 8px;
  align-items: center;
  padding: 3px 0;
}
.hq-chart-tip-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.hq-chart-tip-name {
  color: #f3f4f6;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}
.hq-chart-tip-amt {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}
.hq-chart-tip-pct {
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
/* Tip row accents follow series colors via swatches; names stay Title Case from JS */
.hq-vendor-note {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}
.hq-totals { display: none; }


.inv-readonly-banner {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}
.panel-inventory.inv-readonly .count-qty-wrap input:disabled {
  opacity: 0.85;
  background: #f3f3f3;
  color: #111;
}
select.period-input-lg {
  appearance: auto;
  cursor: pointer;
}


.hq-ytd {
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.hq-ytd-head {
  background: #111;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  text-align: center;
}
.hq-ytd-primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.hq-ytd-primary-item {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  align-items: center;
  text-align: center;
}
.hq-ytd-primary-item + .hq-ytd-primary-item {
  border-left: 1px solid var(--line);
}
.hq-ytd-primary-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hq-ytd-primary-val {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}

.hq-ytd-primary-pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}
.hq-ytd-netsales .hq-ytd-primary-val { color: #16A34A; }
.hq-ytd-revenue .hq-ytd-primary-val { color: #92400E; }
.hq-ytd-labor .hq-ytd-primary-val { color: #7C3AED; }
.hq-ytd-cogs .hq-ytd-primary-val { color: #111827; }

.hq-ytd-vendors-drop {
  border-top: 1px solid var(--line);
  background: #fafafa;
}
.hq-ytd-vendors-summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hq-ytd-vendors-summary::-webkit-details-marker { display: none; }
.hq-ytd-vendors-summary::after {
  content: '▸';
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.15s ease;
}
.hq-ytd-vendors-drop[open] > .hq-ytd-vendors-summary::after {
  transform: rotate(90deg);
}
.hq-ytd-vendors-drop .hq-ytd-vendors {
  border-top: 1px solid var(--line);
  background: #fff;
}

.hq-ytd-vendors {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 0;
}
.hq-ytd-vendor {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.hq-ytd-vendor + .hq-ytd-vendor {
  border-top: 1px solid #f0f0f0;
}
.hq-ytd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.hq-ytd-vendor-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
}
.hq-ytd-vendor-amt {
  font-size: 0.88rem;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 380px) {
  .hq-ytd-primary {
    grid-template-columns: 1fr;
  }
  .hq-ytd-primary-item + .hq-ytd-primary-item {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

.hq-store-pill-all {
  border-color: #111;
  font-weight: 900;
}
.hq-store-pill-all.active {
  background: #111;
  border-color: #111;
  color: #fff;
}
.hq-store-pill-all {
  min-width: 64px;
}

/* store pills: horizontal scroll on all widths */


.mgr-comms-panel {
  margin: 12px 12px 16px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mgr-comms-head {
  padding: 12px 14px 10px;
  background: var(--black);
  border-bottom: 3px solid var(--red);
  text-align: center;
}
.mgr-comms-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
}
.mgr-comms-sub {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: #bbb;
  font-weight: 600;
  text-align: center;
}
.mgr-comms-composer {
  margin: 0;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.mgr-comms-panel .comms-list {
  padding: 12px;
  max-height: 420px;
  overflow-y: auto;
}
.mgr-reviews-head {
  margin: 8px 12px 0;
  padding: 10px 12px;
  background: #111;
  border-left: 3px solid var(--red);
  text-align: center;
}
.mgr-reviews-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.item-vendor-tag {
  display: inline-block;
  font-weight: 800;
  color: #fff;
  background: #111;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}


/* ---------- Past Orders (Order Guide) ---------- */



/* HQ: prevent SVG/viewport cropping on interact */
.hq-chart {
  overflow: visible !important;
}
.hq-chart-wrap,
.hq-chart-wrap-tall {
  overflow: visible !important;
}
.hq-chart-card,
.hq-chart-card-single,
.hq-metrics-body,
.hq-metrics-panel,
#team-mgrroom.team-pane.active {
  overflow: visible !important;
}
.hq-chart-wrap-tall {
  height: 220px !important;
  min-height: 0 !important;
  padding: 4px !important;
  box-sizing: border-box;
}
.hq-chart-wrap-tall .hq-chart {
  height: 100% !important;
  min-height: 0 !important;
  width: 100%;
}
.hq-chart-tip {
  position: fixed !important;
  z-index: 9999 !important;
  max-width: min(300px, calc(100vw - 16px));
  pointer-events: none;
}
.hq-store-pills {
  overflow-x: auto !important;
  flex-wrap: nowrap !important;
}
.hq-legend,
.hq-legend-under {
  overflow: visible !important;
  flex-wrap: wrap !important;
}
.hq-ytd {
  overflow: visible !important;
}


/* HQ layout: kill weird vertical crop/blank centering on Manager HQ */
#panel-team.panel.active,
#team-mgrroom.team-pane.active {
  display: block;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
}
#team-mgrroom.team-pane.active {
  padding-top: 0;
}
.hq-metrics-panel {
  margin-top: 8px;
}
.mgr-hq-jump,
button.mgr-hq-jump,
#mgrHqJump {
  margin: 8px 12px;
}

.past-orders-panel {
  margin: 0 12px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.past-orders-panel > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--black);
  color: #fff;
  border-bottom: 2px solid var(--red);
  font-weight: 750;
  user-select: none;
}
.past-orders-panel > summary::-webkit-details-marker { display: none; }
.past-orders-panel > summary::before {
  content: '▸';
  color: var(--red);
  font-size: .85rem;
  margin-right: 2px;
}
.past-orders-panel[open] > summary::before { content: '▾'; }
.past-orders-title { font-size: .95rem; letter-spacing: .02em; }
.past-orders-hint {
  font-size: .72rem;
  font-weight: 550;
  color: #bbb;
}
.past-orders-list {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.past-orders-empty {
  color: var(--muted);
  font-size: .85rem;
  padding: 8px 2px;
}
.past-order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.past-order-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.past-order-card > summary::-webkit-details-marker { display: none; }
.poc-vendor {
  font-weight: 800;
  color: var(--ink);
  font-size: .92rem;
}
.poc-meta {
  font-size: .75rem;
  color: var(--muted);
}
.past-order-lines {
  border-top: 1px solid var(--line);
  padding: 8px 12px 10px;
}
.past-order-line {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.past-order-line:last-child { border-bottom: none; }
.pol-name { font-weight: 650; font-size: .88rem; }
.pol-meta { font-size: .72rem; color: var(--muted); }


/* Live snap chips under black hero — white cards with amounts */
.hq-snap-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  justify-content: stretch;
}
@media (min-width: 520px) {
  .hq-snap-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hq-snap-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
  line-height: 1.2;
  min-height: 58px;
  text-align: left;
}
.hq-snap-chip-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: #111;
}
.hq-snap-chip-amt {
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #6b7280;
  letter-spacing: -0.01em;
}
.hq-snap-chip.active {
  background: rgba(225, 6, 0, 0.08);
  color: #111;
  border-color: #e10600;
  box-shadow: inset 0 0 0 1px #e10600;
}
.hq-snap-chip:active {
  transform: scale(0.98);
}

/* History block (scrub + chart) — separate from live hero */
.hq-history-block {
  margin: 8px 0 0;
  padding: 12px 0 0;
}
.hq-history-heading {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #111;
  margin: 0 0 10px;
  text-align: left;
}
.hq-history-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
}
.hq-history-label {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #111;
  min-width: 10rem;
  text-align: center;
  white-space: nowrap;
}
.hq-history-nav .hq-hero-month-btn {
  border: 1px solid #111;
  background: #fff;
  color: #111;
}
.hq-history-nav .hq-hero-month-btn:not(:disabled):active {
  background: #f0f0f0;
}

/* Shared chrome polish — cards / panels breathe like the HQ mock */
.panel {
  padding-top: 12px;
}
.btn {
  border-radius: 10px;
}
.login-role {
  border-radius: 10px;
  overflow: hidden;
}



/* Manager HQ open: top store dropdown hidden — store scroll is the picker */
.store-primary.hq-using-store-scroll .store-select-lg,
.store-primary.hq-using-store-scroll .store-custom-lg {
  display: none !important;
}
.store-primary.hq-using-store-scroll .store-primary-name {
  margin-bottom: 0;
}


/* One HQ store scroll — clear track, horizontal only */
.hq-store-scroll-wrap {
  width: 100%;
  margin: 0 0 14px;
}
.hq-store-scroll-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 6px 2px;
}
.hq-store-pills {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 4px 2px 10px;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  /* scrollbar themed below */
  justify-content: flex-start;
  align-items: center;
}

/* Symmetrical order sticky bar above bottom tabs */
.sticky-bar.order-sticky .sticky-bar-sym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.sticky-bar-side-left {
  min-width: 0;
  text-align: left;
}
.sticky-bar-side-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.sticky-bar.order-sticky .sticky-send-btn {
  width: 100%;
  max-width: 220px;
  min-height: 48px;
}
.sticky-bar.order-sticky .sticky-bar-meta {
  margin-top: 2px;
  color: #9ca3af;
}


/* Order total bar: invisible until a real order qty is typed */
.sticky-bar.order-sticky:not(.order-sticky-live),
#orderStickyBar[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}


/* ORDER BAR HARD HIDE — never paint until .order-sticky-live */
#orderStickyBar.order-sticky:not(.order-sticky-live),
#orderStickyBar[hidden],
#orderStickyBar[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#orderStickyBar.order-sticky-live:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
}


/* ===== HQ COMPACT v169 =====
   Real issue: Store Performance felt giant/"cropped" because anti-crop
   forced chart min-height 360/340 + huge bottom pad. Restore sane chart
   size; keep period overflow visible; do NOT hide store header. */

.hq-toggles.hq-period,
.hq-period {
  overflow: visible !important;
  flex-wrap: wrap !important;
}
.hq-period-btn.hq-period-year {
  flex: 1 0 100% !important;
  width: 100% !important;
  border-top: 1px solid #111 !important;
}

/* Compact Store Performance spacing */
.hq-metrics-panel {
  margin: 8px 10px 12px !important;
}
.hq-metrics-body {
  gap: 8px !important;
  padding: 10px !important;
}
.hq-chart-card,
.hq-chart-card-single {
  padding: 10px 10px 12px !important;
}
.hq-hero-kpis {
  margin: 2px 0 8px !important;
  padding: 10px 8px 10px !important;
  gap: 6px 8px !important;
}
.hq-hero-val {
  font-size: 1.15rem !important;
}
.hq-snap-chips {
  gap: 6px !important;
  margin: 0 0 8px !important;
}

/* Chart: back to compact tall wrap (was 300px; anti-crop blew it to 360+) */
.hq-chart-wrap,
.hq-chart-wrap-tall {
  overflow: visible !important;
  clip-path: none !important;
}
.hq-chart-wrap-tall {
  height: 220px !important;
  min-height: 0 !important;
  margin-top: 2px !important;
  padding: 4px !important;
}
.hq-chart-wrap-tall .hq-chart {
  height: 100% !important;
  min-height: 0 !important;
}

.hq-store-pills {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 6px !important;
}

/* HQ: whole chrome stays sticky under status bar */
body.hq-open .app-chrome {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}
body.hq-open .app-header {
  position: relative !important;
}
body.hq-open .app-header .brand-bar {
  position: relative !important;
  top: auto !important;
  z-index: 1 !important;
  background: #111 !important;
}

/* Normal room above bottom tabs — not a giant empty pad */
body.hq-open #panel-team.panel.active,
#panel-team.panel.active {
  padding-bottom: calc(var(--bottom-tabs-h) + env(safe-area-inset-bottom, 0px) + 28px) !important;
}


/* INV BAR HARD HIDE — only after a count is typed (like order bar) */
.sticky-bar.inv-sticky:not(.inv-sticky-live),
#invStickyBar[hidden],
#invStickyBar[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
#invStickyBar.inv-sticky-live:not([hidden]),
#invStickyBar.inv-sticky-live[aria-hidden="false"] {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 10px 12px !important;
  border-top: 3px solid var(--red) !important;
  box-shadow: 0 -4px 16px rgba(0,0,0,.25) !important;
}

/* Transfer Log modal */
.transfer-modal {
  max-width: 520px;
  width: calc(100vw - 24px);
  max-height: min(88vh, 720px);
  overflow: auto;
}
.transfer-stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.transfer-stores label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  margin-bottom: 4px;
}
.xfer-search-hits {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 10px;
  max-height: 160px;
  overflow: auto;
}
.xfer-hit {
  text-align: left;
  border: 1px solid #111;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: .88rem;
}
.xfer-hit-meta { display: block; font-size: .75rem; font-weight: 600; color: #6b7280; margin-top: 2px; }
.xfer-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.xfer-line {
  border: 1px solid #111;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.xfer-line-name { font-weight: 800; font-size: .92rem; }
.xfer-line-meta { font-size: .75rem; color: #6b7280; margin-top: 2px; }
.xfer-line-math { font-size: .82rem; font-weight: 700; }
.xfer-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.xfer-qty button {
  width: 36px;
  height: 36px;
  border: 1px solid #111;
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.xfer-qty input {
  width: 56px;
  text-align: center;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 8px 4px;
  font-weight: 800;
}
.xfer-line-remove {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  background: transparent;
  color: #e10600;
  font-weight: 700;
  font-size: .78rem;
  padding: 0;
  cursor: pointer;
}
.xfer-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
  margin-bottom: 12px;
}
.xfer-history summary {
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 8px;
}
.xfer-history-list { display: flex; flex-direction: column; gap: 8px; font-size: .82rem; }
.xfer-hist-card {
  border: 1px solid #111;
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
}
.xfer-hist-head { font-weight: 800; margin-bottom: 4px; }
.xfer-hist-meta { color: #6b7280; font-size: .75rem; }


/* ============================================================
   WEBSTYLE SKIN — dark futuristic (Menu Analysis / site ground truth)
   Page: solid black. Cards: dark glass. CTAs: radiant red pills.
   NO cream/white page washes. Visual only; JS/data unchanged.
   ============================================================ */

html, body,
body.login-active {
  background: #000 !important;
  color: #fff !important;
}

#appRoot,
.panel,
.panel.active,
.list {
  background: transparent;
  color: #fff;
}

/* Sticky floating glass header (safe-area lives on .app-chrome) */
.app-header {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 8px 8px 0;
  position: relative !important;
}
.brand-bar {
  background: rgba(12, 12, 16, 0.78) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(225, 6, 0, 0.2),
    0 0 28px rgba(225, 6, 0, 0.14);
}
.store-primary {
  background: rgba(12, 12, 16, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1.5px solid rgba(225, 6, 0, 0.55);
  border-radius: 0 0 16px 16px;
  margin: 0 0 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(225, 6, 0, 0.12);
}
.brand {
  color: #fff !important;
  text-shadow: 2px 2px 0 #000 !important;
  -webkit-text-stroke: 1px var(--red);
  paint-order: stroke fill;
}
.brand span { color: var(--red-hot) !important; -webkit-text-stroke: 0; }
.meta-tiny { color: rgba(255,255,255,0.55) !important; }
.session-name { color: #fff !important; }
.store-primary-label { color: rgba(255,255,255,0.55) !important; }
.store-primary-name {
  color: #fff !important;
  -webkit-text-stroke: 1.75px var(--red) !important;
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 #000 !important;
}
.store-select-lg,
.store-custom-lg,
.login-input,
.search,
.toolbar .search,
.field input,
.count-row input,
.modal input,
.modal select {
  background: #0a0a0e !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px !important;
}
.store-select-lg:focus,
.login-input:focus,
.search:focus,
.field input:focus,
.count-row input:focus {
  outline: none !important;
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.28), 0 0 18px var(--red-glow-soft) !important;
}

/* Login */
.login-screen {
  background: #000 !important;
}
.login-logo {
  filter: drop-shadow(2px 2px 0 #000) drop-shadow(1px 1px 0 #000) !important;
}
.login-sub { color: rgba(255,255,255,0.65) !important; }
.login-role-btn {
  background: #121218 !important;
  border: 1.5px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.7) !important;
}
.login-role-btn.active {
  border-color: var(--red) !important;
  background: rgba(225, 6, 0, 0.22) !important;
  color: #fff !important;
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.35) !important;
}
.login-continue.btn.primary,
.btn.primary.login-continue {
  border-radius: 999px !important;
  min-height: 52px;
}

/* Tabs */
.tab { color: rgba(255,255,255,0.7) !important; }
.tab.active,
.tab.tab-team.active {
  color: var(--red-hot) !important;
  border-top-color: var(--red) !important;
  text-shadow: 0 0 12px rgba(225, 6, 0, 0.45);
}
.vendor-tab {
  background: #121218 !important;
  color: rgba(255,255,255,0.8) !important;
  border: 1.5px solid rgba(225, 6, 0, 0.35) !important;
  border-right-width: 0 !important;
}
.vendor-tab:last-child { border-right-width: 1.5px !important; }
.vendor-tab.active {
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep)) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
  box-shadow: 0 0 20px rgba(225, 6, 0, 0.4) !important;
}

/* Cards / list items */
.item-card {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.hq-chart-card,
.hq-chart-card-single,
.hq-metrics-panel,
.mgr-comms-panel,
.banner,
.order-modal {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border: 1.5px solid rgba(225, 6, 0, 0.45) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 0 22px rgba(225,6,0,0.14), 0 14px 32px rgba(0,0,0,0.4) !important;
  color: #fff !important;
}
/* item tints moved to WEBSTYLE FIXES v2 */

.item-meta,
.line-dollars,
.sticky-bar-meta,
.inv-vendor-line,
.empty {
  color: rgba(255, 255, 255, 0.75) !important;
}
.line-dollars.has-value { color: var(--red-hot) !important; }

.hq-metrics-head,
.mgr-comms-head {
  background: linear-gradient(180deg, #16161c, #0c0c10) !important;
  border-bottom: 1.5px solid rgba(225, 6, 0, 0.55) !important;
}
.hq-metrics-title,
.mgr-comms-title,
.hq-store-section-title {
  color: #fff !important;
  font-family: var(--display) !important;
  -webkit-text-stroke: 1.75px var(--red) !important;
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 #000 !important;
}
.hq-store-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--red-hot), var(--red), transparent);
  box-shadow: 0 0 12px var(--red-glow);
}
.hq-metrics-body {
  background: #000 !important;
}

.sticky-bar {
  background: rgba(12, 12, 16, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(225, 6, 0, 0.55) !important;
  box-shadow: 0 -8px 28px rgba(0,0,0,0.45), 0 0 24px rgba(225,6,0,0.15) !important;
  color: #fff !important;
}
.inv-grand, .inv-grand strong { color: #fff !important; }

.modal label { color: rgba(255,255,255,0.65) !important; }
.modal-backdrop { background: rgba(0, 0, 0, 0.72) !important; }

.btn-logout {
  color: #fff !important;
  border-color: rgba(255,255,255,0.28) !important;
  background: rgba(255,255,255,0.06) !important;
}

/* Kill leftover cream/white washes from earlier skin attempt */
.panel-order,
.panel-inv,
.panel-team,
.hq-metrics-body,
.mgr-comms-composer,
.comms-list {
  background: transparent !important;
}

.order-tools-row .btn:not(.primary),
.btn-row .btn:not(.primary) {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.22) !important;
}

@supports (-webkit-text-stroke: 1.5px red) {
  .store-primary-name,
  .login-brand,
  .hq-metrics-title,
  .mgr-comms-title,
  .brand,
  .modal h2 {
    text-shadow: 2px 2px 0 #000 !important;
  }
}


/* ---- Dark catch-all: neutralize leftover light panels (skin only) ---- */
.team-subtabs,
.team-subtab,
.sch-toolbar,
.sch-week-grid,
.sch-day-cell,
.sch-chip-menu,
.comms-composer,
.mgr-room-banner,
.req-off-card,
.shift-req-modal,
.order-modal,
.inv-break-row,
.sticky-bar,
.count-row,
.field,
.toolbar,
.banner,
.hq-store-pills,
.hq-store-pill,
.role-chip,
.login-under,
.login-legal {
  color: inherit;
}

.team-subtab,
.sch-day-cell,
.sch-chip-menu,
.sch-pickup-btn,
.comms-composer textarea,
.req-off-card,
.shift-req-modal,
.order-modal,
.hq-store-pill,
.sch-day-cell.sch-off,
.count-row,
.field input,
.toolbar,
.team-subtabs {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  color: #fff !important;
  border-color: rgba(225, 6, 0, 0.35) !important;
}

.team-subtab.active:not(.mgr-hq-btn),
.hq-store-pill.active,
.team-subtab.mgr-hq-btn.active {
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep)) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.4) !important;
}

.sch-day-cell.sch-off {
  background: #121218 !important;
  opacity: 0.85;
}

textarea,
.comms-composer textarea,
.sch-note,
.req-note {
  background: #0a0a0e !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.22) !important;
}

/* Soften any remaining pure white surfaces inside panels */
.panel .card,
.panel [style*="background: #fff"],
.panel [style*="background:#fff"] {
  background: #121218 !important;
}

.item-name { font-weight: 700; color: #fff; }
.badge {
  background: linear-gradient(135deg, var(--red-hot), var(--red-deep)) !important;
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.35);
}

.btn.approve {
  background: linear-gradient(135deg, #2a9a55, #1f7a3f) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-radius: 999px;
}
.btn.deny {
  background: transparent !important;
  border: 1.5px solid var(--red) !important;
  color: #ff8a80 !important;
}

.managers-only-toast {
  background: #121218 !important;
  border: 1.5px solid var(--red) !important;
  box-shadow: 0 0 24px rgba(225,6,0,0.35) !important;
}

.login-install.btn {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.28) !important;
}
.login-install-hint,
.login-legal-fine,
.login-copyright {
  color: rgba(255,255,255,0.55) !important;
}

/* Item names must never be black-on-black (inline styles from catalog) */
.item-name,
.count-row .item-name,
.item-top-main .item-name {
  color: #ffffff !important;
}
.item-card.item-tint-blue .item-name {
  color: #93c5fd !important;
  text-shadow: none;
}
.item-card.item-tint-red .item-name {
  color: #fca5a5 !important;
  text-shadow: none;
}
/* Green catalog names stay green, but bright enough on dark */
.item-name[style*="#3B7D23"],
.item-name[style*="#3b7d23"],
.item-name[style*="3B7D23"] {
  color: #4ade80 !important;
}


/* ============================================================
   WEBSTYLE FIXES v3 — restore blue/red CARD OUTLINES
   Blue/red items are identified by border color. Never force
   brand-red borders onto .item-card.item-tint-blue/red.
   ============================================================ */
.item-card {
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
}

.item-card.item-tint-blue {
  border: 3px solid #002060 !important;
  border-color: #002060 !important;
  outline: none !important;
  background: linear-gradient(165deg, #152238, #0c1018) !important;
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-red {
  border: 3px solid #FF0000 !important;
  border-color: #FF0000 !important;
  outline: none !important;
  background: linear-gradient(165deg, #2a1014, #120a0c) !important;
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-green {
  border: 3px solid #3B7D23 !important;
  border-color: #3B7D23 !important;
  outline: none !important;
  background: linear-gradient(165deg, #102418, #0c1010) !important;
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-blue .item-name {
  color: #93c5fd !important;
  text-shadow: none !important;
}
.item-card.item-tint-red .item-name {
  color: #fca5a5 !important;
  text-shadow: none !important;
}
.item-card.item-tint-green .item-name {
  color: #4ade80 !important;
  text-shadow: none !important;
}
.item-card:not(.item-tint-blue):not(.item-tint-red):not(.item-tint-green) .item-name {
  color: #ffffff !important;
}


/* WEBSTYLE v4 — no glow on item cards */
.item-card,
.item-card.item-tint-blue,
.item-card.item-tint-red,
.item-card.item-tint-green {
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-blue .item-name,
.item-card.item-tint-red .item-name,
.item-card.item-tint-green .item-name {
  text-shadow: none !important;
}

/* WEBSTYLE v5 — vivid flat blue/red item cards (no glow) */
.item-card.item-tint-blue {
  border: 3px solid #3b82f6 !important;
  border-color: #3b82f6 !important;
  background: linear-gradient(165deg, #1a2740, #0e1524) !important;
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-red {
  border: 3px solid #ef4444 !important;
  border-color: #ef4444 !important;
  background: linear-gradient(165deg, #3a1418, #160a0c) !important;
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-blue .item-name { color: #93c5fd !important; text-shadow: none !important; }
.item-card.item-tint-red .item-name { color: #fca5a5 !important; text-shadow: none !important; }
.item-card.item-tint-green {
  border: 3px solid #22c55e !important;
  border-color: #22c55e !important;
  background: linear-gradient(165deg, #14281a, #0c1410) !important;
  box-shadow: none !important;
  filter: none !important;
}
.item-card.item-tint-green .item-name { color: #4ade80 !important; text-shadow: none !important; }


/* ============================================================
   WEBSTYLE v5 — Store Performance dark chrome (match rest of app)
   Keep series colors: green / brown / purple / white-dashed COGS.
   Do NOT invert chart colors to black-on-white leftovers.
   ============================================================ */

/* Period row: dark segmented control */
.hq-toggles,
.hq-period,
.hq-toggles.hq-period {
  background: #0c0c10 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
.hq-toggle,
.hq-period-btn {
  background: #121218 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  font-weight: 800 !important;
}
.hq-period-btn:not(.hq-period-year):nth-child(3) {
  border-right: none !important;
}
.hq-period-btn.hq-period-year {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-right: none !important;
  background: #121218 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}
.hq-toggle.active,
.hq-period-btn.active {
  background: linear-gradient(135deg, var(--red-hot, #ff1a0a), var(--red-deep, #9e0400)) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Live snap chips under hero */
.hq-snap-chip {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.hq-snap-chip-lbl {
  color: rgba(255, 255, 255, 0.55) !important;
}
.hq-snap-chip-amt {
  color: #e5e7eb !important;
}
.hq-snap-chip.active {
  background: linear-gradient(165deg, #2a1014, #120a0c) !important;
  border-color: var(--red, #e10600) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(225, 6, 0, 0.5) !important;
}

/* Black hero KPI strip already dark — tighten */
.hq-hero-kpis {
  background: #000 !important;
  border: 1.5px solid rgba(225, 6, 0, 0.45) !important;
  border-radius: 12px !important;
  color: #fff !important;
}

/* History block */
.hq-history-heading,
.hq-history-label {
  color: #fff !important;
}
.hq-history-nav .hq-hero-month-btn {
  background: #121218 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.hq-history-nav .hq-hero-month-btn:not(:disabled):active {
  background: #1a1a22 !important;
}
.hq-history-nav .hq-hero-month-btn:disabled {
  opacity: 0.35 !important;
}

/* Chart: dark glass so white-dashed COGS reads; keep series hues */
.hq-chart-wrap,
.hq-chart-wrap-tall {
  background: #0a0a0e !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
}
.hq-chart .hq-grid { stroke: rgba(255, 255, 255, 0.08) !important; }
.hq-chart .hq-axis-label,
.hq-chart .hq-axis-label.hq-axis-right,
.hq-chart .hq-empty {
  fill: rgba(255, 255, 255, 0.45) !important;
}
.hq-chart .hq-line.netsales { stroke: #16A34A !important; }
.hq-chart .hq-line.revenue { stroke: #92400E !important; }
.hq-chart .hq-line.labor { stroke: #7C3AED !important; }
.hq-chart .hq-line.cogs {
  stroke: #ffffff !important;
  stroke-width: 2.5 !important;
  stroke-dasharray: 6 5 !important;
  stroke-linecap: butt !important;
}
.hq-chart .hq-dot.netsales { fill: #16A34A !important; }
.hq-chart .hq-dot.revenue { fill: #92400E !important; }
.hq-chart .hq-dot.labor { fill: #7C3AED !important; }
.hq-chart .hq-dot.cogs { fill: #ffffff !important; stroke: #0a0a0e !important; }

.hq-legend,
.hq-legend-under {
  color: rgba(255, 255, 255, 0.65) !important;
  border-top-color: rgba(255, 255, 255, 0.12) !important;
}
.hq-leg-netsales i { background: #16A34A !important; }
.hq-leg-revenue i { background: #92400E !important; }
.hq-leg-labor i { background: #7C3AED !important; }
.hq-leg-cogs i {
  background: repeating-linear-gradient(90deg, #ffffff 0 6px, transparent 6px 11px) !important;
  background-color: transparent !important;
  height: 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Chart tip */
.hq-chart-tip {
  background: #121218 !important;
  border: 1.5px solid rgba(225, 6, 0, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55) !important;
}
.hq-chart-tip-period,
.hq-chart-tip-name { color: rgba(255,255,255,0.75) !important; }
.hq-chart-tip-amt { color: #fff !important; }

/* Totals / YTD strips inside HQ */
.hq-ytd-block,
.hq-wtd-block,
.hq-mtd-block,
.hq-primary-strip,
.hq-totals-strip,
.hq-vendor-dd,
.hq-chart-card,
.hq-chart-card-single {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border-color: rgba(225, 6, 0, 0.4) !important;
  color: #fff !important;
}
.hq-ytd-label,
.hq-wtd-label,
.hq-mtd-label,
.hq-section-label,
.hq-vendors-label,
.hq-primary-lbl {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* WEBSTYLE v5b — YTD/WTD strips + COGS value on dark HQ */
.hq-ytd {
  background: linear-gradient(165deg, #14141a, #0a0a0e) !important;
  border: 1.5px solid rgba(225, 6, 0, 0.4) !important;
  color: #fff !important;
}
.hq-ytd-head {
  background: #000 !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(225, 6, 0, 0.45) !important;
}
.hq-ytd-primary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.hq-ytd-primary-item + .hq-ytd-primary-item {
  border-left: 1px solid rgba(225, 6, 0, 0.45) !important;
}
.hq-ytd-primary-lbl {
  color: rgba(255, 255, 255, 0.55) !important;
}
.hq-ytd-primary-val {
  color: #fff !important;
}
.hq-ytd-primary-pct {
  color: rgba(255, 255, 255, 0.55) !important;
}
.hq-ytd-netsales .hq-ytd-primary-val { color: #16A34A !important; }
.hq-ytd-revenue .hq-ytd-primary-val { color: #B45309 !important; }
.hq-ytd-labor .hq-ytd-primary-val { color: #A78BFA !important; }
.hq-ytd-cogs .hq-ytd-primary-val { color: #F3F4F6 !important; }

.hq-ytd-vendors-drop {
  background: #0c0c10 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.hq-ytd-vendors-summary {
  color: rgba(255, 255, 255, 0.75) !important;
}
.hq-ytd-vendors-summary::after { color: rgba(255,255,255,0.4) !important; }
.hq-ytd-vendor-name,
.hq-ytd-vendor-amt {
  color: #fff !important;
}
.hq-vendor-note {
  color: rgba(255, 255, 255, 0.55) !important;
}
.hq-chart-card,
.hq-chart-card-single {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border: 1.5px solid rgba(225, 6, 0, 0.4) !important;
  color: #fff !important;
}

/* Transfer Log colors (webstyle) */
.xfer-hit-name { font-weight: 800; }
.xfer-line.item-tint-blue,
.xfer-hit.item-tint-blue {
  border-color: #002060 !important;
  background: linear-gradient(165deg, #152238, #0c1018) !important;
  box-shadow: none !important;
}
.xfer-line.item-tint-red,
.xfer-hit.item-tint-red {
  border-color: #FF0000 !important;
  background: linear-gradient(165deg, #2a1014, #120a0c) !important;
  box-shadow: none !important;
}
.xfer-line.item-tint-green,
.xfer-hit.item-tint-green {
  border: 2px solid #3B7D23 !important;
  border-color: #3B7D23 !important;
  background: linear-gradient(165deg, #102418, #0c1010) !important;
}
.xfer-line.item-tint-green .xfer-line-name,
.xfer-hit.item-tint-green .xfer-hit-name {
  color: #4ade80 !important;
}
.xfer-hist-items { margin-top: 6px; font-size: .78rem; font-weight: 700; line-height: 1.35; }
.xfer-hist-sep { color: rgba(255,255,255,0.35); font-weight: 600; }


/* Transfer Log — Order Guide style type-in qty (webstyle) */
.xfer-line {
  grid-template-columns: 1fr 110px !important;
  gap: 10px 12px !important;
  align-items: start !important;
}
.xfer-qty-field label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55) !important;
  margin: 0;
}
.xfer-qty-field input {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.28) !important;
  border-radius: 8px;
  padding: 10px 8px;
  background: #0c0c10 !important;
  color: #fff !important;
  font-variant-numeric: tabular-nums;
}
.xfer-qty-field input::placeholder {
  color: rgba(255,255,255,0.4) !important;
  font-weight: 600;
  opacity: 1;
}
.xfer-qty-field input:focus {
  outline: 2px solid rgba(225,6,0,.35);
  border-color: var(--red, #e10600) !important;
  background: #000 !important;
}
.xfer-line-remove { grid-column: 1 / -1; }
.xfer-hist-qty { font-weight: 800; opacity: 0.75; }


/* Transfer Log — photo + Qty on search hits (auto-add, no Add button) */
.xfer-hit {
  display: grid !important;
  grid-template-columns: 56px 1fr 96px !important;
  gap: 8px 10px !important;
  align-items: center !important;
  padding: 10px 12px !important;
}
.xfer-hit:not(.has-image) {
  grid-template-columns: 1fr 96px !important;
}
.xfer-hit .item-thumb-wrap {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}
.xfer-hit-main {
  min-width: 0;
  grid-column: auto !important;
}
.xfer-hit-qty {
  justify-self: end;
}
.xfer-hit-add { display: none !important; }

.xfer-line.has-image {
  grid-template-columns: 56px 1fr 110px !important;
  align-items: center !important;
}
.xfer-line .item-thumb-wrap {
  width: 56px;
  height: 56px;
}
.xfer-line:not(.has-image) {
  grid-template-columns: 1fr 110px !important;
}

/* ============================================================
   WEBSTYLE — Schedule dark chrome (kill white-outs)
   ============================================================ */
.team-schedule-head,
.team-week-label {
  color: #fff !important;
}
.team-week-label .src-tag {
  background: var(--red, #e10600) !important;
  color: #fff !important;
}

.schedule-list {
  color: #fff !important;
}

.schedule-week-scroll {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border: 1.5px solid rgba(225, 6, 0, 0.4) !important;
  box-shadow: none !important;
}

.schedule-week-table thead th,
.schedule-week-table thead th.sch-emp-col {
  background: #000 !important;
  color: #fff !important;
  border-bottom: 3px solid var(--red, #e10600) !important;
}

.schedule-week-table tbody th,
.schedule-week-table tbody td {
  background: #0c0c10 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

.sch-emp-cell {
  background: #121218 !important;
  box-shadow: 2px 0 0 rgba(225, 6, 0, 0.35) !important;
  color: #fff !important;
}
.sch-emp-name {
  color: #fff !important;
}
.sch-emp-role,
.sch-emp-hrs {
  color: rgba(255, 255, 255, 0.55) !important;
}

.sch-day-cell {
  background: #0c0c10 !important;
  color: #fff !important;
}
.sch-day-cell.sch-off {
  background: #08080c !important;
  opacity: 1 !important;
}
.sch-off-label {
  color: rgba(255, 255, 255, 0.35) !important;
}

.sch-chip {
  background: linear-gradient(165deg, #1a1a22, #0c0c10) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-left: 3px solid var(--red, #e10600) !important;
  box-shadow: none !important;
  color: #fff !important;
}
.sch-chip.timeoff {
  border-left-color: #a78bfa !important;
}
.sch-chip-role,
.sch-timeoff-label {
  color: rgba(255, 255, 255, 0.55) !important;
}
.sch-chip-time {
  color: #fff !important;
}
.sch-chip-more {
  color: rgba(255, 255, 255, 0.55) !important;
}
.sch-chip-menu {
  background: #121218 !important;
  border: 1.5px solid rgba(225, 6, 0, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55) !important;
}
.sch-chip-menu button {
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
}
.sch-chip-menu button:hover {
  background: rgba(225, 6, 0, 0.2) !important;
}

.sch-hrs-cell {
  color: var(--red-hot, #ff1a0a) !important;
  background: #0c0c10 !important;
}

.sch-pickup-btn {
  background: linear-gradient(135deg, var(--red-hot, #ff1a0a), var(--red-deep, #9e0400)) !important;
  color: #fff !important;
  border: 0 !important;
}

.schedule-week-table tfoot .sch-totals-row th,
.schedule-week-table tfoot .sch-totals-row td,
.sch-totals-label,
.sch-totals-cell,
.sch-totals-week {
  background: #000 !important;
  color: #fff !important;
  border-top: 1.5px solid rgba(225, 6, 0, 0.45) !important;
}
.sch-totals-week {
  color: var(--red-hot, #ff1a0a) !important;
}

.schedule-draft-banner {
  background: #1a1014 !important;
  border: 1.5px solid rgba(225, 6, 0, 0.45) !important;
  color: #fff !important;
}

/* Request Off / Comms leftovers near Team that still flash white */
.req-off-list .req-off-card,
.panel-team .empty,
.schedule-edit-modal,
.shift-req-modal .modal,
.shift-req-blurb {
  color: #fff !important;
}
.shift-req-blurb { color: rgba(255,255,255,0.7) !important; }

/* Same-name price CHANGE badge — green; Order Guide top-right; Inventory above qty */
.item-card,
.xfer-hit,
.xfer-line,
.count-row {
  position: relative;
}
.badge-change {
  position: absolute;
  top: 6px;
  right: 8px;
  left: auto;
  transform: none;
  z-index: 2;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #16A34A !important;
  color: #fff !important;
  border-radius: 3px;
  padding: 3px 6px;
  line-height: 1.2;
  box-shadow: none;
  pointer-events: none;
  text-align: center;
}
.xfer-hit .badge-change,
.xfer-line .badge-change {
  top: 4px;
  right: 6px;
}
/* Inventory: compact CHANGE above qty; dollars centered under qty */
.count-qty-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 88px;
}
.count-qty-wrap input {
  width: 88px;
  text-align: center;
}
.count-qty-wrap .badge-change {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  transform: none !important;
  align-self: center !important;
  width: auto !important;
  max-width: max-content;
  padding: 2px 5px !important;
  font-size: 0.58rem !important;
  margin: 0 auto !important;
}
.count-qty-wrap .line-dollars {
  width: 88px;
  text-align: center !important;
  align-self: center !important;
}

/* App-wide scrollbars — dark chrome matching webstyle */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(225, 6, 0, 0.55) #121218;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: #0c0c10;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(225, 6, 0, 0.75), rgba(158, 4, 0, 0.85));
  border-radius: 999px;
  border: 2px solid #0c0c10;
}
*::-webkit-scrollbar-thumb:hover {
  background: #ff1a0a;
}
.hq-store-pills {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(225, 6, 0, 0.55) #121218 !important;
}
.hq-store-pills::-webkit-scrollbar {
  height: 8px !important;
  display: block !important;
}
.hq-store-pills::-webkit-scrollbar-track {
  background: #0c0c10 !important;
  border-radius: 999px !important;
}
.hq-store-pills::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(225, 6, 0, 0.75), rgba(158, 4, 0, 0.85)) !important;
  border-radius: 999px !important;
  border: 2px solid #0c0c10 !important;
}


/* ============================================================
   WEBSTYLE v6 — readable form controls (no white-on-white)
   Price/Par readonly, inputs, selects, textareas app-wide
   ============================================================ */
.field input,
.field .readonly,
.field textarea,
.count-row input,
.count-qty-wrap input,
.xfer-qty input,
.xfer-qty-field input,
.xfer-hit-qty input,
.modal input,
.modal select,
.modal textarea,
.search,
.toolbar .search,
.login-input,
.store-select-lg,
.store-custom-lg,
.comms-composer input,
.comms-composer textarea,
.request-off-form input[type="text"],
.request-off-form input[type="date"],
.request-off-form input[type="time"],
.request-off-form select,
.request-off-form textarea,
.order-push-setup input,
.period-input-lg,
select.period-input-lg,
.sch-edit-modal input,
.schedule-edit-modal input,
.shift-req-modal input,
.shift-req-modal select,
.shift-req-modal textarea {
  background: #121218 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  caret-color: #ffffff !important;
}

.field input::placeholder,
.count-row input::placeholder,
.count-qty-wrap input::placeholder,
.xfer-qty-field input::placeholder,
.search::placeholder,
.login-input::placeholder,
.comms-composer textarea::placeholder,
.modal input::placeholder {
  color: rgba(255, 255, 255, 0.42) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.42) !important;
  opacity: 1 !important;
}

.field input:focus,
.field .readonly:focus,
.count-row input:focus,
.count-qty-wrap input:focus,
.xfer-qty-field input:focus,
.modal input:focus,
.modal select:focus,
.search:focus,
.login-input:focus,
.comms-composer input:focus,
.comms-composer textarea:focus {
  background: #1a1a22 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--red, #e10600) !important;
}

.field .readonly {
  background: #1a1a22 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iOS / Chrome autofill must not force black text or yellow wash */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  box-shadow: 0 0 0 1000px #121218 inset !important;
  transition: background-color 99999s ease-out;
}

/* Disabled still readable, not ghost-white-on-white */
input:disabled,
textarea:disabled,
select:disabled,
.field input:disabled,
.count-row input:disabled {
  background: #0c0c10 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1 !important;
}



/* ---- Comms iMessage (Enzo theme) ---- */
/* Never let store Comms shell leak onto Schedule / Manager HQ */
#team-comms.team-pane:not(.active) {
  display: none !important;
}
.comms-chat {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 220px);
  max-height: calc(100dvh - 160px);
  margin: 10px 12px 14px;
  padding: 0;
  gap: 0;
  border: 1.5px solid #D01018;
  border-radius: 16px;
  background: linear-gradient(180deg, #141418 0%, #0c0c10 100%) !important;
  box-shadow: 0 0 0 1px rgba(208,16,24,0.18), 0 8px 28px rgba(0,0,0,0.35);
  overflow: hidden;
}
.comms-chat .im-thread.comms-list {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent !important;
}
.comms-chat .im-empty {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 48px 16px;
  line-height: 1.55;
  font-size: .94rem;
}
.comms-chat .im-row {
  display: flex;
  flex-direction: column;
  max-width: 84%;
  gap: 4px;
}
.comms-chat .im-row.im-them { align-self: flex-start; align-items: flex-start; }
.comms-chat .im-row.im-me { align-self: flex-end; align-items: flex-end; }
.comms-chat .im-name {
  font-size: .7rem;
  font-weight: 650;
  color: rgba(255,255,255,0.52);
  padding: 0 12px;
  letter-spacing: .01em;
}
.comms-chat .im-bubble {
  display: inline-block;
  padding: 11px 15px;
  border-radius: 20px;
  font-size: .96rem;
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: .01em;
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  -webkit-font-smoothing: antialiased;
}
.comms-chat .im-them .im-bubble {
  background: #3a3a40 !important;
  color: #f2f2f4 !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom-left-radius: 7px;
}
.comms-chat .im-me .im-bubble {
  background: linear-gradient(165deg, #E01820 0%, #B80E16 100%) !important;
  color: #fff8f8 !important;
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom-right-radius: 7px;
}
.comms-chat .im-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.comms-chat .im-me .im-meta-row { flex-direction: row-reverse; }
.comms-chat .im-time {
  font-size: .64rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
}
.comms-chat .im-reply-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,180,180,0.55);
  font-size: .68rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.comms-chat .im-reply-link:active { color: #fff; }
.comms-chat .im-replies {
  margin-top: 6px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 0;
  border: 0;
}
.comms-chat .im-reply-row { max-width: 100%; }
.comms-chat .im-reply-row .im-bubble {
  font-size: .9rem;
  padding: 9px 13px;
}
.comms-chat .im-reply-form {
  margin-top: 4px;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(208,16,24,0.28);
  border-radius: 14px;
}
.comms-chat .im-reply-form textarea {
  width: 100%;
  border: 1.5px solid rgba(208,16,24,0.35);
  border-radius: 14px;
  padding: 10px 12px;
  background: #1a1a20 !important;
  color: #f3f3f5 !important;
  resize: vertical;
  min-height: 48px;
  font: inherit;
  line-height: 1.4;
}
.comms-chat .im-reply-form textarea:focus {
  outline: none;
  border-color: #D01018;
  background: #1f1f26 !important;
}
.comms-chat .im-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.comms-chat .im-composer.comms-composer {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(208,16,24,0.35);
  background: rgba(12,12,16,0.98) !important;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.comms-chat .im-composer-name-row label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.comms-chat .im-composer-name-row input {
  width: 100%;
  margin-top: 4px;
  border-radius: 14px;
  border: 1.5px solid rgba(208,16,24,0.32);
  background: #1a1a20 !important;
  color: #f3f3f5 !important;
  padding: 10px 14px;
}
.comms-chat .im-composer-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.comms-chat .im-composer-bar textarea {
  flex: 1 1 auto;
  min-height: 40px;
  max-height: 120px;
  resize: none;
  border-radius: 22px !important;
  border: 1.5px solid rgba(208,16,24,0.4) !important;
  background: #1e1e26 !important;
  color: #f5f5f7 !important;
  padding: 11px 16px !important;
  font: inherit;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.comms-chat .im-composer-bar textarea::placeholder {
  color: rgba(255,255,255,0.38);
}
.comms-chat .im-composer-bar textarea:focus {
  outline: none;
  border-color: #D01018 !important;
  background: #24242c !important;
  box-shadow: 0 0 0 3px rgba(208,16,24,0.18);
}
.comms-chat .im-send-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(165deg, #E01820, #B80E16);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(208,16,24,0.4);
}
.comms-chat .im-send-btn:active { transform: scale(0.96); }

/* Tags inside bubbles stay readable on red/gray */
.comms-chat .im-bubble .comms-tag {
  margin-right: 4px;
  vertical-align: baseline;
}


/* Manager Comms iMessage nest inside HQ */
.mgr-comms-panel.mgr-comms-chat {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: min(70dvh, 640px);
  margin: 10px 12px 14px;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid #D01018;
  border-radius: 16px;
  background: linear-gradient(180deg, #141418 0%, #0c0c10 100%) !important;
  box-shadow: 0 0 0 1px rgba(208,16,24,0.18), 0 8px 28px rgba(0,0,0,0.35);
}
.mgr-comms-panel.mgr-comms-chat .mgr-comms-head {
  flex: 0 0 auto;
  padding: 12px 14px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mgr-comms-panel.mgr-comms-chat .im-thread.comms-list {
  flex: 1 1 auto;
  min-height: 180px;
}
.mgr-comms-panel.mgr-comms-chat .im-composer {
  position: sticky;
  bottom: 0;
}
/* Request reviews stay card-style (not iMessage) */
#mgrRoomList.comms-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 12px 28px;
}
