@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400..900&display=swap");

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --ink: #151922;
  --muted: #667085;
  --line: #dfe3ea;
  --nav: #1a1d24;
  --nav-2: #252a34;
  --red: #d94b4b;
  --teal: #167c80;
  --teal-dark: #0f676b;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --amber: #d18b18;
  --amber-soft: #fff7e6;
  --gold: #c8902f;
  --green: #22795b;
  --shadow: 0 18px 45px rgba(20, 25, 34, 0.08);
  --font-sans: "Inter", "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(22, 124, 128, 0.11), transparent 32%),
    linear-gradient(315deg, rgba(217, 75, 75, 0.12), transparent 38%),
    var(--bg);
}

.login-panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.store-selection-panel {
  width: min(720px, 100%);
}

.store-selection-panel h1,
.store-selection-panel p {
  text-align: center;
}

.store-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 16px;
}

.store-choice-card {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(21, 25, 34, 0.05);
}

.store-choice-card strong {
  color: var(--teal);
  font-size: 17px;
}

.store-choice-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.store-choice-card:hover {
  border-color: rgba(22, 124, 128, 0.45);
  background: #f0fbfb;
  box-shadow: 0 14px 30px rgba(22, 124, 128, 0.12);
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 25, 34, 0.14);
  margin: 0 auto 24px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sidebar .brand-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 8px;
}

h2 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.login-panel p,
.muted {
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.field span {
  color: #303746;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.13);
}

.primary,
.secondary,
.ghost,
.danger {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.primary {
  width: 100%;
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 8px 18px rgba(22, 124, 128, 0.18);
}

.primary:hover:not(:disabled) {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 10px 22px rgba(15, 103, 107, 0.24);
}

.secondary {
  background: var(--blue-soft);
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.secondary:hover:not(:disabled) {
  background: #dbeafe;
  border-color: #93c5fd;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.icon-button.save {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.ghost:hover:not(:disabled) {
  background: #eef2f7;
  color: var(--ink);
}

.danger {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.compact {
  width: auto;
  min-height: 34px;
  margin-top: 10px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  background: var(--nav);
  color: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.identity {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
}

.identity strong {
  display: block;
  margin-bottom: 4px;
}

.identity span {
  color: #b9c0cf;
  font-size: 13px;
}

.store-box label {
  display: block;
  color: #b9c0cf;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.store-box select {
  background: var(--nav-2);
  border-color: rgba(255,255,255,0.14);
  color: #fff;
}

.nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-bottom: 12px;
}

.nav-section {
  display: grid;
  gap: 4px;
}

.nav-section + .nav-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
}

.nav-section-title {
  color: #8f98aa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 12px 4px;
  text-transform: uppercase;
}

.nav-sublist {
  display: grid;
  gap: 3px;
  padding-left: 10px;
}

.nav-sublist .nav-link {
  border-left: 2px solid rgba(255,255,255,0.08);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  padding: 8px 10px 8px 14px;
}

.nav-section.active-section .nav-section-title {
  color: #ffffff;
}

.nav button {
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  color: #d9deea;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 11px 12px;
  text-align: left;
  font-weight: 700;
}

.nav-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-badge {
  align-items: center;
  background: #f2b84b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(242, 184, 75, 0.24);
  color: #151820;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  height: 21px;
  justify-content: center;
  line-height: 1;
  min-width: 21px;
  padding: 0 7px;
}

.nav-badge[hidden] {
  display: none;
}

.nav-sublist .nav-badge {
  font-size: 10px;
  height: 19px;
  min-width: 19px;
  padding: 0 6px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav button.active .nav-badge {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  color: #147c7d;
}

.nav-sublist .nav-link.active {
  border-left-color: var(--teal);
  background: rgba(25, 139, 139, 0.18);
}

.signout {
  margin-top: auto;
}

.content {
  min-width: 0;
  padding: 26px;
}

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

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-head h2,
.section-head p {
  margin-bottom: 4px;
}

.command-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 25, 34, 0.05);
  padding: 20px;
  margin-bottom: 16px;
}

.command-band h2 {
  margin-bottom: 4px;
}

.admin-scope-card {
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: none;
}

.admin-scope-card .field {
  margin: 0;
}

.admin-scope-card .secondary {
  min-width: 78px;
  min-height: 34px;
}

.command-date {
  min-width: 180px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.command-date strong,
.command-date span {
  display: block;
}

.command-date span {
  color: var(--muted);
  margin-top: 5px;
}

.section-title {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.quick-card {
  min-height: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(21, 25, 34, 0.05);
}

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

.quick-card strong {
  margin-bottom: 8px;
}

.quick-card span {
  color: var(--muted);
  font-size: 13px;
}

.quick-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 28px rgba(22, 124, 128, 0.11);
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.metric,
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 25, 34, 0.05);
}

.card,
.table-card {
  padding: 18px;
}

.sales-card {
  overflow: hidden;
}

.sales-filter-card {
  margin-bottom: 12px;
  padding: 10px 12px;
  box-shadow: none;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-title h2 {
  margin-bottom: 0;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.review-header {
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.review-header-copy {
  min-width: 0;
}

.review-header-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 1.7vw, 28px);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}

.review-header-copy span {
  display: block;
  max-width: 680px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.review-header .compact-action {
  flex: 0 0 auto;
  width: auto;
  min-width: 112px;
  margin-left: auto;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.review-header .primary.compact-action {
  background: #168084;
  border-color: #168084;
  box-shadow: 0 8px 18px rgba(22, 128, 132, 0.18);
}

.review-header .secondary.compact-action {
  background: #f8fbfc;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.review-header .secondary.compact-action:hover:not(:disabled) {
  background: #eef7f7;
  border-color: #b7d7d9;
  color: #12666a;
}

.sales-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #cfe3e4;
  border-radius: 8px;
  background: #f2fbfb;
  color: #285458;
  font-size: 13px;
  line-height: 1.45;
}

.sales-note strong {
  color: var(--teal);
}

.metric {
  padding: 17px;
  min-height: 112px;
}

.metric .label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.metric .value {
  font-size: 29px;
  font-weight: 800;
  line-height: 1.1;
}

.metric .note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.notice {
  border: 1px solid #f1c978;
  background: linear-gradient(135deg, #fff7e5 0%, #fffdf7 58%, #eefafa 100%);
  color: #3d2b08;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.notification-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.notification-button:hover {
  border-color: #d99f2b;
  box-shadow: 0 14px 36px rgba(104, 72, 10, 0.14), 0 0 0 3px rgba(221, 182, 93, 0.18);
  transform: translateY(-1px);
}

.notification-button.is-read {
  opacity: 0.78;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

.notification-button.is-read .announcement-icon {
  background: #e8eef3;
  color: #64748b;
  box-shadow: none;
}

.notification-button.is-read .announcement-copy strong,
.notification-button.is-read .announcement-copy span {
  color: #64748b;
}

.notification-button.is-read .announcement-action {
  background: #eef2f6;
  border-color: #dbe3eb;
  color: #64748b;
}

.review {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

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

.stars {
  color: var(--gold);
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef7f7;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}

.tabs button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.order-tab-shell {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.order-tab-group {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.order-tab-tools {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.order-tab-shell button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.order-tab-shell button:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 128, 132, 0.35);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.order-tab-shell button.active {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(24, 132, 137, 0.13), 0 10px 22px rgba(15, 23, 42, 0.08);
}

.order-tab-shell .utility-tab {
  min-height: 44px;
  padding: 9px 13px;
  background: #f8fbfc;
  font-weight: 800;
}

.order-tab-shell .utility-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.order-tab-shell .store-tab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, auto) auto;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  min-height: 54px;
  padding: 9px 10px 9px 13px;
}

.order-tab-label {
  display: grid;
  gap: 1px;
  text-align: left;
}

.order-tab-label > span,
.order-tab-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-tab-label strong {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.order-tab-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.order-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-tab.is-submitted {
  background: linear-gradient(180deg, #f0fbf7, #ffffff);
  border-color: rgba(31, 157, 99, 0.34);
}

.store-tab.is-submitted .order-tab-badge {
  background: #dff7eb;
  color: #127241;
}

.store-tab.is-pending {
  background: #ffffff;
}

.store-tab.is-pending .order-tab-badge {
  background: #eef2f6;
  color: var(--muted);
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.data-table th {
  letter-spacing: 0;
}

.data-table td {
  white-space: nowrap;
}

.data-table td:first-child,
.data-table th:first-child {
  padding-left: 0;
}

.compact-table {
  table-layout: auto;
}

.compact-table th,
.compact-table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.compact-table td {
  font-weight: 650;
}

.compact-table td:first-child {
  color: var(--ink);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef1f5;
  color: #445064;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.good {
  background: #eaf7f0;
  color: var(--green);
}

.status-pill.warn {
  background: #fff5d8;
  color: #7a5415;
}

.status-pill.muted {
  background: #f4f5f7;
  color: var(--muted);
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.users-admin-table .section-title {
  align-items: center;
}

.users-admin-form {
  margin-top: 16px;
}

.users-admin-form.is-collapsed {
  display: none;
}

.admin-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.admin-filter .field {
  flex: 0 1 160px;
  margin: 0;
  gap: 4px;
}

.admin-filter .field:first-child {
  flex-basis: 210px;
}

.admin-filter .field span,
.inline-search .field span {
  font-size: 11px;
}

.admin-filter input,
.admin-filter select,
.inline-search input,
.inline-search select {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
}

.admin-filter .secondary {
  min-height: 34px;
  padding: 0 18px;
}

.admin-filter .ghost {
  min-height: 34px;
  padding: 0 14px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sales-filter-card {
  padding: 14px 16px;
}

.sales-filter-card .admin-filter {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.compact-scope-filter {
  justify-content: flex-start;
  margin-top: 8px;
  margin-bottom: 14px;
}

.compact-scope-filter .field {
  flex: 0 1 240px;
}

.compact-scope-filter .filter-actions {
  margin-left: 0;
}

.expiring-product-form {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.expiring-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.expiring-summary-grid article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
}

.expiring-summary-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.expiring-summary-grid strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.expiring-products-table td:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.expiring-qty-input,
.expiring-status-select,
.expiring-note-input {
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 13px;
}

.expiring-qty-input {
  width: 76px;
  text-align: center;
  font-weight: 800;
}

.expiring-status-select {
  min-width: 112px;
}

.expiring-note-input {
  width: min(240px, 100%);
}

.expiring-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.expiring-row-actions .compact-action {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
}

.product-manager-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 124, 128, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(200, 144, 47, 0.14), transparent 38%),
    var(--surface);
}

.product-manager-copy {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.product-manager-copy h2 {
  margin: 12px 0 6px;
  font-size: 26px;
}

.product-manager-copy p,
.product-manager-actions span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-manager-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 8px;
}

.product-stat {
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(22, 124, 128, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.product-stat strong,
.product-stat span {
  display: block;
}

.product-stat strong {
  font-size: 24px;
  line-height: 1;
}

.product-stat span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-manager-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 240px;
}

.product-manager-hero #productSaveResult {
  grid-column: 1 / -1;
}

.product-save-button {
  width: auto;
  min-width: 210px;
}

.product-manager-card {
  margin-top: 16px;
}

.product-manager-card .section-title {
  align-items: end;
  gap: 16px;
}

.product-search-field {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: end;
}

.product-search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-search-field input {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.product-search-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 124, 128, 0.1);
  outline: none;
}

.product-search-field small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.product-manager-table td {
  white-space: normal;
  vertical-align: middle;
}

.product-manager-table tr.product-row-inactive {
  background: #f8fafc;
  color: #7b8794;
  opacity: 0.68;
}

.product-manager-table tr.product-row-inactive .product-name-cell strong {
  color: #64748b;
}

.product-manager-table tr.product-row-inactive .sku-chip {
  background: #eef2f6;
  border-color: #dde5ed;
  color: #64748b;
}

.product-manager-table tr.product-row-highlight {
  background: #ecfdf5;
  box-shadow: inset 4px 0 0 var(--accent);
}

.product-manager-table tr.product-row-highlight .product-name-cell strong {
  color: var(--accent);
}

.product-manager-table tr.product-row-new {
  background: linear-gradient(90deg, rgba(255, 247, 224, 0.96), rgba(236, 253, 245, 0.96));
  box-shadow: inset 5px 0 0 #d69722;
}

.product-manager-table tr.product-row-new .product-name-cell strong {
  color: #6c4a00;
}

.product-manager-table tr.product-row-after-new td {
  border-top: 14px solid #f1f5f9;
}

.new-product-pill {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(214, 151, 34, 0.35);
  border-radius: 999px;
  background: rgba(255, 247, 224, 0.95);
  color: #7a4d00;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-name-cell strong,
.product-name-cell small {
  display: block;
}

.sku-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 340px;
}

.sku-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #cddae2;
  border-radius: 999px;
  background: #f4faf9;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.product-status-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.return-form-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #f2fbfa 0%, #ffffff 58%, #f7f4ec 100%);
}

.return-form-hero h2,
.form-panel-title h3 {
  margin: 0;
}

.return-form-hero p {
  margin: 4px 0 0;
}

.return-type-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.return-type-switch label {
  cursor: pointer;
}

.return-type-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.return-type-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 800;
  color: var(--muted);
}

.return-type-switch input:checked + span {
  background: var(--ink);
  color: #fff;
}

.form-panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.form-panel-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.return-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.return-check {
  align-self: end;
  min-height: 44px;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.form-submit-row .primary {
  min-width: 220px;
}

.success-text {
  color: #13804d;
  font-weight: 800;
}

.cash-review-table .inline-edit {
  min-width: 112px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
}

.cash-review-table .actions-cell {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.schedule-card .section-title {
  align-items: center;
}

.compact-tabs {
  width: auto;
  margin: 0;
}

.compact-tabs button {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.schedule-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.schedule-title-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.schedule-title-actions .compact {
  margin-top: 0;
}

.schedule-table th,
.schedule-table td {
  white-space: nowrap;
}

.coverage-scroll {
  width: 100%;
}

.schedule-coverage-table {
  min-width: 1180px;
  table-layout: fixed;
}

.schedule-coverage-table th:first-child,
.schedule-coverage-table td:first-child {
  width: 128px;
}

.schedule-coverage-table th {
  font-size: 11px;
  letter-spacing: 0;
}

.schedule-coverage-table td {
  vertical-align: top;
  white-space: normal;
}

.schedule-date-small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.schedule-assignment-cell {
  min-height: 76px;
  position: relative;
}

.schedule-cell-input {
  width: 100%;
  min-width: 78px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink);
  color-scheme: light;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
}

.schedule-cell-input::placeholder {
  color: #667085;
  opacity: 0.72;
}

.schedule-coverage-input {
  min-width: 0;
  height: 36px;
  background: #fff;
  color: var(--ink);
  caret-color: var(--teal);
}

.schedule-name-menu {
  position: absolute;
  top: 42px;
  right: 0;
  left: 0;
  z-index: 30;
  overflow: hidden;
  border: 1px solid rgba(22, 124, 128, 0.35);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.schedule-name-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
}

.schedule-name-option:last-child {
  border-bottom: 0;
}

.schedule-name-option:hover,
.schedule-name-option:focus {
  background: #eefafa;
  color: var(--teal);
  outline: none;
}

.schedule-cell-input.is-invalid {
  border-color: #dc3545;
  background: #fff7f8;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.schedule-assignment-cell .invalid-feedback {
  display: none;
  margin-top: 5px;
  color: #dc3545;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.schedule-assignment-cell.has-validation-error .invalid-feedback {
  display: block;
}

.schedule-cell-input:focus {
  border-color: var(--teal);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.12);
}

.schedule-cell-input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.16);
}

.schedule-validation {
  margin: 16px 0 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.schedule-validation ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.schedule-assignment-summary {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #d8e8e7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fdfc 0%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.compact-section-title {
  margin-bottom: 10px;
  gap: 16px;
}

.compact-section-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.compact-section-title span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.schedule-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.schedule-summary-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #cfe3e2;
  border-radius: 999px;
  background: #ffffff;
  color: #536074;
  font-size: 12px;
  font-weight: 800;
}

.schedule-summary-stats strong {
  color: var(--teal);
  font-size: 14px;
}

.schedule-summary-table {
  min-width: 960px;
}

.schedule-summary-table th,
.schedule-summary-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.schedule-summary-table tbody tr.unassigned-user {
  background: #fbfcfe;
}

.schedule-summary-table tbody tr.unassigned-user td {
  color: #7a8496;
}

.schedule-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eefafa;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
}

.schedule-unassigned-note {
  display: block;
  margin-top: 4px;
  color: #9aa5b5;
  font-size: 11px;
  font-weight: 800;
}

.schedule-day-pill,
.schedule-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  margin: 2px 4px 2px 0;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f7f4;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.schedule-total-pill {
  background: #eef2ff;
  color: #3155c7;
}

.schedule-total-pill.empty {
  background: #f1f5f9;
  color: #7a8496;
}

.schedule-empty-day {
  color: #a2acba;
  font-weight: 800;
}

.schedule-actions {
  position: static;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.schedule-actions .muted {
  margin-right: auto;
  font-size: 13px;
  max-width: 420px;
}

.schedule-actions .secondary,
.schedule-actions .primary {
  width: auto;
  min-width: 118px;
  flex: 0 0 auto;
}

.schedule-actions .secondary {
  background: #eefafa;
  color: var(--teal);
  border-color: rgba(22, 124, 128, 0.34);
}

.schedule-actions .secondary:hover:not(:disabled) {
  background: #dff5f4;
  border-color: rgba(22, 124, 128, 0.52);
}

.schedule-actions .primary {
  background: linear-gradient(135deg, var(--teal), #1f9a72);
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(22, 124, 128, 0.22);
}

.schedule-actions .primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--teal-dark), #177d5e);
  border-color: var(--teal-dark);
  box-shadow: 0 12px 28px rgba(15, 103, 107, 0.28);
}

.schedule-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(199, 142, 36, 0.34);
  border-left: 5px solid #c78e24;
  border-radius: 8px;
  background: #fff8e8;
  color: #4b3410;
}

.schedule-warning strong {
  display: block;
  margin-bottom: 2px;
  color: #171b24;
}

.schedule-warning span {
  font-size: 13px;
  color: #6d5a39;
}

.schedule-warning.active-edit {
  background: #fff3f0;
  border-color: rgba(196, 84, 58, 0.34);
  border-left-color: #c4543a;
}

.availability-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  min-width: 130px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.availability-pill.available {
  background: #eef7f1;
  color: #567765;
}

.availability-pill.unavailable {
  background: #f8eeee;
  color: #8a6764;
}

.schedule-availability-hint {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  min-height: 27px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.58;
}

.schedule-availability-hint span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-availability-hint .availability-summary-line,
.schedule-availability-hint .availability-summary-more {
  color: #6f7c8f;
}

.schedule-availability-hint .availability-summary-line.available {
  color: #78977f;
}

.schedule-availability-hint .availability-summary-line.unavailable {
  color: #9b7772;
}

.availability-card {
  margin-top: 18px;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.availability-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  overflow: hidden;
}

.availability-day.mode-all-day {
  border-color: rgba(22, 128, 84, 0.32);
  box-shadow: 0 12px 28px rgba(22, 128, 84, 0.08);
}

.availability-day.mode-specific {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.07);
}

.availability-day.mode-unavailable {
  border-color: rgba(196, 84, 58, 0.28);
  box-shadow: 0 12px 28px rgba(196, 84, 58, 0.07);
}

.availability-day.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.availability-day header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #f4f8f8;
  border-bottom: 1px solid var(--line);
}

.availability-day header strong {
  color: var(--ink);
  font-size: 14px;
}

.availability-day header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.availability-slots {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.availability-day-options {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #fff;
}

.availability-mode {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.availability-mode:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 124, 128, 0.35);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.availability-mode strong {
  color: var(--ink);
  font-size: 13px;
}

.availability-mode span {
  justify-self: end;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef3f6;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.availability-mode.all-day {
  border-color: rgba(22, 128, 84, 0.18);
  background: #f4fbf7;
}

.availability-mode.all-day span {
  background: #eef3f6;
  color: var(--muted);
}

.availability-mode.all-day.selected span {
  background: rgba(22, 128, 84, 0.14);
  color: #117142;
}

.availability-mode.specific.selected {
  border-color: rgba(37, 99, 235, 0.5);
  background: #eef5ff;
  box-shadow: inset 4px 0 0 #2563eb;
}

.availability-mode.specific.selected span {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.availability-mode.all-day.selected {
  border-color: #168054;
  background: #168054;
  box-shadow: 0 10px 22px rgba(22, 128, 84, 0.22);
}

.availability-mode.all-day.selected strong {
  color: #fff;
}

.availability-mode.unavailable.selected {
  border-color: rgba(196, 84, 58, 0.54);
  background: #fff1ef;
  box-shadow: inset 4px 0 0 #c4543a;
}

.availability-mode.unavailable.selected span {
  background: rgba(196, 84, 58, 0.12);
  color: #a33a2c;
}

.availability-time-row {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
  background: #fff;
}

.availability-time-row.active {
  display: grid;
}

.availability-time-row input.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.availability-slot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
}

.availability-slot.all-day-slot {
  border-left: 4px solid var(--teal);
  background: linear-gradient(90deg, rgba(22, 124, 128, 0.12), #fff 58%);
}

.availability-slot.all-day-slot strong::after {
  content: " Recommended";
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(22, 124, 128, 0.12);
  color: var(--teal);
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
  text-transform: uppercase;
}

.availability-slot strong {
  display: block;
  color: #202733;
  font-size: 13px;
}

.availability-slot span {
  color: var(--muted);
  font-size: 12px;
}

.availability-choice-group {
  display: inline-flex;
  gap: 6px;
}

.availability-choice {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.availability-choice.available.featured:not(.selected) {
  border-color: rgba(22, 128, 84, 0.34);
  background: #e8f8ef;
  color: #117142;
}

.availability-slot.status-unavailable .availability-choice.available.featured:not(.selected) {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
  box-shadow: none;
}

.availability-choice.available:hover,
.availability-choice.available.selected {
  border-color: rgba(22, 128, 84, 0.5);
  background: #e6f7ed;
  color: #117142;
  box-shadow: 0 0 0 3px rgba(22, 128, 84, 0.12);
}

.availability-choice.unavailable:hover,
.availability-choice.unavailable.selected {
  border-color: rgba(196, 84, 58, 0.5);
  background: #fdecea;
  color: #a33a2c;
  box-shadow: 0 0 0 3px rgba(196, 84, 58, 0.12);
}

.availability-notes {
  margin-top: 16px;
}

.availability-day-note {
  display: block;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.availability-day-note textarea {
  min-height: 68px;
  resize: vertical;
}

.availability-actions .primary {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 18px rgba(22, 124, 128, 0.18);
}

.availability-actions .primary:hover:not(:disabled) {
  background: #126b6f;
  border-color: #126b6f;
}

.clock-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid rgba(22, 124, 128, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f3fbfa, #fff);
  box-shadow: var(--shadow);
}

.clock-hero.clocked-in {
  background: linear-gradient(135deg, #e9f8ef, #fff);
  border-color: rgba(22, 128, 84, 0.28);
}

.clock-hero h2 {
  margin: 4px 0 6px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.clock-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.clock-primary-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-color: rgba(22, 124, 128, 0.2);
  background:
    linear-gradient(135deg, rgba(240, 250, 248, 0.98), rgba(255, 255, 255, 0.98) 54%, rgba(250, 247, 240, 0.88)),
    var(--surface);
  box-shadow: 0 22px 55px rgba(20, 25, 34, 0.08);
}

.clock-primary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), #23a97b, var(--gold));
}

.clock-primary-card.clocked-in {
  border-color: rgba(196, 84, 58, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 248, 246, 0.98), rgba(255, 255, 255, 0.98) 58%, rgba(247, 251, 250, 0.92)),
    var(--surface);
}

.clock-primary-card.clocked-in::before {
  background: linear-gradient(90deg, #c4543a, #ef8f66, var(--gold));
}

.clock-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.clock-store-pill,
.clock-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.clock-store-pill {
  padding: 8px 12px;
  border: 1px solid rgba(22, 124, 128, 0.18);
  background: rgba(238, 250, 248, 0.92);
  color: var(--teal);
}

.clock-status-badge {
  min-width: 104px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(21, 25, 34, 0.14);
}

.clocked-in .clock-status-badge {
  background: #168054;
  box-shadow: 0 12px 26px rgba(34, 121, 91, 0.18);
}

.clock-punch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(22, 124, 128, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.clocked-in .clock-punch-panel {
  border-color: rgba(196, 84, 58, 0.16);
}

.clock-punch-copy {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.clock-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(22, 124, 128, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, #e8f8f5, #fff);
  color: var(--teal);
  box-shadow: 0 16px 30px rgba(22, 124, 128, 0.13);
}

.clock-icon::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.clock-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(35deg);
  transform-origin: bottom;
}

.clock-icon.out {
  border-color: rgba(196, 84, 58, 0.22);
  background: linear-gradient(135deg, #fff0ed, #fff);
  color: #c4543a;
  box-shadow: 0 16px 30px rgba(196, 84, 58, 0.12);
}

.clock-punch-copy h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.04;
}

.clock-punch-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.clock-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.clock-meta-row strong {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.clock-main-action {
  width: 100%;
  min-height: 58px;
  margin: 0;
  border-radius: 12px;
  font-size: 18px;
  box-shadow: 0 18px 36px rgba(22, 124, 128, 0.16);
}

.clock-note-field {
  margin-top: 18px;
}

.clock-layout {
  align-items: start;
}

.clock-action-card textarea {
  min-height: 82px;
}

.clock-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.clock-actions button {
  min-height: 58px;
}

.success-action {
  background: linear-gradient(135deg, var(--teal), #1f9a72);
  border-color: var(--teal);
}

.danger-action {
  color: #a33a2c;
  border-color: rgba(196, 84, 58, 0.28);
  background: #fff6f4;
}

.danger-action:hover:not(:disabled) {
  color: #84291e;
  border-color: rgba(196, 84, 58, 0.45);
  background: #fdecea;
}

.clock-result {
  margin-top: 12px;
}

.inline-alert {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
}

.phone-pos-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
}

.workflow-builder .section-title {
  margin-bottom: 14px;
}

.workflow-builder h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.phone-pos-shell {
  display: grid;
  grid-template-columns: minmax(380px, 1.08fr) minmax(360px, 0.92fr);
  gap: 16px;
  align-items: start;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.phone-pos-left {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.phone-pos-rail {
  display: grid;
  gap: 14px;
  grid-template-rows: none;
  border-left: 0;
  background: transparent;
}

.phone-pos-search {
  max-width: none;
}

.phone-pos-search span,
.phone-customer-panel .field span,
.phone-line-detail .field span {
  color: var(--ink);
}

.phone-pos-search input,
.phone-customer-panel input,
.phone-customer-panel select,
.phone-customer-panel textarea,
.phone-line-detail input,
.phone-line-detail textarea {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.phone-pos-search input:focus,
.phone-customer-panel input:focus,
.phone-customer-panel select:focus,
.phone-line-detail input:focus,
.phone-line-detail textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.12);
}

.phone-product-results {
  max-width: none;
  margin: 10px 0 14px;
}

.phone-pos .product-result,
.sample-pos .product-result,
.return-pos .product-result {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.phone-pos .product-result small,
.sample-pos .product-result small,
.return-pos .product-result small,
.phone-pos .customer-result span,
.return-pos .customer-result span,
.phone-pos .empty,
.sample-pos .empty,
.return-pos .empty,
.phone-pos #selectedCustomer span,
.return-pos #returnSelectedCustomer span {
  color: var(--muted);
}

.phone-product-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: start;
  gap: 10px;
  max-width: none;
  padding-top: 8px;
}

.phone-product-tile {
  position: relative;
  display: flex;
  min-height: 104px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px;
  text-align: left;
  box-shadow: none;
}

.phone-product-tile::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: var(--tile-color);
  content: "";
}

.phone-product-tile:hover {
  border-color: var(--teal);
  background: #f7fbfb;
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.08);
  transform: translateY(-1px);
}

.phone-product-tile span,
.phone-product-tile em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.phone-product-tile strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pos-actionbar {
  display: none;
}

.pos-actionbar button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.phone-customer-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.workflow-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.customer-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.phone-customer-panel .secondary {
  min-height: 46px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.phone-pos .customer-result,
.return-pos .customer-result {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.phone-pos #selectedCustomer,
.return-pos #returnSelectedCustomer {
  margin: 10px 0;
  color: var(--ink);
}

.customer-mini-form {
  margin-top: 12px;
  color: var(--ink);
}

.customer-mini-form summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 800;
}

.customer-mini-form .form-grid {
  padding-top: 0;
}

.phone-cart-items {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 126px;
  border-bottom: 1px solid var(--line);
}

.phone-cart-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border-left: 4px solid transparent;
  border-bottom: 1px solid var(--line);
  padding: 12px 0 12px 10px;
  color: var(--ink);
  cursor: pointer;
}

.phone-cart-line.active {
  border-left-color: var(--teal);
  background: #f0f8f8;
}

.phone-cart-line small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.phone-cart-line .cart-qty {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.phone-cart-line .icon-button {
  min-width: 32px;
  min-height: 32px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

.phone-line-detail {
  overflow: auto;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  margin-top: 12px;
  padding: 14px;
}

.phone-line-detail.empty,
.phone-cart-items.empty {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px dashed var(--line);
  margin: 0;
  border-radius: 8px;
  color: var(--muted);
}

.line-detail-tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 12px;
  color: var(--teal);
}

.line-detail-tabs span {
  color: var(--muted);
}

.line-detail-title {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
}

.line-detail-title span,
.line-detail-meta {
  color: var(--muted);
  font-size: 13px;
}

.line-detail-grid {
  grid-template-columns: 1fr 1fr;
}

.line-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 700;
}

.phone-total-dock {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.cart-add-row {
  display: none;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.cart-add-row strong {
  margin-right: auto;
  color: var(--ink);
  letter-spacing: 0;
}

.phone-pos .cart-totals,
.sample-pos .cart-totals,
.return-pos .cart-totals {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.phone-pos .cart-totals div,
.phone-pos .cart-totals label,
.sample-pos .cart-totals div,
.sample-pos .cart-totals label,
.return-pos .cart-totals div,
.return-pos .cart-totals label {
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.phone-pos .cart-totals input,
.sample-pos .cart-totals input,
.return-pos .cart-totals input {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.phone-pos #submitPhoneOrder,
.sample-pos #submitSamples,
.return-pos #submitReturnExchange {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.pos-products,
.pos-cart {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.product-results,
.cart-items,
.customer-results {
  display: grid;
  gap: 8px;
}

.product-result,
.customer-result {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.customer-result {
  grid-template-columns: minmax(0, 1fr) auto;
}

.customer-result.add-customer-result {
  grid-template-columns: 54px minmax(0, 1fr);
}

.product-result:hover,
.customer-result:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.08);
}

.product-icon {
  display: grid;
  place-items: center;
  height: 50px;
  border-radius: 8px;
  background: #eef4f4;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.product-result small,
.customer-result span,
.cart-line small,
#selectedCustomer span,
.selected-customer span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.product-result em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

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

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px 94px auto auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.cart-line input {
  height: 36px;
  padding: 0 8px;
}

.customer-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.customer-panel.disabled {
  opacity: 0.45;
  pointer-events: none;
}

#selectedCustomer,
.selected-customer {
  margin: 8px 0 12px;
}

.cart-totals {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}

.cart-totals div,
.cart-totals label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-totals input {
  width: 140px;
  height: 36px;
  padding: 0 8px;
}

.cash-sheet-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfb;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
}

.cash-sheet-meta span {
  color: var(--muted);
  font-weight: 700;
}

.cash-log-sheet tfoot td {
  border-top: 2px solid var(--ink);
  background: #f8fafc;
  font-weight: 700;
}

.cash-log-sheet .total-row td:first-child {
  text-align: right;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.order-sheet-scroll {
  max-height: 68vh;
  border-top: 1px solid var(--line);
}

.order-request-form .order-sheet-scroll {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.order-request-form .order-sheet-table th,
.order-request-form .order-entry-table th {
  position: static;
}

.order-sheet-table {
  min-width: 1080px;
}

.order-sheet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.order-request-form {
  display: grid;
  gap: 16px;
}

.order-entry-table,
.order-admin-table {
  min-width: 1120px;
}

.order-admin-table {
  min-width: 1160px;
}

.order-entry-table {
  min-width: 1280px;
}

.order-entry-table th,
.order-entry-table td,
.order-admin-table th,
.order-admin-table td {
  padding-top: 12px;
  padding-bottom: 12px;
  vertical-align: middle;
}

.order-entry-table td:first-child strong,
.order-admin-table td:first-child strong {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
}

.order-entry-table td:first-child span,
.order-admin-table td:first-child span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.sku-name-cell {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.sku-name-cell strong {
  max-width: 420px !important;
}

.order-sku-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.order-sku-list span {
  display: inline-flex !important;
  align-items: center;
  width: auto;
  margin: 0 !important;
  line-height: 1;
}

.order-sku-chip {
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(22, 124, 128, 0.22);
  border-radius: 999px;
  background: #f0fbfb;
  color: var(--teal-dark) !important;
  font-size: 12px !important;
  letter-spacing: 0;
}

.readonly-metric {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf4f5;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.readonly-metric.available {
  background: #eef8f2;
  color: var(--green);
}

.readonly-metric.expiring {
  background: #fff4df;
  color: #a15f05;
}

.order-line-input {
  width: 76px;
  height: 36px;
  padding: 7px 9px;
  text-align: center;
  font-weight: 800;
}

.order-note-input {
  width: 220px;
  height: 36px;
  padding: 7px 10px;
}

.order-footnote {
  margin: 10px 0 14px;
  font-size: 13px;
}

.order-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.order-form-actions .primary,
.order-form-actions .secondary {
  width: auto;
  min-width: 170px;
}

.form-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: start;
}

.transfer-available {
  display: inline-flex;
  align-items: center;
  min-width: 42px;
  height: 28px;
  justify-content: center;
  border-radius: 999px;
  background: #e8f6f4;
  border: 1px solid rgba(20, 134, 128, 0.18);
  color: #11736f;
  font-size: 12px;
  font-weight: 900;
  cursor: help;
}

.transfer-available.is-empty {
  background: #eef2f5;
  border-color: #dbe3ea;
  color: #667085;
}

.transfer-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.transfer-admin-hint {
  margin-top: 8px;
  color: #67748a;
  font-size: 12px;
  font-weight: 700;
}

.transfer-admin-hint strong {
  color: #137a73;
}

.order-note-summary {
  max-width: 280px;
  color: #2f3747;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transfer-source-chip {
  min-height: 28px;
  border: 1px solid rgba(22, 124, 128, 0.24);
  border-radius: 999px;
  background: #f0fbfb;
  color: var(--teal-dark);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.transfer-source-chip:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.order-admin-table td:nth-child(6) {
  white-space: normal;
  min-width: 240px;
}

.order-admin-table td:nth-child(7) {
  white-space: nowrap;
  min-width: 150px;
}

.transfer-modal {
  width: min(760px, 100%);
}

.transfer-modal h2 {
  margin-right: 34px;
  margin-bottom: 6px;
}

.transfer-empty {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbfc;
}

.transfer-empty h3,
.transfer-empty p {
  margin: 0;
}

.transfer-empty p {
  color: var(--muted);
}

.transfer-todo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.transfer-todo-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(22, 124, 128, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.07);
}

.transfer-todo-card.is-complete {
  border-color: rgba(35, 143, 103, 0.18);
  background: #f7fbf8;
}

.transfer-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.transfer-card-head h3 {
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.transfer-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transfer-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #245ac4;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-status-pill.completed {
  background: #e7f7ee;
  color: #147a49;
}

.transfer-quantity {
  display: grid;
  justify-items: center;
  min-width: 78px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), #24a06c);
  color: #fff;
}

.transfer-quantity strong {
  font-size: 26px;
  line-height: 1;
}

.transfer-quantity span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.transfer-store-card {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.transfer-store-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.transfer-store-card strong {
  color: var(--ink);
  font-size: 15px;
}

.transfer-source-select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(22, 124, 128, 0.24);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

.transfer-source-select:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(22, 124, 128, 0.16);
}

.transfer-source-select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.transfer-store-card.destination {
  border-color: rgba(22, 124, 128, 0.24);
  background: #f0fbfb;
}

.transfer-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.transfer-order-note,
.transfer-note {
  margin: 0;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff8e8;
  color: #6f4b08;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.transfer-note {
  background: #f3f6f8;
  color: #465369;
}

.transfer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.transfer-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.transfer-complete-button,
.transfer-complete-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.transfer-complete-state {
  background: #e7f7ee;
  color: #147a49;
  cursor: default;
}

.transfer-cancel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff5f5;
  color: #b42318;
  font-weight: 900;
  cursor: pointer;
}

.transfer-cancel-button:hover {
  background: #fee4e2;
}

.workflow-card {
  display: grid;
  gap: 12px;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.workflow-card code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px;
  border-radius: 8px;
  background: #f3f6f8;
  color: var(--ink);
}

.order-run-card {
  margin-top: 16px;
}

.phone-pos .primary,
.return-pos .primary,
.sample-pos .primary {
  margin-top: 14px;
}

.daily-task-panel .section-title {
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.daily-task-panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 124, 128, 0.055), transparent 42%),
    var(--surface);
}

.daily-task-panel .section-title h2 {
  margin-bottom: 2px;
  color: #596273;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-task-panel .section-title span:not(.task-score) {
  color: #697386;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.task-score {
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal-dark), #20a39e);
  box-shadow: 0 12px 26px rgba(22, 124, 128, 0.2);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
  text-transform: none;
}

.daily-task-panel .section-title .task-score {
  color: #fff;
}

.task-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3eeee;
  margin: 12px 0 14px;
  box-shadow: inset 0 1px 2px rgba(21, 25, 34, 0.08);
}

.task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #2ea27f, #e0a637);
  box-shadow: 0 0 18px rgba(34, 121, 91, 0.3);
  transition: width 0.22s ease;
}

.daily-task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.daily-task {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 50px;
  border: 1px solid #e1e7ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 5px 14px rgba(21, 25, 34, 0.035);
  padding: 10px 12px;
  color: #2f3747;
  font-size: 12.5px;
  font-weight: 760;
  line-height: 1.24;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.daily-task input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #b9c8d3;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, #f6f9fb);
  box-shadow: 0 1px 2px rgba(21, 25, 34, 0.08);
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.task-check::after {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  content: "";
}

.daily-task strong {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-right: 4px;
  border-radius: 999px;
  background: #edf3f6;
  color: #637086;
  font-size: 10px;
  font-weight: 900;
}

.daily-task.done {
  border-color: rgba(34, 121, 91, 0.24);
  background: linear-gradient(135deg, rgba(34, 121, 91, 0.11), rgba(255, 255, 255, 0.9));
  box-shadow: 0 8px 18px rgba(34, 121, 91, 0.09);
  color: #1e513f;
}

.daily-task.done .task-check {
  border-color: var(--green);
  background: linear-gradient(135deg, var(--green), #2ea27f);
  box-shadow: 0 6px 13px rgba(34, 121, 91, 0.22);
}

.daily-task.done .task-check::after {
  content: "✓";
}

.daily-task.done strong {
  background: rgba(34, 121, 91, 0.12);
  color: var(--green);
}

.daily-task:hover {
  border-color: rgba(22, 124, 128, 0.32);
  box-shadow: 0 10px 24px rgba(21, 25, 34, 0.07);
  transform: translateY(-1px);
}

.daily-task:hover .task-check {
  border-color: var(--teal);
}

.daily-task:has(input:focus-visible) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 124, 128, 0.13);
}

.daily-task.saving {
  opacity: 0.78;
}

.task-save-state {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contacts-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f6fbfb, #fff);
  padding: 18px;
  box-shadow: 0 10px 28px rgba(21, 25, 34, 0.06);
}

.contacts-hero h2 {
  margin: 4px 0;
  font-size: 26px;
}

.contacts-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contacts-hero > strong {
  white-space: nowrap;
  border-radius: 999px;
  background: var(--nav);
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
}

.contact-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.contact-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(21, 25, 34, 0.05);
}

.contact-card.active {
  border-color: var(--teal);
  box-shadow: 0 12px 30px rgba(22, 124, 128, 0.12);
}

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

.contact-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.contact-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.contact-details {
  display: grid;
  gap: 4px;
}

.contact-address {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.contact-address:hover {
  color: var(--teal);
}

.contact-phone {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.contact-icon-link {
  display: inline-grid;
  grid-template-columns: 16px 1fr;
  gap: 6px;
  place-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--nav);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.contact-icon-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.contact-icon-link[aria-label="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.contact-icon-link:hover {
  border-color: var(--teal);
  background: #f0f8f8;
  color: var(--teal);
}

.contact-admin-card {
  border-color: rgba(22, 124, 128, 0.28);
  background: #fbfefe;
}

.single-form {
  grid-template-columns: 1fr;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: #303746;
  font-size: 13px;
  font-weight: 700;
}

.check input {
  width: auto;
}

.guide-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.guide-item:first-child {
  padding-top: 0;
}

.guide-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.guide-item h3 {
  margin-top: 8px;
}

.inline-search {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  gap: 8px;
  align-items: end;
  min-width: min(420px, 100%);
}

.inline-search input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.inline-search .field {
  margin: 0;
  gap: 4px;
}

.inline-search .secondary {
  min-height: 34px;
  padding: 0 12px;
}

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.protocol-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.protocol-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
  max-height: 420px;
  overflow: auto;
}

.protocol-card.featured {
  border-color: #c5dfdd;
  background: #f6fbfb;
}

.protocol-card h3 {
  margin: 6px 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.protocol-card ol {
  margin: 0;
  padding-left: 20px;
}

.protocol-card li {
  margin: 5px 0;
  color: #303746;
  font-size: 13px;
  line-height: 1.3;
}

.protocol-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.protocol-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.protocol-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.protocol-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.stacked-tables {
  display: grid;
  gap: 16px;
}

.stacked-tables h3 {
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 0;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 14px;
  color: var(--ink);
  font-weight: 800;
}

.faq-item summary em {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.faq-item p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px;
  color: #303746;
  line-height: 1.45;
}

.alert {
  border-radius: 8px;
  border: 1px solid #ffd0d0;
  background: #fff0f0;
  color: #8b1f1f;
  padding: 10px 12px;
  margin: 12px 0;
}

.alert.notice {
  border-color: #f1c978;
  background: linear-gradient(135deg, #fff7e5 0%, #fffdf7 58%, #eefafa 100%);
  color: #3d2b08;
}

.success {
  border-color: #bfe6d4;
  background: #ecfff5;
  color: #145f41;
}

.live-sales-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notice-details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border: 1px solid #f2d38a;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff6db, #eef8f7);
  color: #1d2a2a;
  padding: 16px 18px;
  box-shadow: 0 12px 34px rgba(200, 144, 47, 0.16);
}

.promo-banner span,
.promo-card span,
.staff-badge-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-banner strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.promo-banner p {
  margin: 6px 0 0;
  color: #445064;
}

.promo-end {
  white-space: nowrap;
}

.promo-card {
  border: 1px solid #f2d38a;
  border-radius: 8px;
  background: #fffaf0;
  padding: 14px;
  margin-bottom: 10px;
}

.promo-card strong {
  font-size: 18px;
}

.announcement-popup {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 90;
  width: min(460px, calc(100vw - 32px));
  border: 1px solid rgba(24, 130, 132, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fffd 62%, #edf9f6 100%);
  box-shadow: 0 28px 80px rgba(18, 31, 44, 0.28), 0 0 0 6px rgba(24, 130, 132, 0.08);
  padding: 18px 18px 16px;
  cursor: pointer;
  overflow: hidden;
  animation: announcementIn 260ms ease-out;
}

.announcement-popup::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--teal), #1f9d73, #d6a434);
}

.announcement-popup button,
.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.announcement-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 34px;
}

.announcement-popup .announcement-icon {
  width: 34px;
  height: 34px;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(24, 130, 132, 0.28);
}

.announcement-kicker,
.announcement-stack-count {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announcement-stack-count {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(24, 130, 132, 0.1);
  letter-spacing: 0;
  padding: 5px 9px;
}

.announcement-popup .announcement-title {
  display: block;
  margin: 14px 34px 7px 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.announcement-popup .announcement-message {
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.45;
}

.announcement-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.announcement-open-hint {
  border-radius: 999px;
  background: #10141f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 7px 11px;
  text-transform: uppercase;
}

@keyframes announcementIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-item {
  border-left: 6px solid var(--teal);
}

.announcement-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 130, 132, 0.25);
}

.announcement-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.announcement-copy strong {
  color: #171b26;
  font-size: 20px;
  line-height: 1.15;
}

.announcement-copy span {
  display: block;
  margin-top: 4px;
  color: #4b5567;
  font-size: 16px;
  line-height: 1.35;
}

.announcement-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.announcement-action {
  align-self: center;
  border: 1px solid rgba(24, 130, 132, 0.22);
  border-radius: 999px;
  background: rgba(24, 130, 132, 0.08);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 8px 11px;
}

.staff-badge-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #cfe3e4;
  border-radius: 8px;
  background: #f6fbfb;
  padding: 14px;
  margin-bottom: 16px;
}

.character-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 86px;
  border-radius: 8px;
  background: #eaf4f4;
  overflow: hidden;
}

.character-orb {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(22, 124, 128, 0.28);
  animation: badgePulse 2.4s ease-in-out infinite;
}

.sticky-character-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  display: grid;
  grid-template-columns: 126px minmax(0, 220px);
  gap: 14px;
  align-items: center;
  width: min(390px, calc(100vw - 32px));
  border: 1px solid #cfe3e4;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 24px 70px rgba(21, 25, 34, 0.24);
}

.character-stage.jumbo {
  height: 126px;
  background: radial-gradient(circle at 40% 30%, #fff8d9, #dff5f2 58%, #cfe3e4);
}

.character-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 30% 30% 42% 42%;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(22, 124, 128, 0.28);
  animation: badgePulse 2.4s ease-in-out infinite;
}

.character-face::before,
.character-face::after {
  position: absolute;
  top: 27px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.character-face::before {
  left: 24px;
}

.character-face::after {
  right: 24px;
}

.character-face i {
  position: absolute;
  bottom: 22px;
  width: 26px;
  height: 10px;
  border-bottom: 4px solid #fff;
  border-radius: 0 0 999px 999px;
}

.level-2 .character-face {
  background: var(--green);
}

.level-3 .character-face {
  background: var(--gold);
}

.level-4 .character-face {
  background: var(--red);
}

.sticky-character-copy {
  display: grid;
  gap: 5px;
}

.sticky-character-copy > span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sticky-character-copy strong {
  font-size: 22px;
}

.sticky-character-copy p,
.sticky-character-copy small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.xp-bar.large {
  height: 12px;
  margin: 4px 0;
}

.level-2 .character-orb {
  background: var(--green);
}

.level-3 .character-orb {
  background: var(--gold);
}

.level-4 .character-orb {
  background: var(--red);
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2d38a;
  opacity: 0.85;
  animation: sparkFloat 2.8s ease-in-out infinite;
}

.spark.one {
  left: 18px;
  top: 18px;
}

.spark.two {
  right: 18px;
  bottom: 18px;
  animation-delay: 600ms;
}

.xp-bar {
  height: 9px;
  border-radius: 999px;
  background: #dde8e8;
  overflow: hidden;
  margin: 10px 0 7px;
}

.xp-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

@keyframes badgePulse {
  50% {
    transform: translateY(-3px) scale(1.04);
  }
}

@keyframes sparkFloat {
  50% {
    transform: translateY(-8px);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 20, 28, 0.42);
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(21, 25, 34, 0.24);
  padding: 22px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.request-modal {
  width: min(640px, 100%);
}

.notification-modal {
  width: min(620px, 100%);
  border: 1px solid rgba(24, 130, 132, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(24, 130, 132, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
  box-shadow: 0 30px 90px rgba(15, 20, 28, 0.34);
  padding: 30px;
  overflow: hidden;
}

.notification-modal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), #20a57f, #d6a434);
}

.notification-modal-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 38px;
}

.notification-modal-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), #20a57f);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(24, 130, 132, 0.28);
}

.notification-modal h2 {
  margin: 6px 0 0;
  color: #111827;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.notification-modal-message {
  margin: 22px 0 0;
  border: 1px solid rgba(24, 130, 132, 0.14);
  border-radius: 14px;
  background: #f8fcfb;
  color: #263241;
  font-size: 18px;
  line-height: 1.45;
  padding: 18px;
  white-space: pre-wrap;
}

.notification-action-summary {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}

.notification-action-summary strong {
  color: #14532d;
  font-size: 16px;
}

.notification-action-summary span {
  color: #43745a;
  font-size: 13px;
}

.notification-modal-time {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.request-summary {
  display: grid;
  gap: 7px;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.request-summary span {
  color: var(--muted);
  font-size: 13px;
}

.switch {
  display: inline-flex;
  align-items: center;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cfd6df;
  position: relative;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 140ms ease;
}

.switch input:checked + span {
  background: var(--teal);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.orderable-cell {
  width: 42px;
}

.orderable-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 28px;
  height: 28px;
  border: 1px solid #cddae2;
  border-radius: 8px;
  background: #ffffff;
  cursor: grab;
}

.orderable-icon span {
  display: block;
  width: 13px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #95a3b5;
}

.orderable-icon.active {
  border-color: rgba(20, 133, 135, 0.28);
  background: #effaf8;
}

.orderable-icon.active span {
  background: var(--teal);
}

.orderable-icon.inactive {
  background: #f1f5f9;
  cursor: default;
}

.product-manager-table tr.dragging {
  opacity: 0.55;
}

.sample-line {
  grid-template-columns: minmax(0, 1fr) 90px auto;
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
}

.loading-card {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.loading-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.spinner,
.button-spinner {
  display: inline-block;
  border-radius: 50%;
  border: 3px solid rgba(22, 124, 128, 0.18);
  border-top-color: var(--teal);
  animation: spin 0.72s linear infinite;
  flex: 0 0 auto;
}

.spinner {
  width: 28px;
  height: 28px;
}

.button-spinner {
  width: 15px;
  height: 15px;
  border-width: 2px;
  margin-right: 8px;
  vertical-align: -2px;
}

.global-action-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d7e4e6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.16);
  color: var(--ink);
}

.global-action-toast[hidden] {
  display: none;
}

.global-action-toast strong,
.global-action-toast span {
  display: block;
}

.global-action-toast strong {
  font-size: 14px;
  line-height: 1.2;
}

.global-action-toast span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.global-action-toast.success {
  border-color: #b8dfcd;
  background: #f0fff7;
}

.global-action-toast.error {
  border-color: #ffc7c7;
  background: #fff2f2;
}

.global-action-toast.error strong {
  color: #8b1f1f;
}

.global-action-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--teal);
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800;
  margin: 0 !important;
}

.global-action-toast.error .global-action-icon {
  background: #b42318;
}

.bonus-hero,
.bonus-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(22, 124, 128, 0.1), rgba(37, 99, 235, 0.06)),
    var(--surface);
  border: 1px solid rgba(22, 124, 128, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: 26px 28px;
}

.bonus-hero h2,
.bonus-progress h2 {
  margin: 4px 0 8px;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
}

.bonus-hero p,
.bonus-progress p {
  color: var(--muted);
  max-width: 920px;
  margin: 0;
}

.bonus-badge {
  min-width: 210px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  text-align: right;
}

.bonus-badge span,
.bonus-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bonus-badge strong {
  display: block;
  font-size: 38px;
  line-height: 1;
  margin: 8px 0;
}

.bonus-progress {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  margin-top: 16px;
}

.bonus-breakdown {
  display: grid;
  gap: 8px;
}

.bonus-breakdown span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 12px;
}

.bonus-breakdown strong {
  color: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .metrics,
  .two-col,
  .three-col,
  .quick-grid,
  .store-choice-grid,
  .product-manager-hero,
  .product-manager-copy,
  .phone-pos-grid,
  .protocol-section-grid,
  .bonus-hero,
  .bonus-progress,
  .daily-task-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .bonus-badge {
    width: 100%;
    text-align: left;
  }

  .product-manager-actions {
    justify-items: start;
  }

  .inline-search {
    grid-template-columns: 1fr;
  }

  .notification-button {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .announcement-action {
    grid-column: 2;
    justify-self: start;
  }

  .filter-actions {
    width: 100%;
    margin-left: 0;
  }

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

  .filter-actions .secondary,
  .filter-actions .ghost {
    flex: 1;
  }

  .phone-pos-shell {
    grid-template-columns: 1fr;
  }

  .clock-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .clock-status-badge {
    width: fit-content;
  }

  .clock-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .clock-punch-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .clock-punch-copy {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .clock-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .clock-icon::before {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }

  .clock-icon::after {
    top: 17px;
    height: 14px;
    width: 3px;
  }

  .clock-main-action {
    min-height: 52px;
  }

  .clock-actions {
    grid-template-columns: 1fr;
  }

  .phone-pos-rail {
    border-left: 0;
    border-top: 0;
  }

  .command-band {
    display: block;
  }

  .command-date {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 14px;
    margin-top: 14px;
  }

  .contacts-hero {
    display: block;
  }

  .contacts-hero > strong {
    display: inline-flex;
    margin-top: 14px;
  }

  .sticky-character-card {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
  }

  .character-stage.jumbo {
    height: 78px;
  }

  .character-face {
    width: 56px;
    height: 56px;
    font-size: 10px;
  }

  .character-face::before,
  .character-face::after {
    top: 19px;
    width: 6px;
    height: 6px;
  }

  .character-face::before {
    left: 17px;
  }

  .character-face::after {
    right: 17px;
  }

.character-face i {
    bottom: 15px;
    width: 18px;
  }
}

.assignment-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment-controls select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 38px;
  min-width: 150px;
  padding: 7px 10px;
}

.assignment-controls select.invalid-field {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.mini-action {
  min-height: 38px;
  padding: 8px 14px;
  width: auto;
}

.muted-line {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 4px;
}

.phone-products-cell {
  color: var(--muted);
  max-width: 360px;
  white-space: pre-line;
}

.phone-assigned-section {
  background: linear-gradient(180deg, #fff 0%, #f7fffd 100%);
  border-color: rgba(22, 124, 128, 0.28);
  margin-bottom: 16px;
}

.phone-assigned-list {
  display: grid;
  gap: 14px;
}

.phone-assigned-card {
  border: 1px solid rgba(22, 124, 128, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(22, 124, 128, 0.08);
  padding: 18px;
}

.phone-assigned-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.phone-assigned-head h3 {
  margin: 4px 0;
}

.phone-assigned-head p,
.phone-ship-box span {
  color: var(--muted);
}

.phone-assigned-total {
  align-items: flex-end;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.phone-assigned-total strong {
  font-size: 1.45rem;
}

.phone-assigned-products {
  background: var(--soft);
  border-radius: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  white-space: pre-line;
}

.phone-ship-box {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.phone-fulfillment-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-top: 14px;
}

.phone-fulfillment-form .field textarea {
  min-height: 76px;
}

@media (max-width: 900px) {
  .phone-assigned-head,
  .phone-fulfillment-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .phone-assigned-total {
    justify-items: start;
  }
}
