:root {
  --bg: #eef3f4;
  --panel: #fbfcfc;
  --panel-soft: #f5f8f8;
  --ink: #101828;
  --muted: #617083;
  --line: #d7e1e3;
  --green: #047857;
  --green-2: #10b981;
  --green-soft: #e5f5ee;
  --amber: #f59e0b;
  --red: #e11d48;
  --blue: #2563eb;
  --surface-tint: rgba(250, 254, 252, .86);
  --shadow: 0 18px 48px rgba(7, 44, 54, .07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f7faf9 0%, var(--bg) 42%, #e9eff0 100%);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body,
#app {
  min-height: 100%;
}

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

button {
  cursor: pointer;
}

.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .82fr);
  gap: 56px;
  align-items: center;
  padding: 48px clamp(24px, 5vw, 72px);
  background:
    radial-gradient(circle at 14% 18%, rgba(22, 199, 132, .16), transparent 28%),
    linear-gradient(135deg, #fbfefd 0%, #eef6f4 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 174px;
  height: auto;
  display: block;
}

.login-copy h1 {
  margin: 28px 0 14px;
  max-width: 820px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.05;
  letter-spacing: 0;
}

.login-copy h1 span {
  color: var(--green);
  display: block;
}

.login-copy p {
  margin: 0;
  max-width: 720px;
  color: #344054;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
}

.saas-strip {
  margin-top: 22px;
  max-width: 760px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(22, 199, 132, .24);
  border-radius: 8px;
  background: rgba(232, 251, 242, .82);
  color: #155e43;
  font-weight: 900;
}

.saas-strip span {
  color: #486175;
  font-size: 14px;
}

.feature-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(132px, 1fr));
  gap: 18px;
  max-width: 900px;
}

.feature-card {
  min-height: 150px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .06);
}

.feature-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 10px;
}

.feature-card strong {
  display: block;
  font-size: 18px;
}

.feature-card small {
  color: #5f6f86;
  font-weight: 800;
}

.login-panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 32px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.login-tabs button,
.ghost-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.login-tabs button.is-active,
.primary-button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(7, 139, 92, .22);
}

.login-panel h2 {
  margin: 0 0 6px;
  font-size: 38px;
  line-height: 1.1;
}

.login-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

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

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  padding: 0 14px;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(22, 199, 132, .12);
}

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

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #344054;
}

.check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  accent-color: var(--green);
}

.primary-button {
  min-height: 54px;
  padding: 0 18px;
}

.social-row {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.social-button {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 900;
}

.social-button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 10px 0 calc(18px + env(safe-area-inset-bottom));
}

.topbar {
  min-height: 52px;
  display: grid;
  grid-template-columns: 132px minmax(280px, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 7px 9px 7px 10px;
  margin: 8px 0 4px;
  border: 1px solid rgba(5, 184, 110, .48);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .2), transparent 23%),
    linear-gradient(135deg, #12c878 0%, #08b96f 56%, #068b5b 100%);
  box-shadow:
    0 12px 28px rgba(4, 120, 87, .16),
    inset 0 1px 0 rgba(255, 255, 255, .2);
}

.topbar .brand {
  min-height: 38px;
  width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 10px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 7px 16px rgba(4, 120, 87, .12);
}

.topbar .brand img {
  width: 100px;
}

.topbar-pos {
  grid-template-columns: 132px minmax(340px, 1fr) auto;
}

.search {
  position: relative;
  min-width: 0;
}

.search input {
  min-height: 36px;
  padding-left: 36px;
  padding-right: 50px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .9);
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(4, 120, 87, .1), inset 0 0 0 1px rgba(15, 23, 42, .02);
}

.search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-size: 17px;
  font-style: normal;
}

.search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 30px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(214, 224, 236, .9);
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.user-menu {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.shop-control {
  min-height: 36px;
  width: 154px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 10px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 12px rgba(4, 120, 87, .1);
}

.shop-control span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.shop-select {
  min-height: 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  min-width: 0;
}

.tenant-chip {
  min-height: 36px;
  min-width: 72px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.tenant-chip strong {
  font-size: 13px;
  line-height: 1.05;
}

.tenant-chip .tenant-state {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-transform: capitalize;
}

.notification-button {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  color: var(--green);
  font-size: 18px;
  font-weight: 1000;
}

.notification-button b {
  position: absolute;
  right: 6px;
  top: 5px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.profile-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, .76);
  color: #08764f;
  font-weight: 900;
}

.profile-button span {
  font-size: 12px;
  letter-spacing: 0;
}

.account-logout {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(225, 29, 72, .14);
  border-radius: 50%;
  background: rgba(255, 241, 242, .86);
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
}

.account-logout:hover {
  background: #fff1f2;
  border-color: rgba(225, 29, 72, .24);
}

.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dff8eb;
  color: var(--green);
  font-weight: 1000;
  box-shadow: none;
}

.avatar::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid #dff8eb;
  border-radius: 50%;
  background: var(--green-2);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.kpi {
  position: relative;
  min-height: 62px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  align-items: center;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid rgba(203, 218, 217, .78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 98% 0%, rgba(22, 199, 132, .045), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 251, 249, .9));
  box-shadow: 0 8px 18px rgba(7, 44, 54, .045);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.kpi-green,
.kpi-blue,
.kpi-purple,
.kpi-orange {
  background:
    radial-gradient(circle at 98% 0%, rgba(22, 199, 132, .045), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(246, 251, 249, .9));
}

.kpi:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 199, 132, .22);
  box-shadow: 0 12px 24px rgba(7, 44, 54, .065);
}

.kpi-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  font-weight: 850;
}

.kpi-blue .kpi-icon {
  background: #eaf4ff;
  color: var(--blue);
}

.kpi-purple .kpi-icon {
  background: #eef7f6;
  color: #355f66;
}

.kpi-orange .kpi-icon {
  background: #fff3e8;
  color: #f97316;
}

.kpi span,
.module-card span,
.home-module-card span,
.wide-module-card span,
.muted {
  color: var(--muted);
  font-weight: 700;
}

.kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 850;
}

.kpi .pill {
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  border: 0;
  border-radius: 999px;
  padding: 1px 6px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.kpi-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.kpi-meta b {
  color: var(--green);
  font-weight: 850;
}

.kpi-blue .kpi-meta b {
  color: var(--blue);
}

.kpi-purple .kpi-meta b {
  color: #355f66;
}

.kpi-orange .kpi-meta b {
  color: #f97316;
}

.kpi-hint {
  display: block;
  margin-top: 1px;
  color: var(--green);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
}

.kpi-blue .pill {
  background: #eef6ff;
}

.kpi-blue .pill,
.kpi-blue .kpi-hint {
  color: var(--blue);
}

.kpi-purple .pill {
  background: #eef7f6;
}

.kpi-purple .pill,
.kpi-purple .kpi-hint {
  color: #355f66;
}

.kpi-orange .pill {
  background: #fff3e8;
}

.kpi-orange .pill,
.kpi-orange .kpi-hint {
  color: #f97316;
}

.sparkline {
  position: absolute;
  right: 9px;
  bottom: 10px;
  width: 36px;
  height: 14px;
  fill: none;
  color: var(--green);
}

.sparkline polyline {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sparkline circle {
  fill: currentColor;
}

.kpi-blue .sparkline {
  color: var(--blue);
}

.kpi-purple .sparkline {
  color: #5f8587;
}

.kpi-orange .sparkline {
  color: #f97316;
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 16px;
}

.page-title h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.page-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, .9fr);
  gap: 8px;
  align-items: stretch;
}

.module-launcher {
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(0, 1.38fr);
  grid-template-areas:
    "pos stock"
    "pos dashboard";
  gap: 8px;
}

.module-launcher .pos-hero {
  grid-area: pos;
  min-height: 232px;
}

.module-launcher .operation-card:nth-of-type(1) {
  grid-area: stock;
}

.module-launcher .operation-card:nth-of-type(2) {
  grid-area: dashboard;
}

.module-launcher .home-module-card:nth-of-type(2) {
  grid-area: stock;
}

.module-launcher .home-module-card:nth-of-type(3) {
  grid-area: dashboard;
}

.module-launcher .home-module-card {
  min-height: 112px;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 12px;
  padding: 14px 40px 14px 14px;
}

.module-launcher .home-module-card img {
  width: 46px;
  height: 46px;
}

.utility-module-grid,
.future-module-grid,
.roadmap-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.roadmap-section {
  margin-top: 8px;
}

.section-head {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.section-head span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(232, 251, 242, .78);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.section-head strong {
  color: #344054;
  font-size: 13px;
  line-height: 1.2;
}

.utility-module-grid .home-module-card,
.future-module-grid .home-module-card {
  min-height: 94px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  gap: 10px;
  padding: 12px 38px 12px 12px;
}

.utility-module-grid .home-module-card img,
.future-module-grid .home-module-card img {
  width: 36px;
  height: 36px;
}

.home-primary {
  display: grid;
  grid-template-rows: 160px 72px;
  gap: 8px;
}

.pos-hero,
.operation-card,
.roadmap-card,
.home-module-card,
.wide-module-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 221, 220, .74);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 199, 132, .04), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(246, 251, 249, .9));
  box-shadow: 0 8px 20px rgba(7, 44, 54, .045);
  color: var(--ink);
  text-decoration: none;
}

.pos-hero {
  min-height: 232px;
  display: grid;
  grid-template-columns: minmax(260px, .92fr) minmax(210px, .72fr);
  align-items: center;
  padding: 18px 20px 16px;
  border-color: rgba(22, 199, 132, .2);
  background:
    radial-gradient(circle at 75% 22%, rgba(22, 199, 132, .16), transparent 35%),
    radial-gradient(circle at 10% 100%, rgba(7, 132, 90, .055), transparent 34%),
    linear-gradient(135deg, rgba(253, 255, 254, .96) 0%, rgba(238, 249, 244, .92) 58%, rgba(232, 243, 241, .9) 100%);
}

.pos-hero::before {
  content: "";
  position: absolute;
  inset: 18px 16px 10px auto;
  width: 230px;
  max-width: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 199, 132, .16), rgba(22, 199, 132, 0) 72%);
}

.pos-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.pos-hero h1 {
  margin: 0;
  font-size: clamp(27px, 2.4vw, 34px);
  line-height: 1;
  letter-spacing: 0;
}

.pos-hero p {
  max-width: 360px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.hero-facts span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(203, 221, 220, .78);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, .72);
  color: #667085;
  font-size: 11px;
  font-weight: 800;
}

.hero-facts b {
  color: var(--ink);
  font-size: 12px;
}

.hero-cta {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  padding: 0 13px;
  background: linear-gradient(135deg, #06a86f, #06c678);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(6, 168, 111, .18);
}

.hero-actions-primary .hero-cta {
  min-width: 164px;
  min-height: 44px;
  gap: 14px;
  border-radius: 9px;
  padding: 0 20px;
  font-size: 17px;
  box-shadow: 0 12px 26px rgba(6, 168, 111, .24);
}

.hero-cta b {
  font-size: 21px;
  line-height: 1;
}

.hero-actions-primary .hero-cta b {
  font-size: 27px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.hero-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(203, 221, 220, .88);
  border-radius: 7px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .82);
  color: #344054;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.pos-hero img {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(238px, 100%);
  height: 178px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, .12));
}

.operation-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 52px minmax(220px, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 199, 132, .04), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .93), rgba(246, 251, 249, .9));
}

.operation-card.summary-card {
  position: relative;
  min-height: 112px;
  grid-template-columns: minmax(310px, 1fr) minmax(250px, .72fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 9px 16px;
  padding: 14px;
}

.operation-card.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(22, 199, 132, .88), rgba(7, 132, 90, .54));
}

.dashboard-summary-card::before {
  background: linear-gradient(180deg, rgba(20, 116, 126, .78), rgba(22, 199, 132, .38));
}

.stock-summary-card {
  border-color: rgba(22, 199, 132, .18);
  background:
    radial-gradient(circle at 96% 18%, rgba(22, 199, 132, .08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(242, 251, 247, .92));
}

.dashboard-summary-card {
  border-color: rgba(20, 116, 126, .16);
  background:
    radial-gradient(circle at 96% 18%, rgba(20, 116, 126, .07), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 250, 249, .92));
}

.summary-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.summary-head img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.summary-head strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 850;
}

.summary-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

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

.summary-metrics span {
  min-width: 0;
  min-height: 35px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(203, 221, 220, .62);
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.summary-metrics span:first-child {
  border-color: rgba(22, 199, 132, .18);
  background: rgba(232, 251, 242, .42);
}

.summary-metrics b {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.08;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-metrics small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
}

.summary-side {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  width: min(292px, 100%);
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(203, 221, 220, .5);
  border-radius: 8px;
  padding: 10px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(244, 250, 248, .52));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.summary-side > strong {
  color: #254055;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 850;
}

.bar-list,
.status-list {
  display: grid;
  gap: 7px;
}

.bar-list span {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}

.bar-list em {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-list em i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.bar-list b {
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

.bar-list small {
  grid-column: 1 / 3;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(203, 221, 220, .5);
}

.bar-list small i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.status-list span {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(203, 221, 220, .52);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, .68);
}

.status-list b {
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  line-height: 1.18;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.18;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-action {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(22, 199, 132, .22);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(232, 251, 242, .62);
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(7, 132, 90, .08);
}

.summary-action b {
  color: var(--green);
  font-size: 14px;
  line-height: 1;
}

.operation-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.operation-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 850;
}

.operation-copy span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.operation-metrics {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.operation-metrics span {
  min-width: 72px;
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(203, 221, 220, .72);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(248, 252, 250, .86);
}

.operation-metrics b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.card-arrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 16px;
  line-height: 1;
}

.roadmap-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-color: rgba(5, 184, 110, .62);
  background:
    linear-gradient(135deg, #08c878 0%, #05b86e 58%, #04945f 100%);
  box-shadow:
    0 16px 34px rgba(4, 120, 87, .18),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.roadmap-card:hover {
  border-color: rgba(5, 184, 110, .72);
  background:
    linear-gradient(135deg, #0bd281 0%, #06bd73 52%, #038a59 100%);
  box-shadow:
    0 18px 38px rgba(4, 120, 87, .24),
    0 0 0 3px rgba(22, 199, 132, .1),
    inset 0 1px 0 rgba(255, 255, 255, .24);
}

.roadmap-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, .64);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.roadmap-card img {
  width: 46px;
  height: 46px;
  padding: 5px;
  border: 1px solid rgba(203, 221, 220, .7);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.08) contrast(1.04) drop-shadow(0 7px 10px rgba(15, 23, 42, .08));
}

.roadmap-card strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
}

.roadmap-card span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.3;
}

.roadmap-card em {
  align-self: start;
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .04);
}

.roadmap-card b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #047857;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(4, 120, 87, .18);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.ops-panel {
  min-height: 94px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid rgba(214, 224, 236, .82);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .03);
}

.ops-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-panel b {
  font-size: 13px;
  line-height: 1.2;
}

.ops-panel em {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.ops-panel span {
  min-height: 30px;
  display: grid;
  gap: 1px;
  border-radius: 7px;
  padding: 6px 8px;
  background: #f8fbfa;
}

.ops-panel strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-panel small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

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

.home-module-card {
  min-height: 172px;
  display: grid;
  grid-template-rows: 46px 1fr;
  align-content: start;
  padding: 16px 40px 16px 16px;
}

.home-module-card img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  align-self: start;
  justify-self: start;
}

.home-module-card strong,
.wide-module-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

.home-module-card span,
.wide-module-card span {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
  font-size: 12px;
  color: var(--muted);
  font-weight: 750;
}

.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.module-meta em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(214, 224, 236, .78);
  border-radius: 999px;
  padding: 0 8px;
  background: #f8fbfa;
  color: #667085;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.home-module-card b,
.wide-module-card b {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 15px;
  line-height: 1;
  transition: transform .16s ease, background .16s ease;
}

.home-module-card:hover b,
.wide-module-card:hover b,
.operation-card:hover .card-arrow,
.roadmap-card:hover b,
.pos-hero:hover .hero-cta b {
  transform: translateX(3px);
}

.home-module-card.is-muted,
.wide-module-card.is-muted {
  border-color: rgba(5, 184, 110, .62);
  border-style: solid;
  background:
    linear-gradient(135deg, #08c878 0%, #05b86e 58%, #04945f 100%);
  opacity: 1;
  box-shadow: 0 16px 34px rgba(4, 120, 87, .18);
}

.home-module-card.is-muted:hover,
.wide-module-card.is-muted:hover {
  border-color: rgba(5, 184, 110, .72);
  background:
    linear-gradient(135deg, #0bd281 0%, #06bd73 52%, #038a59 100%);
  box-shadow:
    0 18px 38px rgba(4, 120, 87, .24),
    0 0 0 3px rgba(22, 199, 132, .1);
}

.home-module-card.is-muted img,
.wide-module-card.is-muted img {
  padding: 5px;
  border: 1px solid rgba(203, 221, 220, .72);
  border-radius: 8px;
  background: #ffffff;
  opacity: 1;
  filter: saturate(1.04) contrast(1.03) drop-shadow(0 7px 10px rgba(15, 23, 42, .075));
}

.home-module-card.is-muted strong,
.wide-module-card.is-muted strong {
  color: #ffffff;
}

.home-module-card.is-muted span,
.wide-module-card.is-muted span {
  color: rgba(255, 255, 255, .84);
}

.home-module-card.is-muted b,
.wide-module-card.is-muted b {
  background: #ffffff;
  color: #047857;
  box-shadow: 0 8px 16px rgba(4, 120, 87, .18);
}

.home-module-card.is-muted .module-meta em:first-child {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}

.wide-module-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.wide-module-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.wide-module-card b {
  position: static;
  justify-self: end;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.command-panel {
  min-height: 118px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .03);
}

.command-panel h2 {
  margin: 0 0 8px;
  color: #344054;
  font-size: 14px;
  line-height: 1.2;
}

.command-list {
  display: grid;
  gap: 6px;
}

.command-list a,
.command-empty {
  min-height: 28px;
  display: grid;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #f8fbfa;
  color: var(--ink);
  text-decoration: none;
}

.command-list a strong {
  font-size: 12px;
  line-height: 1.2;
}

.command-list a span,
.command-empty {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-title {
  align-items: center;
  margin: 8px 0 12px;
}

.dashboard-title h1 {
  font-size: 28px;
}

.dashboard-title p {
  color: #667085;
  font-size: 13px;
  font-weight: 760;
}

.mini-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-size: 12px;
}

.dashboard-kpis {
  gap: 10px;
  margin-bottom: 12px;
}

.dashboard-kpis .kpi {
  min-height: 74px;
  padding: 12px;
  border-color: rgba(192, 206, 210, .88);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.dashboard-kpis .kpi-icon {
  background: #eef4f4;
  color: #355f66;
}

.dashboard-kpis .kpi-green .kpi-icon {
  background: #e5f5ee;
  color: var(--green);
}

.dashboard-kpis .kpi-orange .kpi-icon {
  background: #fff5eb;
  color: #c2410c;
}

.dashboard-kpis .sparkline {
  opacity: .38;
}

.dashboard-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 10px;
  margin-bottom: 10px;
}

.business-health-card,
.trend-card,
.dashboard-panel,
.saas-footnote {
  border: 1px solid rgba(194, 210, 214, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.business-health-card {
  min-height: 214px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(260px, .72fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-color: rgba(4, 120, 87, .22);
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(245, 249, 249, .86));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #667085;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.business-health-card h2,
.trend-card h2,
.dashboard-panel h2 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.08;
}

.business-health-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 760;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.command-actions a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(194, 210, 214, .82);
  border-radius: 7px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .76);
  color: #344054;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.command-actions a:first-child {
  border-color: rgba(4, 120, 87, .22);
  background: var(--green);
  color: #fff;
}

.health-list,
.dashboard-list {
  display: grid;
  gap: 8px;
}

.health-list span,
.dashboard-list span,
.dashboard-empty {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(194, 210, 214, .68);
  border-radius: 8px;
  background: rgba(248, 250, 250, .78);
}

.health-list strong,
.dashboard-list strong,
.dashboard-empty strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.health-list small,
.dashboard-list small,
.dashboard-empty small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.trend-card {
  min-height: 214px;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  gap: 8px;
  padding: 16px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-head h2 {
  margin: 8px 0 0;
  font-size: 20px;
}

.card-head > strong {
  color: var(--green);
  font-size: 19px;
}

.card-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
}

.card-head div {
  min-width: 0;
}

.card-head div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-trend {
  width: 100%;
  height: 128px;
  overflow: visible;
}

.dashboard-trend .trend-grid path {
  fill: none;
  stroke: rgba(148, 163, 184, .22);
  stroke-width: 1;
}

.dashboard-trend rect {
  fill: rgba(15, 118, 110, .09);
}

.dashboard-trend text {
  fill: #667085;
  font-size: 8px;
  font-weight: 800;
}

.dashboard-trend polyline {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
}

.dashboard-trend circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 3;
}

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

.trend-foot span {
  min-height: 38px;
  display: grid;
  align-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(194, 210, 214, .64);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.trend-foot b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

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

.dashboard-panel {
  min-height: 164px;
  padding: 12px;
}

.dashboard-panel .card-head {
  margin-bottom: 12px;
}

.dashboard-panel .card-head a,
.saas-footnote a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 210, 214, .78);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(248, 250, 250, .72);
  color: #344054;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-list a {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(194, 210, 214, .62);
  border-radius: 8px;
  background: rgba(248, 250, 250, .74);
  color: var(--ink);
  text-decoration: none;
}

.dashboard-list a span {
  border: 0;
  background: transparent;
  padding: 0;
}

.dashboard-list em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 245, 235, .72);
  color: #f97316;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.snapshot-grid span {
  min-height: 44px;
  display: grid;
  align-content: center;
  padding: 9px 11px;
  border: 1px solid rgba(194, 210, 214, .62);
  border-radius: 8px;
  background: rgba(248, 250, 250, .74);
}

.snapshot-grid b {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.snapshot-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.saas-footnote {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  padding: 10px 14px;
  border-color: rgba(194, 210, 214, .58);
  background: transparent;
  box-shadow: none;
}

.saas-footnote div {
  display: grid;
  gap: 2px;
}

.saas-footnote b {
  color: #344054;
  font-size: 12px;
}

.saas-footnote span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.module-card,
.panel,
.table-panel {
  border: 1px solid rgba(203, 221, 220, .74);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 28px rgba(7, 44, 54, .05);
}

.module-card {
  min-height: 220px;
  padding: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
}

.module-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 12px;
}

.module-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.05;
}

.module-card.is-muted {
  background: linear-gradient(180deg, #fff, #f7faf9);
}

.action-bar-wrap {
  position: relative;
  bottom: auto;
  z-index: 1;
  margin-top: 12px;
  padding: 0 4px 2px;
  width: 100%;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.action-bar-wrap.is-inline {
  position: relative;
  bottom: auto;
  z-index: 1;
  margin: auto 0 0;
  min-height: 78px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(198, 216, 215, .72);
  justify-content: flex-start;
  pointer-events: auto;
}

.action-bar-wrap.is-inline .action-bar {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.system-nav-label {
  flex: 0 0 auto;
  margin-right: 6px;
  padding-right: 10px;
  border-right: 1px solid rgba(214, 224, 236, .56);
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.action-bar-wrap.is-inline .nav-button {
  min-height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5f6b7a;
  font-size: 11px;
  font-weight: 650;
  gap: 4px;
}

.action-bar {
  width: fit-content;
  max-width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid rgba(214, 224, 236, .62);
  border-radius: 11px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.action-bar::-webkit-scrollbar {
  display: none;
}

.nav-button,
.secondary-button,
.danger-button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.secondary-button {
  color: var(--green);
}

.danger-button {
  color: var(--red);
}

.action-bar .nav-button,
.action-bar .danger-button {
  min-height: 28px;
  position: relative;
  flex: 0 0 auto;
  padding: 0 9px;
  border-radius: 8px;
  border-color: transparent;
  background: transparent;
  color: #475467;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.action-bar .nav-button:not(:first-child)::before,
.action-bar .danger-button::before {
  display: none;
}

.action-bar .nav-button:hover,
.action-bar .danger-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 23, 42, .05);
  background: #fff;
}

.action-bar .nav-button.is-active {
  border-color: rgba(22, 199, 132, .14);
  background: rgba(232, 251, 242, .42);
  color: var(--green);
  box-shadow: none;
}

.action-bar-wrap.is-inline .nav-button:hover {
  background: rgba(255, 255, 255, .74);
  color: #111827;
  transform: none;
  box-shadow: none;
}

.action-bar .nav-button span {
  width: 13px;
  height: 13px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
}

.action-bar .nav-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-bar .danger-button {
  color: var(--red);
  background: rgba(255, 241, 242, .56);
  border-color: rgba(225, 29, 72, .14);
  margin-left: 6px;
}

.action-bar .danger-button::before {
  display: none;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.panel {
  padding: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

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

.product {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  gap: 8px;
  text-align: left;
}

.product strong,
.cart-line strong {
  font-size: 16px;
}

.product footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
  font-size: 12px;
}

.pill.warn {
  background: #fff7ed;
  color: #c2410c;
}

.pill.locked {
  background: #eef2f7;
  color: #667085;
}

.cart-lines {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(203, 221, 220, .74);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 1000;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.total strong {
  font-size: 32px;
}

.table-panel {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 13px;
  color: var(--muted);
  background: #f8fafc;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

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

.notice {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

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

.info-grid div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.info-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.1;
}

.wide-button {
  width: 100%;
  margin-top: 12px;
}

.notice.warn {
  border-left-color: var(--amber);
}

.notice.danger {
  border-left-color: var(--red);
}

.placeholder-hero {
  min-height: 420px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.placeholder-hero img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.placeholder-hero h1 {
  margin: 0 0 10px;
  font-size: 44px;
}

.message {
  min-height: 36px;
  color: var(--red);
  font-weight: 900;
}

.page-actions,
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-toolbar {
  margin-bottom: 12px;
}

.panel-toolbar h2 {
  margin: 0;
}

.inline-search {
  min-width: min(360px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-search input {
  min-height: 36px;
}

.compact-kpi {
  margin-bottom: 12px;
}

.pos-workspace {
  align-items: start;
}

.checkout-panel {
  position: sticky;
  top: 12px;
}

.checkout-panel label span {
  font-size: 12px;
}

.bill-summary {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(203, 221, 220, .66);
  border-radius: 8px;
  background: rgba(250, 254, 252, .78);
}

.bill-summary span,
.bill-summary label,
.bill-summary strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bill-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.bill-summary input {
  width: 120px;
  min-height: 32px;
  text-align: right;
}

.held-bills {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(203, 221, 220, .58);
}

.held-bills strong,
.mini-log h3 {
  margin: 0;
  color: #344054;
  font-size: 13px;
}

.held-bills button {
  min-height: 32px;
  border: 1px solid rgba(203, 221, 220, .74);
  border-radius: 7px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.pos-title {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 2px 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(203, 218, 217, .68);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(247, 252, 250, .62));
  box-shadow: 0 8px 18px rgba(7, 44, 54, .035);
}

.pos-command-main {
  min-width: 0;
}

.pos-title h1 {
  margin: 0;
  font-size: clamp(20px, 1.35vw, 24px);
  line-height: 1.05;
  letter-spacing: 0;
}

.pos-command-search {
  width: 100%;
  min-height: 40px;
  border-color: rgba(0, 151, 90, .18);
  background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.pos-command-search input {
  font-size: 14px;
}

.pos-command-side {
  min-width: 260px;
  display: grid;
  justify-items: end;
  gap: 7px;
}

.pos-mini-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.pos-mini-status span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(194, 210, 214, .7);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .54);
  color: #536273;
  font-size: 10.5px;
  font-weight: 820;
}

.pos-mini-status .is-live {
  border-color: rgba(0, 151, 90, .2);
  background: rgba(220, 248, 233, .72);
  color: var(--green);
  font-weight: 940;
}

.sell-hint {
  color: #7a8795;
  font-size: 12px;
  font-weight: 780;
}

.pos-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .38fr);
  gap: 14px;
  align-items: start;
}

.sell-console {
  min-height: 560px;
  padding: 16px;
  background:
    radial-gradient(circle at 28% 0%, rgba(22, 199, 132, .08), transparent 32%),
    rgba(255, 255, 255, .86);
}

.sell-head,
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sell-head h2,
.receipt-head h2 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.pos-search {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(203, 221, 220, .78);
  border-radius: 10px;
  padding: 6px 6px 6px 12px;
  background: rgba(255, 255, 255, .82);
}

.pos-search i {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.pos-search input {
  min-height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.topbar-pos-search {
  width: 100%;
  max-width: 760px;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.product-filters a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(203, 221, 220, .7);
  border-radius: 999px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .7);
  color: #536273;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.product-filters a.is-active {
  border-color: rgba(22, 199, 132, .28);
  background: rgba(232, 251, 242, .82);
  color: var(--green);
}

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

.pos-product {
  position: relative;
  min-height: 122px;
  gap: 7px;
  padding: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 98% 0%, rgba(22, 199, 132, .055), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(245, 250, 249, .88));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.pos-product:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 199, 132, .3);
  box-shadow: 0 12px 26px rgba(7, 44, 54, .07);
}

.pos-product:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.pos-product .product-type {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(232, 251, 242, .82);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.pos-product strong {
  font-size: 17px;
  line-height: 1.15;
}

.pos-product small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.pos-product footer b {
  font-size: 16px;
}

.pos-product footer em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.pos-product footer em.is-warn {
  background: #fff3e8;
  color: #c2410c;
}

.pos-product footer em.is-out {
  background: #fff1f2;
  color: var(--red);
}

.receipt-panel {
  top: 12px;
  padding: 16px;
  border-color: rgba(7, 132, 90, .18);
  background:
    radial-gradient(circle at 100% 8%, rgba(22, 199, 132, .08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 251, 248, .92));
}

.receipt-head {
  align-items: flex-start;
}

.receipt-head > strong {
  color: var(--green);
  font-size: 26px;
  line-height: 1.05;
  white-space: nowrap;
}

.customer-picker {
  display: grid;
  gap: 6px;
}

.customer-picker small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.customer-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid rgba(203, 221, 220, .62);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.customer-context b {
  font-size: 13px;
}

.customer-context span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.customer-context a {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: var(--green);
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
}

.receipt-lines {
  max-height: 310px;
  padding-right: 2px;
}

.receipt-line {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 10px;
}

.receipt-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.receipt-item-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}

.receipt-item-main span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.receipt-item-total {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.receipt-line .qty {
  gap: 5px;
}

.receipt-line .icon-button {
  width: 30px;
  height: 30px;
}

.receipt-summary {
  gap: 7px;
  margin: 12px 0;
  background: rgba(255, 255, 255, .74);
}

.receipt-summary strong {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(203, 221, 220, .7);
  font-size: 18px;
}

.receipt-summary strong b {
  color: var(--green);
  font-size: 24px;
}

.payment-select {
  display: none;
}

.payment-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.payment-tiles button {
  min-height: 48px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(203, 221, 220, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #344054;
  font-size: 11px;
  font-weight: 900;
}

.payment-tiles button.is-active {
  border-color: rgba(22, 199, 132, .34);
  background: linear-gradient(180deg, rgba(232, 251, 242, .92), rgba(255, 255, 255, .82));
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(22, 199, 132, .08);
}

.payment-note input {
  min-height: 40px;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 1fr 92px 92px;
  gap: 8px;
  margin-top: 10px;
}

.checkout-button {
  min-height: 52px;
  font-size: 16px;
}

.checkout-button:disabled,
.checkout-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
}

.pos-tool-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.pos-tool-row button {
  min-height: 32px;
  border: 1px dashed rgba(203, 221, 220, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .45);
  color: #667085;
  font-size: 10px;
  font-weight: 850;
}

.held-tray button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.held-tray button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.held-tray button b {
  color: var(--green);
  font-size: 11px;
  white-space: nowrap;
}

.pos-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  grid-column: 1 / -1;
  border: 1px dashed rgba(203, 221, 220, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .48);
  text-align: center;
}

.pos-empty strong {
  color: var(--ink);
  font-size: 15px;
}

.pos-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.receipt-empty {
  min-height: 120px;
}

.stock-title {
  margin-bottom: 10px;
}

.pos-terminal {
  display: grid;
  gap: 0;
}

.pos-app {
  overflow: hidden;
}

.pos-app .shell {
  min-height: 100dvh;
  overflow: hidden;
  padding: 6px 0 8px;
}

.pos-app .topbar {
  min-height: 52px;
  margin: 4px 0 8px;
}

.pos-app .action-bar-wrap.is-inline {
  min-height: 34px;
  margin-top: 8px;
  padding: 6px 0 0;
}

.pos-app .action-bar-wrap.is-inline .nav-button {
  min-height: 22px;
}

.pos-app .pos-terminal {
  flex: 1 1 auto;
  min-height: 0;
}

.pos-pay-button kbd {
  font-family: inherit;
  font-weight: 950;
}

.pos-register {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 380px);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  height: clamp(500px, calc(100dvh - 128px), 720px);
}

.pos-sale-stage {
  min-height: 0;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-color: rgba(203, 221, 220, .56);
  background:
    radial-gradient(circle at 50% 47%, rgba(22, 199, 132, .055), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 252, 250, .88));
}

.pos-sale-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(203, 221, 220, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 221, 220, .13) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, .34), transparent 65%);
  pointer-events: none;
}

.pos-scan-empty {
  position: relative;
  z-index: 1;
  width: min(460px, 92%);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.scan-orb {
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .9), transparent 34%),
    linear-gradient(135deg, rgba(228, 250, 239, .94), rgba(214, 239, 235, .86));
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(22, 199, 132, .08), 0 14px 34px rgba(7, 44, 54, .08);
}

.scan-orb span {
  font-size: 58px;
  line-height: 1;
}

.pos-scan-empty h2 {
  margin: 2px 0 0;
  font-size: 26px;
  line-height: 1.1;
}

.pos-scan-empty p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 780;
  line-height: 1.45;
}

.scan-divider {
  width: min(280px, 90%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #7a8795;
  font-size: 13px;
  font-weight: 850;
}

.scan-divider i {
  height: 1px;
  background: rgba(203, 221, 220, .78);
}

.scan-button {
  min-height: 42px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .84);
}

.scan-tip {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #7a8795;
  font-size: 12px;
  font-weight: 760;
}

.scan-shortcuts {
  color: #667085;
  text-align: right;
  white-space: nowrap;
}

.scan-shortcuts b {
  color: #344054;
  font-weight: 950;
}

.pos-result-head {
  align-self: start;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pos-result-head span,
.pos-result-head a {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.pos-result-head strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.pos-sale-stage .pos-result-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  align-self: start;
}

.pos-receipt-pro {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  border-color: rgba(203, 221, 220, .62);
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 199, 132, .05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 252, 250, .9));
}

.pos-receipt-head {
  margin-bottom: 12px;
}

.pos-receipt-head h2 {
  margin: 0;
  font-size: 22px;
}

.pos-customer-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.pos-customer-select {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  position: relative;
  border: 1px solid rgba(194, 210, 214, .76);
  border-radius: 12px;
  padding: 0 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 252, 250, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.pos-customer-select:focus-within {
  border-color: rgba(0, 151, 90, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84), 0 0 0 2px rgba(22, 199, 132, .055);
}

.pos-customer-select i {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(232, 251, 242, .96), rgba(218, 244, 235, .92));
  position: relative;
}

.pos-customer-select i::before,
.pos-customer-select i::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid var(--green);
}

.pos-customer-select i::before {
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.pos-customer-select i::after {
  bottom: 5px;
  width: 12px;
  height: 6px;
  border-radius: 10px 10px 3px 3px;
  border-bottom: 0;
}

.pos-customer-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: transparent;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  cursor: pointer;
  opacity: 0;
  font-size: 16px;
  font-weight: 900;
}

.pos-customer-select select:focus {
  border-color: transparent;
  box-shadow: none;
}

.pos-customer-select b {
  color: #667085;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

.customer-display {
  min-width: 0;
  display: grid;
  gap: 1px;
  pointer-events: none;
}

.customer-display strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-display small {
  overflow: hidden;
  color: #7a8795;
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.customer-select-row select {
  min-height: 40px;
}

.customer-select-row a,
.pos-customer-strip a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 151, 90, .16);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .58);
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
}

.pos-receipt-pro .receipt-lines {
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  margin: 10px 0 0;
  padding: 0 0 12px;
  border-top: 1px solid rgba(203, 221, 220, .42);
  border-bottom: 1px solid rgba(203, 221, 220, .5);
}

.pos-receipt-empty {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 0;
  border-top: 1px dashed rgba(203, 221, 220, .7);
  border-bottom: 1px dashed rgba(203, 221, 220, .7);
  background: transparent;
  text-align: left;
}

.pos-receipt-empty strong {
  color: #344054;
  font-size: 13px;
}

.pos-receipt-empty span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.pos-total-box {
  flex: 0 0 auto;
  margin: 10px 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pos-total-box span,
.pos-total-box label {
  min-height: 24px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #617083;
  font-size: 12px;
}

.pos-total-box input {
  width: 78px;
  min-height: 24px;
  border-radius: 7px;
  padding: 0 8px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.discount-row span {
  color: #617083;
  font-size: 12px;
  font-weight: 800;
}

.pos-total-box strong {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed rgba(203, 221, 220, .86);
  font-size: 16px;
}

.pos-total-box strong b {
  color: var(--green);
  font-size: 26px;
}

.pos-receipt-pro .payment-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.pos-receipt-pro .payment-tiles button {
  min-height: 58px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
}

.pos-receipt-pro .payment-tiles button::first-line {
  font-weight: 950;
}

.pos-receipt-pro .payment-tiles button:first-child {
  color: var(--green);
}

.pos-pay-button {
  position: relative;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 2px;
  margin-top: auto;
  border-radius: 10px;
  font-size: 20px;
  box-shadow: 0 16px 30px rgba(0, 151, 90, .22);
}

.checkout-helper {
  margin: 2px 0 6px;
  color: #7a8795;
  text-align: center;
  font-size: 11px;
  font-weight: 760;
}

.pos-pay-button span {
  font-size: 14px;
  opacity: .9;
}

.pos-pay-button kbd {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border-radius: 6px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 12px;
}

.pos-secondary-actions {
  flex: 0 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-secondary-actions .secondary-button,
.pos-secondary-actions .danger-button {
  min-height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 850;
}

.pos-cancel-button {
  background: rgba(255, 241, 242, .42);
  color: #be123c;
}

.compact-held {
  margin-top: 10px;
  padding-top: 10px;
}

.compact-held > strong {
  display: none;
}

.compact-held button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-style: solid;
  background: rgba(255, 255, 255, .58);
}

.compact-held small {
  display: block;
  color: #667085;
  font-size: 10px;
  font-weight: 820;
}

.compact-held b {
  display: block;
  margin-top: 1px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.compact-held em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.stock-command-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.stock-command-strip article {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgba(194, 210, 214, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.stock-command-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.stock-command-strip strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
}

.stock-command-strip small {
  color: #667085;
  font-size: 11px;
  font-weight: 760;
}

.stock-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.stock-main-panel,
.stock-side-card {
  border: 1px solid rgba(194, 210, 214, .86);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.stock-main-panel {
  overflow: hidden;
  overflow-x: auto;
}

.stock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(194, 210, 214, .62);
}

.stock-toolbar h2,
.stock-card-head h3 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.stock-search {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.stock-search input {
  min-height: 38px;
}

.stock-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(194, 210, 214, .62);
}

.stock-filters a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(194, 210, 214, .74);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(248, 250, 250, .74);
  color: #536273;
  text-decoration: none;
  font-size: 12px;
  font-weight: 840;
}

.stock-filters a.is-active {
  border-color: rgba(4, 120, 87, .28);
  background: #e5f5ee;
  color: var(--green);
}

.inventory-list {
  min-width: 720px;
}

.inventory-head,
.inventory-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) 150px 210px 110px 170px;
  gap: 14px;
  align-items: center;
}

.inventory-head {
  min-height: 44px;
  padding: 0 14px;
  background: rgba(248, 250, 250, .82);
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-row {
  min-height: 82px;
  padding: 12px 14px;
  border-top: 1px solid rgba(194, 210, 214, .62);
}

.inventory-product,
.inventory-price,
.inventory-stock {
  display: grid;
  gap: 3px;
}

.inventory-product strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.inventory-product span,
.inventory-price span,
.inventory-stock span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.inventory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.inventory-meta span {
  color: #344054;
  font-size: 13px;
  font-weight: 820;
}

.inventory-meta b,
.reorder-list em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
}

.inventory-meta b.is-ok,
.reorder-list em.is-ok {
  background: #e5f5ee;
  color: var(--green);
}

.inventory-meta b.is-low,
.reorder-list em.is-low {
  background: #fff5eb;
  color: #c2410c;
}

.inventory-meta b.is-out,
.reorder-list em.is-out {
  background: #fff1f2;
  color: var(--red);
}

.inventory-price strong,
.inventory-stock strong {
  color: var(--ink);
  font-size: 15px;
}

.inventory-stock strong {
  font-size: 20px;
}

.inventory-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.inventory-actions button {
  min-height: 32px;
  border: 1px solid rgba(194, 210, 214, .82);
  border-radius: 7px;
  background: rgba(255, 255, 255, .78);
  color: #344054;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.inventory-actions button:first-child {
  border-color: rgba(4, 120, 87, .24);
  color: var(--green);
}

.stock-side-panel {
  display: grid;
  gap: 10px;
}

.stock-side-card {
  padding: 12px;
}

.stock-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.stock-card-head a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(194, 210, 214, .78);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(248, 250, 250, .72);
  color: #344054;
  text-decoration: none;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.reorder-list,
.category-value-list,
.stock-timeline {
  display: grid;
  gap: 8px;
}

.reorder-list a,
.category-value-list span,
.stock-timeline article {
  min-height: 46px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(194, 210, 214, .62);
  border-radius: 8px;
  background: rgba(248, 250, 250, .74);
  color: var(--ink);
  text-decoration: none;
}

.reorder-list a {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.reorder-list strong,
.category-value-list b,
.stock-timeline b {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.reorder-list span,
.category-value-list small,
.stock-timeline span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.stock-form {
  display: grid;
  gap: 8px;
}

.stock-form div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stock-form input {
  min-height: 40px;
}

.stock-form .primary-button {
  min-height: 44px;
}

.stock-timeline article {
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
}

.stock-timeline i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #e5f5ee;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.stock-timeline i.out {
  background: #fff5eb;
  color: #c2410c;
}

.inventory-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-top: 1px solid rgba(194, 210, 214, .62);
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.inventory-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.inventory-empty span {
  font-size: 12px;
}

.inventory-empty.compact {
  min-height: 72px;
  border: 1px dashed rgba(194, 210, 214, .76);
  border-radius: 8px;
  background: rgba(248, 250, 250, .58);
}

.mini-log {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mini-log article {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(203, 221, 220, .58);
  border-radius: 7px;
  background: rgba(250, 254, 252, .72);
}

.mini-log article b {
  color: var(--ink);
  font-size: 12px;
}

.mini-log article span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.empty.small {
  min-height: 58px;
  font-size: 12px;
}

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

.schema-list code {
  min-height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(203, 221, 220, .64);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(248, 252, 250, .82);
  color: #254055;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  background:
    radial-gradient(circle at 14% 0%, rgba(16, 185, 129, .08), transparent 28%),
    linear-gradient(180deg, #fafafa 0%, #f4f6f5 44%, #f1f4f3 100%);
}

.command-shell .shell {
  width: min(1440px, calc(100% - 40px));
  min-height: 100dvh;
  padding: 20px 0 32px;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 68px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  border-right: 1px solid #ececec;
  background: #ffffff;
  box-shadow: 8px 0 22px rgba(15, 23, 42, .03);
  transition: width .22s ease;
}

.sidebar:hover {
  width: 248px;
}

.sidebar-brand {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #ffffff;
  padding: 0 0 0 4px;
  transition: width .22s ease, border-color .18s ease, box-shadow .18s ease;
}

.sidebar:hover .sidebar-brand {
  width: 176px;
  border-color: #ececec;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.sidebar-brand img {
  width: 132px;
  max-width: none;
  flex: 0 0 auto;
  transform: translateX(-2px);
  transition: transform .22s ease;
}

.sidebar:hover .sidebar-brand img {
  transform: translateX(0);
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  padding: 0 12px;
}

.sidebar-nav > span {
  padding: 16px 10px 6px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity .18s ease;
  white-space: nowrap;
}

.sidebar:hover .sidebar-nav > span {
  opacity: 1;
}

.sidebar-link {
  min-height: 40px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  border-radius: 12px;
  color: #475467;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sidebar-link:hover {
  background: #f6f8f7;
  color: #101828;
  transform: translateX(2px);
}

.sidebar-link.is-active {
  background: #ecfdf3;
  color: #047857;
}

.sidebar-link span {
  display: grid;
  place-items: center;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sidebar-link b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.sidebar:hover .sidebar-link b {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-plan {
  margin: auto 12px 18px;
  display: grid;
  gap: 5px;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 14px;
  background: #fbfbfb;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.sidebar:hover .sidebar-plan {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-plan b {
  color: #101828;
  font-size: 14px;
}

.sidebar-plan small {
  color: #667085;
  font-weight: 700;
}

.sidebar-plan a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border: 1px solid rgba(16, 185, 129, .24);
  border-radius: 12px;
  color: #047857;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.command-topbar {
  min-height: 48px;
  grid-template-columns: minmax(360px, 1fr) auto;
  gap: 14px;
  padding: 0;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.command-topbar .search input,
.command-topbar .topbar-pos-search input {
  min-height: 44px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #ffffff;
  color: #101828;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
}

.command-topbar .search input::placeholder,
.command-topbar .topbar-pos-search input::placeholder {
  color: #98a2b3;
  font-weight: 650;
}

.command-topbar .shop-control,
.command-topbar .quick-create,
.command-topbar .notification-button,
.command-topbar .profile-button {
  min-height: 44px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .032);
}

.command-topbar .shop-control {
  width: 210px;
}

.quick-create {
  min-width: 106px;
  padding: 0 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #047857) !important;
  font-weight: 850;
}

.command-topbar .notification-button,
.command-topbar .profile-button,
.command-topbar .avatar {
  width: 44px;
  height: 44px;
}

.command-dashboard {
  display: grid;
  gap: 18px;
}

.command-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.command-title span {
  color: #047857;
  font-size: 13px;
  font-weight: 860;
}

.command-title h1 {
  margin: 4px 0 0;
  color: #101828;
  font-size: clamp(30px, 2.6vw, 42px);
  letter-spacing: 0;
  line-height: .98;
}

.command-title p {
  margin: 7px 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.range-toggle {
  display: inline-flex;
  gap: 6px;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .035);
}

.range-toggle button,
.section-title button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: #667085;
  font-size: 13px;
  font-weight: 820;
}

.range-toggle button.is-active {
  background: #101828;
  color: #ffffff;
}

.business-overview {
  display: grid;
  grid-template-columns: minmax(280px, .86fr) minmax(0, 1.4fr);
  gap: 14px;
}

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

.kpi-secondary-grid .command-kpi {
  grid-column: span 2;
}

.kpi-secondary-grid .command-kpi:nth-child(4),
.kpi-secondary-grid .command-kpi:nth-child(5) {
  grid-column: span 3;
}

.command-kpi {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  color: #101828;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
  transition: transform .18s ease, box-shadow .18s ease;
}

.command-kpi:hover,
.quick-action:hover,
.workspace-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.command-kpi i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f2f4f7;
  color: #047857;
  font-style: normal;
  font-weight: 900;
}

.command-kpi span,
.command-kpi small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 740;
}

.command-kpi span {
  margin-top: 11px;
}

.command-kpi strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 22px;
  line-height: 1;
}

.command-kpi small {
  margin-top: 8px;
}

.command-kpi.dominant {
  min-height: 220px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 22%, rgba(255, 255, 255, .18), transparent 28%),
    linear-gradient(135deg, #10b981, #047857);
  box-shadow: 0 18px 42px rgba(4, 120, 87, .16);
}

.command-kpi.dominant i {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.command-kpi.dominant span {
  margin-top: 26px;
  font-size: 13px;
}

.command-kpi.dominant strong {
  margin-top: 8px;
  font-size: clamp(34px, 3vw, 46px);
}

.command-kpi.dominant small {
  font-size: 13px;
}

.command-kpi.dominant i {
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
}

.command-kpi.dominant span,
.command-kpi.dominant small,
.command-kpi.dominant strong {
  color: #ffffff;
}

.modern-sparkline {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 124px;
  height: 46px;
}

.modern-sparkline path {
  fill: none;
  stroke: #10b981;
  stroke-linecap: round;
  stroke-width: 3;
}

.dominant .modern-sparkline path {
  stroke: rgba(255, 255, 255, .78);
}

.modern-sparkline circle {
  color: #10b981;
  fill: currentColor;
}

.dominant .modern-sparkline circle {
  color: #ffffff;
}

.command-section,
.workspace-section {
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .035);
  transition: transform .18s ease, box-shadow .18s ease;
}

.command-section {
  padding: 18px;
}

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

.section-title h2 {
  margin: 0;
  color: #101828;
  font-size: 16px;
  line-height: 1;
}

.section-title a {
  color: #047857;
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
}

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

.quick-action {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #fbfbfb);
  color: #101828;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-action:hover {
  border-color: rgba(16, 185, 129, .28);
}

.quick-action.is-primary {
  border-color: rgba(16, 185, 129, .26);
  background: linear-gradient(180deg, #ecfdf3, #ffffff);
}

.quick-action.is-primary span {
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(4, 120, 87, .16);
}

.quick-action span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ecfdf3;
  color: #047857;
  font-size: 18px;
  font-weight: 900;
}

.quick-action b {
  font-size: 12px;
  font-weight: 790;
}

.command-grid-main {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1fr;
  gap: 14px;
}

.command-lower-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 14px;
}

.workspace-section {
  min-height: 300px;
  padding: 18px;
}

.activity-timeline {
  display: grid;
  gap: 0;
}

.activity-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid #f1f1f1;
}

.activity-timeline article::before {
  content: "";
  position: absolute;
  left: 72px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px #ecfdf3;
}

.activity-timeline time {
  color: #667085;
  font-size: 13px;
  font-weight: 760;
}

.activity-timeline strong,
.ai-list strong,
.task-list strong {
  display: block;
  color: #101828;
  font-size: 14px;
}

.activity-timeline span,
.ai-list span,
.task-list span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.activity-timeline em,
.task-list em {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.green { background: #ecfdf3; color: #047857; }
.orange { background: #fff7ed; color: #ea580c; }
.blue { background: #eff6ff; color: #2563eb; }
.purple { background: #f5f3ff; color: #7c3aed; }
.red { background: #fff1f2; color: #e11d48; }

.ai-list {
  display: grid;
  gap: 12px;
}

.ai-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border: 1px solid #f1f1f1;
  border-radius: 16px;
  padding: 12px;
  background: #fcfcfc;
}

.ai-list i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ecfdf3;
  color: #047857;
  font-style: normal;
  font-weight: 900;
}

.inventory-heatmap {
  display: grid;
  grid-template-columns: repeat(14, 18px);
  grid-auto-rows: 18px;
  gap: 7px;
  align-content: start;
}

.inventory-heatmap span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  transition: transform .15s ease;
}

.inventory-heatmap span:hover {
  transform: scale(1.12);
}

.inventory-heatmap .healthy,
.heatmap-legend .healthy {
  background: #10b981;
}

.inventory-heatmap .low,
.heatmap-legend .low {
  background: #f59e0b;
}

.inventory-heatmap .critical,
.heatmap-legend .critical {
  background: #e11d48;
}

.heatmap-legend {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.heatmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.heatmap-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.modern-chart {
  position: relative;
  min-height: 280px;
}

.modern-chart svg {
  width: 100%;
  height: 245px;
}

.modern-chart .area {
  fill: url(#chartFill);
}

.modern-chart .line {
  fill: none;
  stroke: #10b981;
  stroke-linecap: round;
  stroke-width: 5;
}

.modern-chart > div {
  position: absolute;
  top: 8px;
  right: 4px;
  display: grid;
  justify-items: end;
}

.modern-chart strong {
  color: #047857;
  font-size: 32px;
}

.modern-chart span {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list article {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #f1f1f1;
  border-radius: 16px;
  padding: 14px;
  background: #fcfcfc;
}

/* Compact dashboard density: make the command center feel like a real web app, not a presentation mockup. */
.command-shell .shell {
  width: min(1280px, calc(100% - 32px));
  padding: 16px 0 28px;
}

.command-topbar {
  min-height: 44px;
  margin-bottom: 14px;
}

.command-topbar .search input,
.command-topbar .topbar-pos-search input,
.command-topbar .shop-control,
.command-topbar .quick-create,
.command-topbar .notification-button,
.command-topbar .profile-button {
  min-height: 42px;
  border-radius: 12px;
}

.command-topbar .notification-button,
.command-topbar .profile-button,
.command-topbar .avatar {
  width: 42px;
  height: 42px;
}

.command-dashboard {
  gap: 14px;
}

.command-title {
  gap: 14px;
}

.command-title span {
  font-size: 12px;
}

.command-title h1 {
  font-size: clamp(26px, 2vw, 32px);
  line-height: 1.08;
}

.command-title p {
  margin-top: 5px;
  font-size: 13px;
}

.business-overview {
  grid-template-columns: minmax(280px, .76fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 12px;
}

.kpi-secondary-grid {
  gap: 12px;
}

.command-kpi {
  min-height: 96px;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .035);
}

.command-kpi i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.command-kpi span,
.command-kpi small {
  font-size: 11px;
}

.command-kpi span {
  margin-top: 9px;
}

.command-kpi strong {
  font-size: 20px;
}

.command-kpi small {
  margin-top: 6px;
}

.command-kpi.dominant {
  min-height: 168px;
  box-shadow: 0 14px 32px rgba(4, 120, 87, .14);
}

.command-kpi.dominant i {
  width: 34px;
  height: 34px;
}

.command-kpi.dominant span {
  margin-top: 18px;
  font-size: 12px;
}

.command-kpi.dominant strong {
  font-size: clamp(32px, 2.7vw, 40px);
}

.command-kpi.dominant small {
  font-size: 12px;
}

.modern-sparkline {
  right: 16px;
  bottom: 14px;
  width: 96px;
  height: 36px;
}

.command-section {
  padding: 14px;
}

.section-title {
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 15px;
}

.quick-launcher {
  gap: 10px;
}

.quick-action {
  min-height: 68px;
  border-radius: 12px;
  gap: 6px;
}

.quick-action span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  font-size: 16px;
}

.quick-action b {
  font-size: 11px;
}

.command-grid-main,
.command-lower-grid {
  gap: 12px;
}

.workspace-section {
  min-height: 260px;
  border-radius: 14px;
  padding: 16px;
}

.modern-chart {
  min-height: 220px;
}

.modern-chart svg {
  height: 205px;
}

.modern-chart strong {
  font-size: 26px;
}

/* Production dashboard density: compact SaaS layout for day-to-day use. */
.command-shell {
  background:
    linear-gradient(90deg, rgba(16, 185, 129, .055), transparent 22%),
    #f7f9f8;
}

.command-shell .shell {
  width: min(1360px, calc(100% - 36px));
  padding: 14px 0 24px;
}

.command-topbar {
  min-height: 42px;
  margin-bottom: 16px;
  gap: 12px;
}

.command-topbar .search input,
.command-topbar .topbar-pos-search input,
.command-topbar .shop-control,
.command-topbar .quick-create,
.command-topbar .notification-button,
.command-topbar .profile-button {
  min-height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .028);
}

.command-topbar .search input,
.command-topbar .topbar-pos-search input {
  font-size: 13px;
}

.command-topbar .shop-control {
  width: 190px;
}

.quick-create {
  min-width: 96px;
  padding: 0 14px;
}

.command-topbar .notification-button,
.command-topbar .profile-button,
.command-topbar .avatar {
  width: 40px;
  height: 40px;
}

.command-dashboard {
  gap: 12px;
}

.command-title {
  align-items: center;
  min-height: 52px;
  gap: 16px;
}

.command-title span {
  display: block;
  color: #079669;
  font-size: 11px;
  font-weight: 840;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.command-title h1 {
  margin-top: 2px;
  font-size: clamp(22px, 1.65vw, 28px);
  line-height: 1.1;
}

.command-title p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 680;
}

.range-toggle {
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .03);
}

.range-toggle button,
.section-title button {
  min-height: 28px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
}

.business-overview {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.kpi-secondary-grid {
  display: contents;
}

.kpi-secondary-grid .command-kpi,
.kpi-secondary-grid .command-kpi:nth-child(4),
.kpi-secondary-grid .command-kpi:nth-child(5) {
  grid-column: span 1;
}

.command-kpi {
  min-height: 104px;
  border-color: #ededed;
  border-radius: 14px;
  padding: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .028);
}

.command-kpi i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
}

.command-kpi span {
  margin-top: 8px;
  font-size: 11px;
}

.command-kpi strong {
  margin-top: 4px;
  font-size: 19px;
  letter-spacing: 0;
}

.command-kpi small {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.28;
}

.command-kpi.dominant {
  grid-column: span 2;
  min-height: 104px;
  background:
    linear-gradient(135deg, #0bbf78, #05855f);
  box-shadow: 0 10px 22px rgba(4, 120, 87, .13);
}

.command-kpi.dominant i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.command-kpi.dominant span {
  margin-top: 8px;
  font-size: 11px;
}

.command-kpi.dominant strong {
  margin-top: 4px;
  font-size: clamp(25px, 2vw, 31px);
}

.command-kpi.dominant small {
  font-size: 11px;
}

.modern-sparkline {
  right: 12px;
  bottom: 12px;
  width: 76px;
  height: 28px;
}

.modern-sparkline path {
  stroke-width: 2.5;
}

.command-section,
.workspace-section {
  border-radius: 14px;
  border-color: #ededed;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .026);
}

.command-section {
  padding: 13px 14px 14px;
}

.quick-command-section .section-title {
  margin-bottom: 10px;
}

.section-title {
  margin-bottom: 11px;
}

.section-title h2 {
  font-size: 14px;
}

.section-title a {
  font-size: 12px;
}

.quick-launcher {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
}

.quick-action {
  min-height: 58px;
  grid-template-columns: 26px 1fr;
  place-items: center stretch;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 12px;
  text-align: left;
}

.quick-action span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-size: 14px;
}

.quick-action b {
  font-size: 11px;
  line-height: 1.18;
}

.command-grid-main {
  grid-template-columns: .92fr 1.08fr .95fr;
  gap: 10px;
}

.command-lower-grid {
  gap: 10px;
}

.workspace-section {
  min-height: 220px;
  padding: 14px;
}

.activity-timeline article {
  grid-template-columns: 50px 1fr auto;
  min-height: 45px;
  gap: 10px;
}

.activity-timeline article::before {
  left: 62px;
  width: 7px;
  height: 7px;
}

.activity-timeline time {
  font-size: 12px;
}

.activity-timeline strong,
.ai-list strong,
.task-list strong {
  font-size: 12.5px;
}

.activity-timeline span,
.ai-list span,
.task-list span {
  font-size: 11px;
}

.activity-timeline em,
.task-list em {
  padding: 4px 7px;
  font-size: 10px;
}

.ai-list {
  gap: 8px;
}

.ai-list article {
  min-height: 50px;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  border-radius: 12px;
  padding: 9px;
}

.ai-list i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.modern-chart {
  min-height: 188px;
}

.modern-chart svg {
  height: 170px;
}

.modern-chart strong {
  font-size: 23px;
}

.inventory-heatmap {
  grid-template-columns: repeat(14, 14px);
  grid-auto-rows: 14px;
  gap: 5px;
}

.inventory-heatmap span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.heatmap-legend {
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
}

.task-list {
  gap: 8px;
}

.task-list article {
  min-height: 52px;
  border-radius: 12px;
  padding: 10px;
}

.sidebar {
  width: 64px;
}

.sidebar:hover {
  width: 218px;
}

.sidebar-brand {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.sidebar-brand img {
  width: 42px;
}

.sidebar-nav {
  gap: 6px;
}

.sidebar-link {
  width: calc(100% - 12px);
  min-height: 36px;
  grid-template-columns: 36px 1fr;
  border-radius: 11px;
}

.sidebar-link svg {
  width: 17px;
  height: 17px;
}

.sidebar-link b {
  font-size: 13px;
}

@media (max-width: 980px) {
  .command-shell {
    display: block;
  }

  .command-shell .shell {
    width: min(100% - 24px, 100%);
    padding: 14px 0 28px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 35;
    width: 100%;
    height: auto;
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, .88);
    overflow-x: auto;
  }

  .sidebar:hover {
    width: 100%;
  }

  .sidebar-brand {
    width: 124px;
    height: 52px;
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    padding-left: 4px;
  }

  .sidebar-brand img {
    width: 118px;
  }

  .sidebar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-width: max-content;
  }

  .sidebar-nav > span,
  .sidebar-plan {
    display: none;
  }

  .sidebar-link {
    grid-template-columns: 34px auto;
    width: auto;
    min-width: 0;
    padding: 8px 12px 8px 8px;
  }

  .sidebar-link b {
    opacity: 1;
    transform: none;
    white-space: nowrap;
  }

  .command-topbar {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px;
  }

  .command-topbar .search input {
    height: 48px;
  }

  .command-topbar .user-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .command-topbar .shop-control {
    flex: 1 1 220px;
  }

  .command-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .business-overview {
    grid-template-columns: 1fr;
  }

  .command-kpi.dominant {
    grid-column: auto;
    min-height: 220px;
  }

  .kpi-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi-secondary-grid .command-kpi,
  .kpi-secondary-grid .command-kpi:nth-child(4),
  .kpi-secondary-grid .command-kpi:nth-child(5) {
    grid-column: auto;
  }

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

  .command-grid-main,
  .command-lower-grid {
    grid-template-columns: 1fr;
  }

  .pos-title {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .pos-command-side {
    min-width: 0;
    justify-items: stretch;
  }

  .pos-mini-status {
    justify-content: flex-start;
  }

  .login,
  .workspace-grid,
  .pos-console,
  .stock-control-grid,
  .split,
  .placeholder-hero,
  .home-layout,
  .module-launcher,
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }

  .business-health-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dashboard-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-launcher {
    grid-template-rows: none;
    grid-template-areas:
      "pos"
      "stock"
      "dashboard";
  }

  .module-launcher .pos-hero {
    grid-row: auto;
    grid-area: pos;
    min-height: 180px;
  }

  .operation-card {
    grid-template-columns: 52px minmax(0, 1fr) auto 28px;
  }

  .operation-card.summary-card {
    grid-template-columns: minmax(250px, 1fr) minmax(220px, .72fr) auto;
  }

  .checkout-panel {
    position: relative;
    top: auto;
  }

  .stock-command-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stock-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-search {
    width: 100%;
  }

  .sell-console {
    min-height: 0;
  }

  .receipt-panel {
    position: relative;
  }

  .pos-register {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
  }

  .pos-sale-stage,
  .pos-receipt-pro {
    min-height: 0;
    height: auto;
  }

  .pos-sale-stage {
    min-height: 420px;
  }

  .feature-grid,
  .kpi-grid,
  .module-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .topbar .brand img {
    width: 118px;
  }

  .user-menu {
    width: 100%;
    justify-content: stretch;
  }

  .shop-control {
    width: auto;
    flex: 1 1 auto;
  }

  .home-primary {
    grid-template-rows: auto auto;
  }

  .pos-hero {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .command-shell .shell {
    width: min(100% - 16px, 100%);
    padding-top: 10px;
  }

  .sidebar {
    padding: 8px;
  }

  .sidebar-brand {
    display: none;
  }

  .sidebar-link {
    grid-template-columns: 32px;
    padding: 8px;
  }

  .sidebar-link b {
    display: none;
  }

  .command-topbar {
    border-radius: 16px;
  }

  .quick-create,
  .command-topbar .shop-control {
    min-height: 44px;
  }

  .business-overview,
  .quick-launcher {
    grid-template-columns: 1fr;
  }

  .kpi-secondary-grid {
    grid-template-columns: 1fr;
  }

  .command-kpi.dominant {
    grid-column: auto;
  }

  .quick-action {
    min-height: 88px;
    align-items: center;
    flex-direction: row;
    text-align: left;
  }

  .quick-action span {
    margin-bottom: 0;
  }

  .activity-timeline article,
  .task-list article {
    grid-template-columns: 52px 1fr;
  }

  .activity-timeline em,
  .task-list em {
    grid-column: 2;
    justify-self: start;
  }

  .login {
    padding: 24px 14px;
  }

  .login-panel {
    padding: 22px;
  }

  .feature-grid,
  .module-grid,
  .home-side-grid,
  .utility-module-grid,
  .future-module-grid,
  .roadmap-strip,
  .ops-grid,
  .dashboard-work-grid,
  .product-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

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

  .stock-command-strip,
  .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi {
    min-height: 68px;
  }

  .sparkline {
    opacity: .72;
  }

  .shell {
    width: min(100% - 20px, 1240px);
  }

  .page-title {
    display: block;
  }

  .pos-title {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .pos-title p {
    display: none;
  }

  .pos-command-search {
    min-height: 42px;
  }

  .sell-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pos-search {
    width: 100%;
  }

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

  .receipt-item-total {
    grid-column: 2;
    grid-row: 1;
  }

  .receipt-line .qty {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .pos-sale-stage {
    min-height: 360px;
  }

  .scan-orb {
    width: 112px;
    height: 112px;
  }

  .scan-orb span {
    font-size: 48px;
  }

  .pos-scan-empty h2 {
    font-size: 21px;
  }

  .pos-scan-empty p {
    font-size: 13px;
  }

  .scan-tip {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .scan-shortcuts {
    text-align: left;
    white-space: normal;
  }

  .pos-receipt-pro {
    padding: 14px;
  }

  .pos-receipt-pro .payment-tiles {
    grid-template-columns: 1fr;
  }

  .payment-tiles,
  .checkout-actions,
  .stock-form div,
  .pos-tool-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .checkout-button {
    grid-column: 1 / -1;
  }

  .dashboard-title .page-actions {
    margin-top: 12px;
  }

  .business-health-card,
  .trend-card,
  .dashboard-panel {
    padding: 14px;
  }

  .business-health-card h2,
  .trend-card h2 {
    font-size: 22px;
  }

  .trend-foot {
    grid-template-columns: 1fr;
  }

  .saas-footnote {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
    gap: 8px;
  }

  .tenant-chip {
    min-width: 74px;
    padding: 0 10px;
  }

  .tenant-chip .tenant-state {
    display: none;
  }

  .search input {
    min-height: 40px;
    padding-right: 46px;
    font-size: 13px;
  }

  .search-shortcut {
    width: 30px;
    min-width: 30px;
    font-size: 0;
  }

  .search-shortcut::after {
    content: "K";
    font-size: 12px;
  }

  .notification-button,
  .account-logout,
  .avatar {
    width: 38px;
    height: 38px;
  }

  .pos-hero {
    grid-template-columns: minmax(0, 1fr) 128px;
    min-height: 0;
    padding: 16px;
  }

  .pos-hero::before {
    inset: auto 12px 12px auto;
    width: 124px;
    height: 124px;
    max-width: none;
  }

  .hero-badge {
    margin-bottom: 12px;
  }

  .pos-hero p {
    font-size: 14px;
  }

  .pos-hero img {
    width: 128px;
    height: 108px;
    margin-top: 0;
    justify-self: end;
  }

  .hero-actions {
    gap: 6px;
  }

  .hero-cta,
  .hero-link {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .operation-card {
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 13px;
  }

  .page-actions,
  .panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-search {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .schema-list {
    grid-template-columns: 1fr;
  }

  .bill-summary input {
    width: 96px;
  }

  .operation-card.summary-card {
    grid-template-columns: 1fr 30px;
    grid-template-rows: auto auto auto;
    min-height: 0;
    padding: 14px;
  }

  .summary-metrics,
  .summary-side {
    grid-column: 1 / 3;
  }

  .summary-head {
    grid-column: 1 / 2;
  }

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

  .summary-metrics span:nth-child(odd) {
    border-left: 1px solid rgba(203, 221, 220, .66);
    padding-left: 8px;
  }

  .summary-side {
    grid-row: auto;
    width: 100%;
    border: 1px solid rgba(203, 221, 220, .5);
    padding: 10px 12px;
  }

  .summary-action {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 30px;
    min-width: 30px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .summary-action b {
    font-size: 16px;
  }

  .operation-card img {
    width: 42px;
    height: 42px;
  }

  .operation-metrics {
    grid-column: 2 / 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .operation-metrics span {
    min-width: 0;
    min-height: 44px;
    padding: 5px 6px;
  }

  .operation-metrics b {
    font-size: 12px;
  }

  .roadmap-card {
    grid-template-columns: 42px minmax(0, 1fr) 26px;
    min-height: 92px;
  }

  .roadmap-card em {
    grid-column: 2 / 3;
    justify-self: start;
    align-self: start;
    margin: 4px 0 0;
  }

  .ops-panel {
    min-height: 84px;
  }

  .home-module-card {
    min-height: 102px;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    gap: 12px;
    padding: 14px 40px 14px 14px;
  }

  .utility-module-grid .home-module-card,
  .future-module-grid .home-module-card {
    min-height: 94px;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    padding: 14px 40px 14px 14px;
  }

  .home-module-card img {
    width: 44px;
    height: 44px;
  }

  .home-module-card strong,
  .wide-module-card strong {
    font-size: 18px;
  }

  .home-module-card b {
    right: 14px;
    bottom: 14px;
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .wide-module-card {
    grid-template-columns: 52px minmax(0, 1fr) 30px;
    min-height: 72px;
    padding: 12px 14px;
    gap: 12px;
  }

  .wide-module-card img {
    width: 44px;
    height: 44px;
  }

  .wide-module-card b {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .command-grid {
    grid-template-columns: 1fr;
  }

  .command-panel {
    min-height: 0;
  }

  .profile-button span {
    display: none;
  }

  th,
  td {
    padding: 12px 10px;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1240px);
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .action-bar-wrap {
    justify-content: flex-start;
    margin-left: -2px;
    margin-right: -2px;
    padding: 0 2px 2px;
    overflow-x: auto;
  }

  .action-bar-wrap.is-inline {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    min-height: 64px;
    padding-top: 16px;
    overflow-x: auto;
  }

  .system-nav-label {
    display: none;
  }

  .action-bar {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    border-radius: 11px;
    gap: 3px;
  }

  .action-bar .nav-button,
  .action-bar .danger-button {
    min-width: max-content;
    min-height: 30px;
    padding: 0 9px;
    gap: 5px;
    font-size: 11px;
  }

  .action-bar .nav-button::before,
  .action-bar .danger-button::before {
    display: none;
  }

  .action-bar .nav-button span {
    font-size: 12px;
  }

  .action-bar .danger-button {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .action-bar .nav-button,
  .action-bar .danger-button {
    padding: 0 9px;
  }
}
