:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #647067;
  --line: #dbe2dc;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --green: #2f7d4b;
  --green-dark: #215f38;
  --teal: #177a73;
  --gold: #b98218;
  --red: #b6423c;
  --blue: #376b9e;
  --shadow: 0 18px 50px rgba(31, 48, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fg-pos-pro-page {
  --paper: #f4f8f3;
  --surface: rgba(255, 255, 255, 0.94);
  --line: #d9e6dc;
  --pink: #e989aa;
  --pink-soft: #fff0f6;
  background:
    linear-gradient(135deg, rgba(240, 248, 241, 0.98), rgba(255, 247, 251, 0.88) 48%, rgba(249, 252, 247, 0.98)),
    radial-gradient(circle at 94% 8%, rgba(233, 137, 170, 0.28), transparent 32%),
    radial-gradient(circle at 8% 12%, rgba(47, 125, 75, 0.2), transparent 34%);
  background-attachment: fixed;
}

.fg-pos-pro-android-page {
  background:
    linear-gradient(160deg, #edf8ef 0%, #ffffff 38%, #fff1f7 72%, #f7fbf4 100%),
    radial-gradient(circle at 86% 10%, rgba(233, 137, 170, 0.32), transparent 30%),
    radial-gradient(circle at 8% 10%, rgba(47, 125, 75, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(47, 125, 75, 0.04));
  background-attachment: fixed;
}

.fg-pos-pro-android-page .topbar {
  display: none;
}

.fg-pos-pro-android-page .workspace {
  padding-top: 10px;
}

.fg-pos-pro-android-page .pos-workstation-layout {
  height: calc(100dvh - 104px);
}

.fg-pos-pro-page .sidebar {
  background:
    linear-gradient(180deg, rgba(16, 33, 24, 0.96), rgba(24, 78, 47, 0.96)),
    radial-gradient(circle at 90% 0%, rgba(233, 137, 170, 0.22), transparent 34%);
}

.fg-pos-pro-page .primary-button {
  background: linear-gradient(135deg, var(--green), #2d8b57);
}

.fg-pos-pro-page .nav-item.active,
.fg-pos-pro-page .nav-item:hover {
  background: rgba(233, 137, 170, 0.16);
}

.fg-pos-pro-page .section,
.fg-pos-pro-page .kpi-card,
.fg-pos-pro-page .empty-state {
  backdrop-filter: blur(10px);
}

.fg-pos-pro-page .workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 247, 251, 0.24)),
    linear-gradient(90deg, rgba(47, 125, 75, 0.04), rgba(233, 137, 170, 0.05));
}

.fg-pos-pro-page .product-button:hover {
  border-color: var(--pink);
  box-shadow: 0 14px 34px rgba(233, 137, 170, 0.12);
}

.fg-pos-pro-page .kpi-card strong {
  font-size: clamp(1rem, 2.2vw, 1.42rem);
  letter-spacing: 0;
}

.fg-pos-pro-page .pos-sidebar-menu {
  display: grid;
  gap: 7px;
}

.fg-pos-pro-page .app-shell.pos-menu-fullscreen .pos-sidebar-menu {
  display: none;
}

.fg-pos-pro-page .app-shell.pos-menu-fullscreen .sidebar {
  overflow: hidden;
}

.fg-pos-pro-page .pos-nav-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px 0 0;
  overflow: hidden;
  border-left: 4px solid var(--menu-color);
  background: rgba(255, 255, 255, 0.055);
}

.fg-pos-pro-page .pos-nav-item:hover,
.fg-pos-pro-page .pos-nav-item.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color) 28%, rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.08));
}

.fg-pos-pro-page .pos-nav-item .pos-menu-icon {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 44px;
  color: #fff;
  background: var(--menu-color);
  font-weight: 900;
}

.fg-pos-pro-page .pos-nav-item .pos-menu-icon {
  background: var(--menu-color);
  font-size: 0.96rem;
}

.fg-pos-pro-page .pos-nav-item > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 800;
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(16, 33, 24, 0.92), rgba(28, 91, 56, 0.84)),
    radial-gradient(circle at 80% 10%, rgba(185, 130, 24, 0.25), transparent 36%),
    var(--paper);
}

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

button {
  cursor: pointer;
}

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

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  background: #102118;
  color: #eef7ef;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 4px 6px 14px;
  color: inherit;
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.brand-toggle:hover {
  opacity: 0.92;
}

.brand-logo,
.brand-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.brand-logo {
  object-fit: cover;
  background: #08100c;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-mark {
  display: grid;
  place-items: center;
  background: var(--green);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #aac3b1;
  font-size: 0.86rem;
  margin-top: 3px;
}

.sidebar-collapsed .sidebar {
  overflow: hidden;
}

.sidebar-collapsed .brand {
  justify-content: center;
  padding: 4px 0 12px;
  border-bottom: 0;
}

.sidebar-collapsed .brand div,
.sidebar-collapsed .nav-list {
  display: none;
}

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

.nav-item {
  width: 100%;
  border: 0;
  color: #dcebe0;
  background: transparent;
  border-radius: 8px;
  padding: 9px 10px;
  text-align: left;
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-sublist {
  display: grid;
  gap: 3px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-sublist-deep {
  margin: 2px 0 6px 12px;
}

.nav-parent {
  font-weight: 800;
}

.nav-child,
.nav-grandchild {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 0.84rem;
  color: #cfe0d4;
}

.nav-grandchild {
  font-size: 0.78rem;
  color: #adc6b5;
}

.nav-child.strong {
  color: #eef7ef;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
}

.nav-toggle {
  position: relative;
}

.nav-toggle > span:nth-child(2) {
  min-width: 0;
}

.nav-caret {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: #bcd1c2;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.66rem;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.login-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #08100c;
}

.login-panel h1 {
  font-size: 2rem;
}

.login-copy,
.login-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.login-commercial-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.login-activation {
  border-top: 1px solid #dce8e1;
  padding-top: 12px;
}

.login-activation summary {
  cursor: pointer;
  color: #176b49;
  font-weight: 800;
}

.login-activation[open] summary {
  margin-bottom: 14px;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.topbar-actions,
.dialog-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sync-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef3ec;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sync-status[data-status="ok"] {
  background: #e4f4e7;
  color: var(--green-dark);
}

.sync-status[data-status="warning"] {
  background: #fff3d8;
  color: #87600d;
}

.sync-status[data-status="pending"] {
  background: #edf2f7;
  color: #506173;
}

.primary-button,
.ghost-button,
.icon-button,
.danger-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button {
  color: #fff;
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

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

.icon-button {
  width: 40px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.content-panel {
  display: grid;
  gap: 18px;
}

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

.kpi-grid.compact-kpi {
  margin-bottom: 14px;
}

.kpi-card,
.section,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-card {
  padding: 18px;
  min-width: 0;
}

.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.7rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.kpi-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 18px;
}

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

.section-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

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

.data-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e6f3ea;
  color: var(--green-dark);
}

.status.warning {
  background: #fff2d7;
  color: #805400;
}

.status.draft {
  background: #e8eef7;
  color: var(--blue);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

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

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

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

.form-grid > .full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

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

.pos-workstation-layout {
  grid-template-columns: minmax(360px, 0.44fr) minmax(440px, 0.56fr);
  align-items: stretch;
  height: calc(100dvh - 196px);
  min-height: 520px;
  overflow: hidden;
}

.pos-return-layout {
  grid-template-columns: minmax(0, 1fr);
}

.pos-return-layout .pos-cart-panel {
  width: 100%;
  max-width: none;
}

.pos-launcher {
  max-width: 760px;
  margin: 24px auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.18), transparent 32%);
}

.pos-launcher-actions {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.pos-launcher-button {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-height: 82px;
  padding: 16px;
  text-align: left;
}

.pos-launcher-button strong {
  font-size: 1.2rem;
}

.pos-refresh-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 246, 0.92)),
    radial-gradient(circle at 80% 10%, rgba(233, 137, 170, 0.24), transparent 34%);
  box-shadow: 0 12px 32px rgba(31, 48, 36, 0.16);
  cursor: pointer;
  font-size: 1.22rem;
}

.pos-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pos-hero-title-row h2 {
  margin: 0;
}

.pos-refresh-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.pos-refresh-panel div:first-child {
  display: grid;
  gap: 2px;
}

.pos-refresh-panel span,
.pos-refresh-panel small {
  color: var(--muted);
  font-weight: 800;
}

.pos-refresh-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(47, 125, 75, 0.12);
}

.pos-refresh-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--pink));
  transition: width 180ms ease;
}

.pos-back-menu-row {
  display: flex;
  align-items: center;
  height: 26px;
  min-height: 26px;
  margin: 0 0 -10px;
  overflow: visible;
  position: relative;
  z-index: 8;
}

.pos-back-menu-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 34px;
  min-height: 34px;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 6px;
  padding: 2px;
  margin: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 12px rgba(31, 48, 36, 0.06);
  cursor: pointer;
}

.pos-back-menu-button span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #0f9f7a);
  font-size: 1.35rem;
  line-height: 1;
}

.pos-menu-screen {
  min-height: calc(100dvh - 120px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.14), transparent 30%);
}

.pos-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(156px, 1fr));
  gap: 12px;
}

.pos-menu-list {
  display: grid;
  gap: 9px;
}

.pos-menu-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  min-height: 58px;
  border: 1px solid rgba(12, 74, 110, 0.2);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color) 18%, #ffffff), rgba(255, 255, 255, 0.95)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 243, 0.92));
  box-shadow: 0 10px 26px rgba(31, 48, 36, 0.08);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.pos-menu-row.active {
  border-color: color-mix(in srgb, var(--menu-color) 62%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--menu-color) 20%, transparent);
}

.pos-menu-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--menu-color);
  font-weight: 900;
}

.pos-menu-icon {
  font-size: 1.28rem;
}

.pos-menu-row strong {
  align-self: center;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-menu-row small {
  align-self: center;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.pos-menu-card {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: 112px;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 243, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.18), transparent 36%);
  box-shadow: 0 14px 36px rgba(31, 48, 36, 0.08);
  cursor: pointer;
  text-align: left;
}

.pos-menu-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(47, 125, 75, 0.12);
  font-size: 1.1rem;
}

.pos-menu-card strong {
  font-size: 0.98rem;
  line-height: 1.18;
}

.pos-master-section {
  overflow: hidden;
  padding: 0;
  border-color: color-mix(in srgb, var(--menu-color, var(--green)) 20%, #ffffff);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.94)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--menu-color, var(--green)) 15%, transparent), transparent 34%);
}

.pos-master-section > .section-header {
  align-items: center;
}

.pos-master-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-master-add-button {
  min-width: 154px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--menu-color, var(--green)) 88%, #0f6b45), var(--green-dark));
  box-shadow: 0 14px 32px color-mix(in srgb, var(--menu-color, var(--green)) 20%, transparent);
}

.pos-master-table-card {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.pos-master-table-card .table-control-row {
  margin: 0;
  padding: 8px;
  border-bottom: 1px solid rgba(47, 125, 75, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.9));
}

.fg-pos-pro-page .topbar .eyebrow,
.fg-pos-pro-page .content-panel .section-header p,
.fg-pos-pro-page dialog .dialog-header .eyebrow {
  display: none;
}

.fg-pos-pro-page .pos-master-table-card .table-tool-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.fg-pos-pro-page .pos-master-table-card .table-tool-row > label {
  display: grid;
  min-width: 0;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 800;
}

.fg-pos-pro-page .pos-master-table-card .table-tool-row input {
  min-height: 34px;
  padding: 6px 9px;
}

.fg-pos-pro-page .pos-master-table-card .table-tool-actions {
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 1px;
}

.fg-pos-pro-page .table-search-mobile-actions {
  display: flex;
  gap: 5px;
}

.fg-pos-pro-page .pos-master-table-card .compact-button,
.fg-pos-pro-page .pos-master-table-card .status {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 5px 8px;
  font-size: 0.7rem;
}

@media (max-width: 760px) {
  .fg-pos-pro-page .pos-master-table-card .table-tool-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .fg-pos-pro-page .pos-master-table-card .table-tool-actions {
    justify-content: flex-start;
  }
}

.pos-master-table-card .data-table {
  margin: 0;
}

.pos-master-table-card .data-table th {
  color: #ffffff;
  background: color-mix(in srgb, var(--menu-color, var(--green)) 82%, #0f3d2a);
}

.pos-master-table-card .data-table td {
  background: rgba(255, 255, 255, 0.96);
}

.pos-master-table-card .table-actions .ghost-button,
.pos-master-table-card .table-actions .danger-button {
  min-height: 34px;
  padding: 6px 10px;
}

dialog.pos-master-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: min(92dvh, 760px);
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

dialog.pos-master-dialog::backdrop {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.18), transparent 34%),
    rgba(7, 18, 14, 0.58);
  backdrop-filter: blur(5px);
}

dialog.pos-master-dialog .dialog-body {
  display: grid;
  max-height: min(92dvh, 760px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

dialog.pos-master-dialog .dialog-header {
  color: #ffffff;
  border-bottom: 0;
  background:
    linear-gradient(135deg, var(--green-dark), #0f766e),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.38), transparent 34%);
}

dialog.pos-master-dialog .dialog-header .eyebrow,
dialog.pos-master-dialog .dialog-header p {
  color: rgba(255, 255, 255, 0.78);
}

dialog.pos-master-dialog .dialog-header .icon-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

dialog.pos-master-dialog #form-fields {
  overflow-y: auto;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(244, 248, 243, 0.96), rgba(255, 246, 250, 0.94)),
    #f7faf6;
}

dialog.pos-master-dialog .field {
  padding: 10px;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

dialog.pos-master-dialog .field label {
  color: var(--green-dark);
  font-weight: 900;
}

dialog.pos-master-dialog input,
dialog.pos-master-dialog select,
dialog.pos-master-dialog textarea {
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
}

.field-help {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

dialog.pos-master-dialog .dialog-actions {
  border-top: 1px solid rgba(47, 125, 75, 0.12);
  background: #ffffff;
}

.pos-purchase-workspace {
  display: grid;
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.12), transparent 32%);
}

.pos-purchase-header,
.pos-purchase-toolbar,
.pos-purchase-barcode-row {
  display: grid;
  gap: 10px;
  align-items: end;
}

.pos-purchase-header {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, #0f4f72, #0f766e),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.36), transparent 36%);
}

.pos-purchase-header h2,
.pos-purchase-header p {
  margin: 0;
}

.pos-purchase-header span,
.pos-purchase-header .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.pos-purchase-toolbar {
  grid-template-columns: minmax(150px, 0.26fr) minmax(220px, 1fr);
}

.pos-purchase-barcode-row {
  grid-template-columns: minmax(220px, 1fr) 52px 52px 52px 58px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.pos-purchase-toolbar label,
.pos-purchase-barcode-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.pos-purchase-toolbar input,
.pos-purchase-barcode-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.pos-purchase-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.56fr) minmax(320px, 0.44fr);
  gap: 12px;
  min-height: 460px;
}

.pos-purchase-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.pos-purchase-product-list,
.pos-purchase-cart-list {
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.pos-purchase-cart-list {
  min-height: 96px;
  max-height: none;
  margin: 6px 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.pos-purchase-product-list {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  align-content: start;
  overflow-y: auto;
}

.pos-purchase-product-row,
.pos-purchase-create-row,
.pos-purchase-cart-row {
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.07);
}

.pos-purchase-product-row,
.pos-purchase-create-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 8px;
  min-height: 102px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
}

.pos-purchase-create-row {
  border-color: rgba(233, 137, 170, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 240, 246, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.18), transparent 38%);
}

.pos-purchase-product-row:hover,
.pos-purchase-create-row:hover {
  border-color: rgba(25, 135, 84, 0.42);
  background: #f2fbf5;
}

.pos-purchase-product-row span,
.pos-purchase-create-row span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), #0f766e);
}

.pos-purchase-product-row strong,
.pos-purchase-create-row strong,
.pos-purchase-cart-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-purchase-product-row small,
.pos-purchase-create-row small,
.pos-purchase-cart-row small,
.pos-purchase-cart-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.pos-purchase-product-row b {
  font-size: 0.82rem;
}

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

.pos-purchase-cart .total-box {
  position: sticky;
  bottom: 0;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.98);
}

.pos-purchase-history {
  margin-top: 0;
}

.pos-purchase-line-modal {
  width: min(760px, calc(100vw - 28px));
}

.pos-line-qty-control {
  display: grid;
  gap: 6px;
}

.pos-line-qty-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.pos-line-qty-control > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 8px;
}

.pos-line-qty-control input {
  text-align: center;
  font-weight: 900;
}

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

.pos-chart-row {
  position: relative;
  overflow: hidden;
  min-height: 62px;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.pos-chart-row > b {
  position: absolute;
  inset: auto auto 0 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--pink));
}

.pos-chart-row > div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px;
}

.pos-chart-row span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #fff;
  background: #102118;
  font-weight: 800;
}

.pos-chart-row strong,
.pos-chart-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-report-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.pos-report-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.pos-report-card span,
.pos-report-card small,
.pos-report-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pos-report-card strong {
  display: block;
  margin-top: 2px;
}

.pos-report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.pos-report-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.pos-report-card dt,
.pos-report-card dd {
  margin: 0;
}

.pos-report-card dd {
  margin-top: 2px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.pos-launcher-button span,
.pos-device-summary span {
  color: var(--muted);
}

.pos-device-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.pos-cashier-shell {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 47, 73, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pos-cashier-topbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 3px 7px;
  color: #fff;
  background: linear-gradient(90deg, #b90f2d, #8f0d21);
}

.pos-cashier-topbar span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.pos-cashier-topbar > .icon-button:first-child {
  width: 42px;
  min-height: 32px;
  height: 32px;
  font-size: 1.3rem;
}

.admin-purpose-strip,
.admin-callout-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(16, 128, 91, 0.14);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(228, 248, 239, 0.78), rgba(255, 249, 236, 0.72));
}

.admin-purpose-strip > span,
.admin-callout-row small {
  flex: 1;
  color: var(--muted);
}

.admin-purpose-strip .table-actions {
  margin-left: auto;
}

.admin-callout-row > div {
  display: grid;
  flex: 1;
  gap: 2px;
}

.admin-callout-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 48, 36, 0.08);
}

.compact-admin-columns {
  align-items: start;
  margin-top: 14px;
}

.compact-admin-columns > div {
  min-width: 0;
}

.activity-log-legend,
.expense-category-grid,
.loyalty-template-grid,
.shift-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.activity-log-legend span,
.expense-category-grid article,
.loyalty-template-grid article,
.shift-flow-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(16, 128, 91, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.activity-log-legend span,
.expense-category-grid span,
.loyalty-template-grid small,
.shift-flow-grid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.loyalty-template-grid article > span,
.shift-flow-grid article > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(135deg, #10805b, #e09c35);
}

.admin-report-section-header,
.admin-section-clickable-header {
  width: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-report-section-header:hover,
.admin-section-clickable-header:hover {
  color: var(--green-dark);
}

.admin-report-chevron {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.admin-report-section.is-open .admin-report-chevron,
.admin-collapsible-section:not(.is-collapsed) .admin-report-chevron {
  transform: rotate(180deg);
}

.dashboard-collapsible > summary b {
  transition: transform 160ms ease;
}

.dashboard-collapsible[open] > summary b {
  transform: rotate(180deg);
}

.pos-broadcast-bell {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(16, 128, 91, 0.22);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 30px rgba(19, 65, 48, 0.2);
  cursor: pointer;
}

.pos-broadcast-bell.has-unread {
  animation: posBellPulse 1.8s ease-in-out infinite;
}

.pos-broadcast-bell b {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #d42f4f;
  font-size: 0.7rem;
}

.pos-broadcast-overlay {
  z-index: 120;
}

.pos-overlay-title-row,
.pos-overlay-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pos-overlay-meta {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.pos-notification-center {
  display: grid;
  gap: 9px;
}

.pos-notification-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.pos-notification-row > div {
  display: grid;
  gap: 2px;
}

.pos-notification-row small,
.pos-notification-row time {
  color: var(--muted);
}

.pos-notification-row.unread {
  border-color: rgba(16, 128, 91, 0.36);
  background: #effbf5;
}

@keyframes posBellPulse {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(9deg); }
  16% { transform: rotate(-9deg); }
  24% { transform: rotate(5deg); }
  32% { transform: rotate(0deg); }
}

.dashboard-chart-card {
  overflow: hidden;
  border-color: rgba(16, 128, 91, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 251, 247, 0.9)),
    radial-gradient(circle at 95% 5%, rgba(224, 156, 53, 0.13), transparent 34%);
  box-shadow: 0 18px 38px rgba(31, 72, 52, 0.1);
}

.dashboard-svg-chart {
  filter: drop-shadow(0 10px 16px rgba(18, 83, 62, 0.08));
}

@media (max-width: 900px) {
  .activity-log-legend,
  .expense-category-grid,
  .loyalty-template-grid,
  .shift-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-purpose-strip,
  .admin-callout-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .fg-pos-pro-android-page .pos-cashier-topbar {
    min-height: 34px;
    padding: 2px 6px;
  }
}

.pos-transaction-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  align-items: stretch;
  gap: 5px;
  padding: 7px;
  background: linear-gradient(90deg, #0b4f8a, #07366e);
  overflow-x: hidden;
}

.pos-transaction-strip > span,
.pos-transaction-strip > strong {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  color: #e6f6ff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
}

.pos-transaction-strip button {
  min-height: 38px;
  padding: 0 9px;
  font-size: 0.8rem;
}

.pos-strip-search {
  font-size: 1.12rem;
}

.pos-strip-field {
  display: grid;
  gap: 3px;
  min-height: 38px;
  padding: 4px 7px;
  color: #e6f6ff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.pos-strip-field input {
  min-height: 24px;
  border: 0;
  border-radius: 5px;
  padding: 2px 6px;
  color: #0f172a;
  background: #fff;
  font-weight: 800;
}

.pos-transaction-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(233, 137, 170, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 247, 250, 0.92)),
    linear-gradient(90deg, rgba(15, 132, 94, 0.08), rgba(233, 137, 170, 0.12));
}

.pos-transaction-meta label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.pos-transaction-meta input,
.pos-transaction-meta select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
}

.pos-return-invoice-trigger span {
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}

.return-invoice-search-result {
  min-height: 58px;
}

.pos-category-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 8px 0;
  padding-bottom: 3px;
}

.pos-category-strip button {
  flex: 0 0 auto;
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: #d9ecff;
  background: #094374;
  font-size: 0.74rem;
  font-weight: 800;
}

.pos-category-strip button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--green), #0e9f7a);
}

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

.pos-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
}

.product-button {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #0fb48e, #04866e);
  color: #fff;
  padding: 7px;
  display: grid;
  align-content: start;
  gap: 3px;
  overflow: hidden;
  text-align: left;
}

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

.product-button span {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-button .product-stock-line {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 900;
}

.product-button small {
  float: right;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 0.56rem;
}

.product-button strong {
  display: -webkit-box;
  min-height: 2.12em;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.08;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-button-active {
  border-color: rgba(233, 137, 170, 0.8);
  box-shadow: 0 0 0 3px rgba(233, 137, 170, 0.16);
}

.product-button[hidden] {
  display: none;
}

.fg-pos-pro-android-page .app-shell.sidebar-collapsed {
  grid-template-columns: 38px minmax(0, 1fr);
}

.fg-pos-pro-android-page .app-shell.sidebar-collapsed .sidebar {
  padding: 8px 3px;
}

.fg-pos-pro-android-page .app-shell.sidebar-collapsed .brand {
  min-height: 38px;
  padding: 4px 0;
}

.fg-pos-pro-android-page .app-shell.sidebar-collapsed .brand-logo {
  width: 30px;
  height: 30px;
}

.fg-pos-pro-android-page .product-button {
  min-height: 80px;
}

.fg-pos-pro-android-page .product-button span {
  font-size: 0.62rem;
  line-height: 1.08;
}

.fg-pos-pro-android-page .product-button .product-stock-line {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 900;
}

.fg-pos-pro-android-page .product-button strong {
  min-height: 2.16em;
}

.pos-cart-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
}

.pos-cart-panel > .section-header,
.pos-cart-panel > .pos-transaction-meta,
.pos-cart-panel > .pos-current-sale-summary,
.pos-cart-panel > .total-box {
  flex: 0 0 auto;
}

.pos-cart-panel > .pos-active-cart-list {
  flex: 1 1 auto;
  min-height: 96px;
  max-height: none;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 2px 5px 8px 0;
}

.pos-cart-panel > .pos-active-cart-list > .cart-row,
.pos-cart-panel > .pos-active-cart-list > .empty-state {
  flex: 0 0 auto;
}

.pos-cart-count {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 2px 7px;
  vertical-align: middle;
  color: #176046;
  background: #e8f5ee;
  border: 1px solid #c9e5d6;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.pos-products-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.pos-products-panel > .section-header {
  flex: 0 0 auto;
}

.pos-products-panel .pos-search-row,
.pos-products-panel .pos-category-strip {
  flex: 0 0 auto;
}

.pos-purchase-workstation {
  margin: 0 0 8px;
}

.pos-purchase-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.pos-purchase-strip > * {
  flex: 0 0 auto;
  min-width: 116px;
}

.pos-purchase-strip > strong {
  min-width: 132px;
}

.pos-purchase-strip .pos-strip-field {
  min-width: 136px;
}

.pos-purchase-strip button {
  min-width: 108px;
}

@media (max-width: 720px) {
  .fg-pos-pro-android-page .pos-purchase-return-workstation .pos-purchase-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: hidden;
  }

  .fg-pos-pro-android-page .pos-purchase-return-workstation .pos-purchase-strip > *,
  .fg-pos-pro-android-page .pos-purchase-return-workstation .pos-purchase-strip > strong,
  .fg-pos-pro-android-page .pos-purchase-return-workstation .pos-purchase-strip .pos-strip-field,
  .fg-pos-pro-android-page .pos-purchase-return-workstation .pos-purchase-strip button {
    min-width: 0;
  }

  .fg-pos-pro-android-page .pos-purchase-return-workstation .pos-purchase-strip > strong {
    overflow-wrap: anywhere;
    font-size: 0.7rem;
  }
}

.pos-purchase-layout {
  grid-template-columns: minmax(310px, 0.43fr) minmax(420px, 0.57fr);
}

.pos-purchase-cart-panel {
  min-width: 0;
}

.pos-purchase-meta {
  margin-bottom: 8px;
}

.pos-purchase-return-layout .pos-purchase-meta {
  gap: 4px;
  margin-bottom: 5px;
  padding: 6px;
}

.pos-purchase-return-layout .section-header {
  margin-bottom: 6px;
}

.pos-purchase-return-layout .section-header h2 {
  font-size: clamp(1rem, 1.55vw, 1.25rem);
}

.pos-purchase-return-layout .section-header p {
  max-width: none;
  font-size: 0.72rem;
  line-height: 1.25;
}

.pos-purchase-return-layout .pos-purchase-meta label {
  gap: 3px;
  font-size: 0.68rem;
}

.pos-purchase-return-layout .pos-purchase-meta input,
.pos-purchase-return-layout .pos-purchase-meta select,
.pos-purchase-return-layout .pos-purchase-meta textarea,
.pos-purchase-return-layout .pos-select-trigger {
  min-height: 31px;
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 0.7rem;
}

.pos-purchase-return-layout .pos-purchase-meta textarea {
  min-height: 34px;
  resize: vertical;
}

.pos-purchase-return-layout .pos-purchase-inline-actions {
  grid-template-columns: minmax(0, 1fr) repeat(3, 30px);
  gap: 3px;
}

.pos-purchase-return-layout .pos-purchase-inline-actions button {
  min-height: 31px;
  font-size: 0.72rem;
}

.pos-purchase-return-layout .pos-current-sale-summary {
  padding: 6px 8px;
  margin-bottom: 6px;
}

.pos-purchase-return-layout .pos-current-sale-summary strong {
  font-size: clamp(1.18rem, 2.6vw, 1.85rem);
}

.pos-purchase-return-layout .cart-row {
  padding: 7px 8px;
}

.pos-purchase-return-layout .pos-cart-item-main strong {
  font-size: 0.8rem;
}

.pos-purchase-return-layout .pos-cart-item-main span,
.pos-purchase-return-layout .pos-cart-item-main small {
  font-size: 0.68rem;
  line-height: 1.25;
}

.pos-purchase-return-layout .total-box {
  gap: 5px;
  padding: 8px;
}

.pos-purchase-return-layout .total-row {
  font-size: 0.76rem;
}

.pos-purchase-inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 42px);
  gap: 6px;
}

.pos-purchase-inline-actions button {
  min-width: 0;
  padding: 0;
}

.pos-select-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 900;
}

.pos-select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-select-trigger b {
  color: var(--green);
}

.pos-select-trigger:focus,
.pos-select-trigger:hover {
  border-color: rgba(25, 135, 84, 0.58);
  outline: 3px solid rgba(25, 135, 84, 0.1);
}

.pos-purchase-summary {
  margin-bottom: 6px;
}

.pos-purchase-summary strong {
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.pos-purchase-product-grid {
  min-height: 0;
  padding-bottom: 8px;
}

.pos-purchase-new-product-card {
  background:
    linear-gradient(135deg, #eab308, #f97316),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 42%);
}

.pos-current-sale-summary {
  display: grid;
  grid-template-columns: minmax(46px, auto) 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 6px 8px;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #202821, #111816);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pos-return-source-summary {
  width: 100%;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.pos-return-source-summary:hover {
  filter: brightness(1.04);
}

.pos-return-source-summary strong {
  display: grid;
  gap: 2px;
}

.pos-return-source-summary strong small,
.pos-return-source-summary strong b {
  display: block;
}

.pos-current-sale-summary div {
  display: grid;
  gap: 2px;
}

.pos-current-sale-summary span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.58rem;
  font-weight: 800;
}

.pos-current-sale-summary small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.5rem;
  font-weight: 800;
}

.pos-current-sale-summary strong {
  justify-self: end;
  font-size: clamp(1.18rem, 2.8vw, 2rem);
  line-height: 1;
  letter-spacing: 0;
}

.pos-return-source-summary strong b {
  white-space: nowrap;
  font-size: 0.96rem;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.data-table-scroll:focus-visible {
  outline: 2px solid rgba(20, 131, 78, 0.45);
  outline-offset: 2px;
}

.pos-report-table {
  min-width: 920px;
}

.pos-report-table td,
.pos-report-table th {
  vertical-align: top;
}

.report-filter-row {
  margin: 0 0 10px;
  grid-template-columns: minmax(190px, 1fr) minmax(230px, 0.42fr);
}

.pos-date-range-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 11px;
  border: 1px solid #cfdcd6;
  border-radius: 6px;
  color: #173b2e;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.pos-date-range-button:hover,
.pos-date-range-button:focus-visible {
  border-color: #15966a;
  outline: 3px solid rgba(21, 150, 106, 0.11);
}

.pos-date-range-button span {
  color: #60716b;
  font-size: 0.75rem;
  font-weight: 700;
}

.pos-date-range-button strong {
  font-size: 0.82rem;
  white-space: nowrap;
}

.pos-payment-panel.pos-action-modal.pos-date-range-modal {
  width: min(590px, calc(100vw - 28px));
}

.pos-date-range-modal .pos-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-filter-row > .pos-date-range-button {
  width: 100%;
  align-self: end;
}

.pos-date-range-modal .pos-modal-heading small {
  display: block;
  margin-top: 2px;
  color: #687a73;
  font-size: 0.76rem;
  font-weight: 500;
}

.pos-date-range-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  padding: 10px 0 16px;
}

.pos-date-range-fields label {
  display: grid;
  gap: 5px;
  color: #34463f;
  font-size: 0.82rem;
  font-weight: 700;
}

.pos-date-range-fields input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfdcd6;
  border-radius: 6px;
  background: #fff;
  color: #14231d;
}

.pos-date-range-fields > span {
  padding-bottom: 12px;
  color: #70827a;
  font-size: 0.76rem;
  font-weight: 700;
}

.pos-date-range-actions {
  justify-content: flex-end;
}

.report-section-menu-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.report-section-menu-button h2 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0;
}

.report-section-menu-button:hover h2,
.report-section-menu-button:focus-visible h2 {
  color: var(--green);
}

.pos-report-kpi {
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(25, 135, 84, 0.14);
  text-align: left;
  cursor: pointer;
}

.pos-report-kpi:hover {
  border-color: rgba(212, 166, 76, 0.42);
  box-shadow: 0 16px 28px rgba(20, 71, 49, 0.12);
  transform: translateY(-1px);
}

.pos-report-detail-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 32px));
}

.pos-report-detail-modal .table-wrap {
  max-height: 58vh;
}

.pos-invoice-detail-heading,
.pos-invoice-detail-meta,
.pos-invoice-detail-totals {
  display: grid;
  gap: 8px;
}

.pos-invoice-detail-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.pos-invoice-detail-heading > div,
.pos-invoice-detail-meta > div,
.pos-invoice-detail-totals > div {
  display: grid;
  gap: 2px;
}

.pos-invoice-detail-heading strong {
  font-size: 1.05rem;
}

.pos-invoice-detail-heading span,
.pos-invoice-detail-meta span,
.pos-invoice-detail-totals span {
  color: var(--muted);
  font-size: 0.76rem;
}

.pos-invoice-detail-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 248, 0.9);
}

.pos-invoice-detail-totals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pos-invoice-detail-totals > div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pos-invoice-detail-totals .is-total {
  border-color: rgba(25, 135, 84, 0.28);
  background: rgba(25, 135, 84, 0.08);
}

.pos-invoice-detail-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pos-invoice-detail-button:hover,
.pos-invoice-detail-button:focus-visible {
  color: var(--green);
}

@media (max-width: 720px) {
  .report-filter-row {
    grid-template-columns: 1fr;
  }

  .pos-date-range-fields {
    grid-template-columns: 1fr;
  }

  .pos-date-range-fields > span { display: none; }

  .pos-invoice-detail-meta,
  .pos-invoice-detail-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.purchase-detail-list {
  display: grid;
  gap: 8px;
  max-height: 44vh;
  overflow-y: auto;
  padding-right: 2px;
}

.purchase-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(8, 47, 73, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.purchase-detail-row span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.purchase-detail-row small {
  color: var(--muted);
}

.pos-printer-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(55, 107, 158, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.13), transparent 32%);
}

.pos-printer-heading,
.pos-printer-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.pos-printer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pos-printer-heading span,
.pos-printer-panel p {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.pos-printer-fields {
  grid-template-columns: minmax(120px, 1fr) 92px auto;
}

.pos-printer-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pos-printer-fields input,
.pos-printer-fields select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
}

.receipt-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(15, 23, 42, 0.58);
}

.receipt-preview-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, calc(100vw - 20px));
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  border-radius: 8px;
  background: #eef2f7;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.receipt-preview-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
}

.receipt-preview-toolbar span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.receipt-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.receipt-preview-scroll {
  overflow: auto;
  padding: 14px;
}

.receipt-print-area {
  width: 80mm;
  min-height: 120mm;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.receipt-paper {
  width: 72mm;
  margin: 0;
  padding: 3mm 4mm 6mm;
  box-sizing: border-box;
  color: #000;
  background: #fff;
  font-family: "Courier New", "Consolas", monospace;
  font-size: 10.5px;
  line-height: 1.26;
  white-space: pre-wrap;
  word-break: break-word;
}

.pos-search-row input {
  font-size: 1rem;
}

.pos-device-login {
  max-width: 680px;
  margin: 42px auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 241, 247, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.24), transparent 30%);
}

.pos-device-login-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.pos-device-login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.pos-device-login-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.pos-store-strip {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(233, 137, 170, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 246, 0.74));
}

.pos-store-strip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.pos-store-strip strong {
  color: var(--green-dark);
}

.pos-return-button {
  border-color: rgba(233, 137, 170, 0.44);
  background: var(--pink-soft);
}

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

.cart-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-row-clickable {
  cursor: pointer;
}

.cart-row-clickable:hover {
  border-color: rgba(25, 135, 84, 0.45);
  background: #f8fbf8;
}

.cart-row span {
  color: var(--muted);
  font-size: 0.74rem;
}

.pos-cart-item-row {
  grid-template-columns: minmax(0, 1fr) minmax(94px, auto);
  align-items: center;
  min-height: 44px;
  gap: 4px 7px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.96);
}

.pos-cart-item-main {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pos-cart-item-main strong {
  font-size: 0.74rem;
  line-height: 1.12;
}

.pos-cart-item-main span {
  font-size: 0.62rem;
  line-height: 1.15;
}

.pos-cart-item-main strong,
.pos-cart-item-main span,
.pos-cart-item-main small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pos-cart-item-main small {
  color: var(--muted);
  font-size: 0.52rem;
  line-height: 1.12;
}

.pos-cart-item-row > b {
  min-width: 0;
  white-space: nowrap;
  text-align: right;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 950;
}

.pos-cart-panel > .total-box {
  position: static;
  z-index: auto;
  margin: 0 -10px -10px;
  padding: 9px 10px 10px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(233, 137, 170, 0.28);
  box-shadow: 0 -8px 20px rgba(31, 48, 36, 0.07);
}

.pos-cart-panel > .total-box .total-row > span {
  flex: 0 0 auto;
}

.pos-cart-panel > .total-box .total-row > strong {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.pos-cart-item-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.pos-cart-item-actions button {
  min-height: 34px;
  padding: 0 10px;
}

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

.cart-edit-grid label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cart-edit-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
}

.pos-line-editor {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(76px, 0.55fr) minmax(106px, 0.75fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(25, 135, 84, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 246, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.16), transparent 32%);
  box-shadow: 0 14px 32px rgba(31, 48, 36, 0.08);
}

.pos-line-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(10, 18, 28, 0.54);
  backdrop-filter: blur(4px);
}

.pos-line-modal {
  width: min(780px, calc(100vw - 28px));
  max-height: min(690px, calc(100dvh - 28px));
  overflow-y: auto;
  border: 1px solid rgba(17, 93, 152, 0.32);
  border-radius: 8px;
  background: #f7f2f7;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.pos-line-editor-host:empty {
  display: none;
}

.pos-line-modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #0f82ac;
  border-bottom: 2px solid #1ba7d6;
  background: linear-gradient(180deg, #ffffff, #f4edf4);
}

.pos-line-modal-header strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.pos-line-modal-header .primary-button {
  width: 48px;
  min-height: 42px;
  padding: 0;
  font-size: 1.35rem;
  background: #0b9ddd;
}

.pos-line-modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #515c68;
  border-bottom: 1px solid rgba(14, 114, 160, 0.22);
  background: #f3edf3;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.pos-line-modal-tabs span {
  padding: 12px;
}

.pos-line-modal-tabs span + span {
  border-left: 1px solid rgba(14, 114, 160, 0.18);
}

.pos-line-modal-tabs .active {
  color: #2f3a44;
  border-bottom: 5px solid #16a6d9;
}

.pos-line-modal-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1fr);
  gap: 8px;
  padding: 8px 12px 0;
}

.pos-line-modal-grid label {
  display: grid;
  gap: 4px;
  color: #5f6874;
  font-size: 0.92rem;
  font-weight: 700;
}

.pos-line-modal-grid label.full {
  grid-column: 1 / -1;
}

.pos-line-modal-grid input,
.pos-line-modal-grid select {
  width: 100%;
  min-height: 40px;
  border: 2px solid #1f4f7a;
  border-radius: 4px;
  padding: 7px 9px;
  color: #17211b;
  background: #fff;
  font-weight: 800;
}

.pos-qty-stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: end;
  gap: 8px;
}

.pos-qty-stepper button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0b9ddd;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.pos-price-type {
  align-self: end;
}

.pos-line-modal-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
}

.pos-line-modal-actions button {
  min-width: 150px;
}

.pos-line-editor div,
.pos-line-editor label {
  display: grid;
  gap: 5px;
}

.pos-line-editor span {
  color: var(--muted);
  font-size: 0.76rem;
}

.pos-line-editor label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pos-line-editor input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.danger-icon {
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.2);
  background: rgba(254, 242, 242, 0.95);
}

.pos-line-editor input:focus,
.pos-transaction-meta input:focus,
.pos-transaction-meta select:focus {
  border-color: rgba(25, 135, 84, 0.58);
  outline: 3px solid rgba(25, 135, 84, 0.12);
}

.pos-payment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 155;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 34%),
    rgba(10, 18, 28, 0.52);
  backdrop-filter: blur(4px);
}

.pos-action-overlay-host:empty {
  display: none;
}

.pos-payment-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(233, 137, 170, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.94)),
    linear-gradient(90deg, rgba(15, 132, 94, 0.08), rgba(233, 137, 170, 0.14));
  box-shadow: 0 14px 32px rgba(31, 48, 36, 0.08);
}

.pos-payment-panel.pos-action-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  overflow-y: auto;
  margin-top: 0;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
}

.pos-payment-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.pos-payment-panel > div:first-child span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pos-payment-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.pos-payment-panel input,
.pos-payment-panel select,
.pos-payment-panel textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.professional-payment-modal {
  width: min(720px, calc(100vw - 24px));
  padding: 16px;
  gap: 14px;
}

.professional-payment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #dce6df;
  border-radius: 8px;
  background: #f8fbf9;
}

.professional-payment-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e4ebe6;
}

.professional-payment-summary > div:nth-child(odd) {
  border-right: 1px solid #e4ebe6;
}

.professional-payment-summary span {
  color: #526259;
  font-size: 0.78rem;
  font-weight: 750;
}

.professional-payment-summary strong {
  color: #10291d;
  font-size: 0.9rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.professional-payment-summary .grand {
  background: #123d2b;
}

.professional-payment-summary .grand span,
.professional-payment-summary .grand strong {
  color: #fff;
}

.professional-payment-summary .outstanding {
  background: #fff7ed;
}

.professional-payment-summary .outstanding strong {
  color: #9a3412;
}

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

.professional-payment-grid .full {
  grid-column: 1 / -1;
}

.professional-payment-modal .pos-payment-actions {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  padding: 12px 0 2px;
  background: rgba(255, 255, 255, 0.96);
}

.summary-report-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.summary-report-tools > span {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-report-row-link {
  border: 0;
  padding: 0;
  color: #086443;
  background: transparent;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.summary-report-row-link:hover,
.summary-report-row-link:focus-visible {
  text-decoration: underline;
}

.summary-report-detail-panel {
  width: min(1120px, calc(100vw - 24px));
}

.summary-report-detail-panel .table-wrap {
  max-height: min(66dvh, 620px);
  overflow: auto;
}

.compact-data-table tfoot th {
  position: sticky;
  bottom: 0;
  z-index: 1;
  color: #10291d;
  background: #eef8f1;
}

@media (max-width: 620px) {
  .professional-payment-modal {
    width: min(100%, calc(100vw - 14px));
    max-height: calc(100dvh - 14px);
    padding: 12px;
  }

  .professional-payment-summary,
  .professional-payment-grid {
    grid-template-columns: 1fr;
  }

  .professional-payment-summary > div:nth-child(odd) {
    border-right: 0;
  }

  .professional-payment-grid .full {
    grid-column: auto;
  }
}

.pos-payment-panel textarea {
  min-height: 82px;
  resize: vertical;
  font-weight: 700;
}

.pos-payment-panel input:focus,
.pos-payment-panel select:focus,
.pos-payment-panel textarea:focus {
  border-color: rgba(25, 135, 84, 0.58);
  outline: 3px solid rgba(25, 135, 84, 0.12);
}

.pos-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-order-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.saved-order-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.saved-order-card:hover {
  border-color: rgba(25, 135, 84, 0.42);
  background: #f2fbf5;
}

.saved-order-list span {
  display: block;
  color: var(--muted);
}

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

.saved-order-actions button {
  min-height: 36px;
  padding: 7px 10px;
}

.receipt-action-modal {
  max-width: 560px;
}

.receipt-action-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.receipt-action-summary span {
  color: var(--muted);
  font-weight: 800;
}

.receipt-action-summary strong {
  font-size: 1.35rem;
}

.return-invoice-item-list,
.product-search-overlay-list {
  display: grid;
  gap: 8px;
  max-height: min(56dvh, 460px);
  overflow-y: auto;
  padding-right: 4px;
}

.return-invoice-item,
.product-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

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

.return-invoice-item:hover,
.product-search-result:hover,
.return-invoice-item.active {
  border-color: rgba(25, 135, 84, 0.42);
  background: #f2fbf5;
}

.return-invoice-item[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.return-invoice-item strong,
.product-search-result strong {
  display: block;
  font-size: 0.92rem;
}

.return-invoice-item small,
.product-search-result small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.return-invoice-item b,
.product-search-result b {
  white-space: nowrap;
}

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

.settings-sync-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcf8;
}

.settings-sync-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.total-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.total-row.grand {
  font-size: 1.25rem;
  font-weight: 800;
}

.dashboard-chart-panel {
  min-height: 260px;
}

.dashboard-bars {
  display: grid;
  gap: 10px;
}

.dashboard-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}

.dashboard-bar-row div {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3ee;
}

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

.dashboard-bar-row small {
  grid-column: 2 / -1;
  color: var(--muted);
}

.empty-state {
  padding: 26px;
  color: var(--muted);
}

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

.foundation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

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

.foundation-card span {
  margin-top: 8px;
  color: var(--muted);
}

.tab-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  background: #edf3ee;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-strip button {
  border: 0;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.tab-strip button.active {
  color: #fff;
  background: var(--green);
}

.legalitas-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: #f6fff7;
  background: #153c28;
  border-radius: 8px;
}

.legalitas-hero-card h3 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.legalitas-hero-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #d8eadc;
  line-height: 1.6;
}

.legalitas-hero-card img {
  width: 110px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  background: #07100b;
}

.registry-cards,
.document-grid,
.business-tags {
  display: grid;
  gap: 12px;
}

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

.registry-cards article,
.document-grid a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.registry-cards span,
.document-grid span,
.document-grid small {
  display: block;
  color: var(--muted);
}

.registry-cards strong,
.document-grid strong {
  display: block;
  margin-top: 8px;
}

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

.document-grid a:hover {
  border-color: var(--green);
}

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

.business-tags span {
  min-height: 76px;
  display: flex;
  align-items: end;
  padding: 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 8px;
  font-weight: 800;
}

.business-tags span:nth-child(2) {
  background: var(--teal);
}

.business-tags span:nth-child(3) {
  background: var(--blue);
}

.business-tags span:nth-child(4) {
  background: var(--gold);
}

.warning-note {
  background: #fff8e7;
  border-color: rgba(185, 130, 24, 0.32);
}

.sales-app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 18px;
  align-items: stretch;
  color: #f8fff9;
  background: linear-gradient(135deg, #123c28, #0f6f60);
  border-color: rgba(255, 255, 255, 0.08);
}

.sales-app-hero h2 {
  max-width: 920px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.sales-app-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #dcefe1;
  line-height: 1.7;
}

.sales-app-hero .eyebrow {
  color: #e1bc65;
}

.sales-sync-card {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sales-sync-card span,
.sales-sync-card small {
  color: #dcefe1;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-actions .ghost-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.sales-app-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sales-app-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sales-search {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf6;
}

.sales-app-nav button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.sales-app-nav button:hover,
.sales-app-nav button.active {
  background: #e9f3ed;
}

.sales-app-nav button span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  border-radius: 8px;
  background: #dcebe1;
  font-size: 0.74rem;
  font-weight: 800;
}

.sales-app-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.sales-module-title {
  background: #fbfcf8;
}

.master-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.master-subnav button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.master-subnav button.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: max-content max-content minmax(220px, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.admin-toolbar input,
.table-control-row input,
.table-control-row select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
}

.table-control-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--muted);
}

.device-table td {
  vertical-align: middle;
}

.device-meta {
  display: grid;
  gap: 6px;
}

.device-meta strong {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 2px 7px;
  color: #fff;
  border-radius: 6px;
  background: var(--blue);
  font-size: 0.78rem;
}

.device-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.device-actions .status {
  border: 0;
}

.device-token-cell {
  display: grid;
  gap: 8px;
  align-items: start;
}

.device-token-value {
  color: var(--green-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.compact-button {
  width: fit-content;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.78rem;
}

.device-status-line {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.device-status-line.ready {
  background: #e4f4e7;
  color: var(--green-dark);
}

.device-status-line.needs-token {
  background: #fff3d8;
  color: #8a620d;
}

.table-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.compact-login-table {
  margin-top: 12px;
  background: #fff;
}

.compact-login-table th,
.compact-login-table td {
  font-size: 0.82rem;
}

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

.report-menu-grid article {
  min-height: 116px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.report-menu-grid strong,
.report-menu-grid span {
  display: block;
}

.report-menu-grid span {
  color: var(--muted);
  line-height: 1.5;
}

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

.report-menu-grid.compact article {
  min-height: 94px;
}

.report-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.report-check-card {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.report-check-card.is-valid {
  border-left: 4px solid var(--green);
  background: #f1f8f3;
}

.report-check-card.is-warning {
  border-left: 4px solid #d39a16;
  background: #fff8e9;
}

.report-check-card small {
  color: var(--muted);
  line-height: 1.4;
}

details.section > summary.section-header {
  cursor: pointer;
  list-style: none;
}

details.section > summary.section-header::-webkit-details-marker {
  display: none;
}

details.section:not([open]) > summary.section-header {
  margin-bottom: 0;
}

.active-report-card {
  border-color: rgba(47, 125, 75, 0.55);
  background: #f0f8f2;
}

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

.module-package-grid.compact-packages {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.module-package-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.module-package-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.module-package-grid strong {
  font-size: 1rem;
}

.module-package-grid ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

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

.integration-flow article {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf6;
}

.integration-flow article::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.integration-flow strong,
.integration-flow span {
  display: block;
}

.integration-flow span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.bar-row span {
  color: var(--muted);
  font-weight: 700;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee9;
}

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

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 18px;
  align-items: stretch;
  color: #f7fff8;
  background:
    linear-gradient(135deg, rgba(18, 70, 43, 0.94), rgba(20, 106, 91, 0.9)),
    #153c28;
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-hero h2 {
  max-width: 860px;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  line-height: 1.15;
}

.portal-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #dcefe1;
  line-height: 1.7;
}

.portal-hero .eyebrow {
  color: #d9b15d;
}

.portal-member-card {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-member-card span,
.portal-member-card small {
  color: #dcefe1;
}

.portal-member-card strong {
  font-size: 1.3rem;
}

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

.member-ledger article {
  min-height: 132px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf7;
}

.member-ledger span,
.member-ledger small {
  color: var(--muted);
}

.member-ledger strong {
  font-size: 1.35rem;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.checklist strong {
  display: block;
  margin-bottom: 2px;
}

.check-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e6f3ea;
  color: var(--green-dark);
  font-weight: 800;
}

dialog {
  width: min(720px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 25px 80px rgba(15, 32, 21, 0.22);
}

dialog::backdrop {
  background: rgba(13, 24, 18, 0.55);
}

.dialog-body {
  padding: 0;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

#form-fields {
  padding: 18px;
}

.dialog-actions {
  justify-content: end;
  padding: 14px 18px 18px;
  margin: 0;
}

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

  .sidebar {
    position: static;
  }

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

  .kpi-grid,
  .foundation-grid,
  .report-menu-grid,
  .report-menu-grid.compact,
  .module-package-grid,
  .integration-flow,
  .sales-app-layout,
  .sales-app-hero,
  .admin-toolbar,
  .member-ledger,
  .portal-hero,
  .registry-cards,
  .document-grid,
  .business-tags,
  .two-column,
  .pos-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .section-header {
    display: grid;
  }

  .nav-list,
  .form-grid,
  .product-grid,
  .kpi-grid,
  .legalitas-hero-card {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  .fg-pos-pro-android-page .app-shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .app-shell.sidebar-collapsed {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .app-shell:not(.sidebar-collapsed) {
    grid-template-columns: minmax(220px, 74vw) minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 10px 8px;
  }

  .fg-pos-pro-android-page .app-shell.sidebar-collapsed .sidebar {
    padding: 8px 3px;
  }

  .fg-pos-pro-android-page .brand {
    min-height: 58px;
    padding: 4px 2px 10px;
  }

  .fg-pos-pro-android-page .app-shell.sidebar-collapsed .brand {
    min-height: 38px;
    padding: 4px 0;
  }

  .fg-pos-pro-android-page .brand-logo {
    width: 42px;
    height: 42px;
  }

  .fg-pos-pro-android-page .app-shell.sidebar-collapsed .brand-logo {
    width: 30px;
    height: 30px;
  }

  .fg-pos-pro-android-page .workspace {
    padding: 0 10px 10px;
  }

  .fg-pos-pro-android-page .topbar {
    display: none;
  }

  .fg-pos-pro-android-page h1 {
    font-size: 1.42rem;
  }

  .fg-pos-pro-android-page .content-panel {
    gap: 8px;
    padding-top: 8px;
  }

  .fg-pos-pro-android-page .kpi-grid,
  .fg-pos-pro-android-page .two-column,
  .fg-pos-pro-android-page .product-grid,
  .fg-pos-pro-android-page .form-grid {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .kpi-card {
    padding: 12px;
  }

  .fg-pos-pro-android-page .kpi-card strong {
    font-size: clamp(0.88rem, 3.2vw, 1.18rem);
  }

  .fg-pos-pro-android-page .pos-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .fg-pos-pro-android-page .pos-menu-card {
    min-height: 86px;
    padding: 10px;
  }

  .fg-pos-pro-android-page .pos-menu-card span {
    width: 30px;
    height: 30px;
  }

  .fg-pos-pro-android-page .pos-menu-screen {
    min-height: calc(100dvh - 20px);
  }

  .fg-pos-pro-android-page .pos-menu-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 58px;
  }

  .fg-pos-pro-android-page .pos-menu-icon {
    font-size: 1.05rem;
  }

  .fg-pos-pro-android-page .pos-refresh-button {
    top: 8px;
    right: 8px;
    width: 42px;
    height: 42px;
  }

  .fg-pos-pro-android-page .pos-layout {
    grid-template-columns: minmax(300px, 0.46fr) minmax(300px, 0.54fr);
  }

  .fg-pos-pro-android-page .pos-workstation-layout {
    grid-template-columns: minmax(300px, 0.46fr) minmax(300px, 0.54fr);
    gap: 8px;
    height: calc(100dvh - 92px);
    min-height: 500px;
    overflow: hidden;
  }

  .fg-pos-pro-android-page .pos-return-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .section,
  .fg-pos-pro-android-page .kpi-card,
  .fg-pos-pro-android-page .empty-state {
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(31, 48, 36, 0.08);
  }

  .fg-pos-pro-android-page .section {
    padding: 10px;
  }

  .fg-pos-pro-android-page .section-header {
    display: grid;
    gap: 10px;
  }

  .fg-pos-pro-android-page .product-grid {
    gap: 5px;
  }

  .fg-pos-pro-android-page .pos-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  }

  .fg-pos-pro-android-page .product-button {
    min-height: 78px;
    padding: 6px;
    border-color: rgba(255, 255, 255, 0.22);
    background:
      linear-gradient(135deg, rgba(20, 184, 147, 0.98), rgba(4, 134, 110, 0.98)),
      radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 42%);
    color: #fff;
  }

  .fg-pos-pro-android-page .product-button span {
    color: rgba(255, 255, 255, 0.84);
    margin-top: 0;
    font-size: 0.54rem;
    line-height: 1.08;
  }

  .fg-pos-pro-android-page .product-button .product-stock-line {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.54rem;
    font-weight: 900;
  }

  .fg-pos-pro-android-page .product-button small {
    display: none;
  }

  .fg-pos-pro-android-page .product-button strong {
    min-height: 2.16em;
    font-size: 0.61rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .fg-pos-pro-android-page .return-invoice-item,
  .fg-pos-pro-android-page .product-search-result {
    min-height: 48px;
    padding: 8px;
  }

  .fg-pos-pro-android-page .return-invoice-item strong,
  .fg-pos-pro-android-page .product-search-result strong {
    font-size: 0.82rem;
  }

  .fg-pos-pro-android-page .return-invoice-item small,
  .fg-pos-pro-android-page .product-search-result small,
  .fg-pos-pro-android-page .return-invoice-item b,
  .fg-pos-pro-android-page .product-search-result b {
    font-size: 0.72rem;
  }

  .fg-pos-pro-android-page .pos-store-strip {
    grid-template-columns: 1fr;
    align-items: start;
    background: linear-gradient(135deg, #ffffff, #fff0f6);
  }

  .fg-pos-pro-android-page .pos-cashier-shell {
    margin: 0 0 8px;
  }

  .fg-pos-pro-android-page .pos-cashier-topbar {
    grid-template-columns: auto auto 1fr auto;
    padding: 7px 8px;
  }

  .fg-pos-pro-android-page .pos-cashier-topbar span {
    font-size: 0.76rem;
  }

  .fg-pos-pro-android-page .pos-transaction-strip {
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    overflow-x: hidden;
    align-items: stretch;
  }

  .fg-pos-pro-android-page .pos-line-editor {
    grid-template-columns: minmax(130px, 1.05fr) minmax(70px, 0.5fr) minmax(96px, 0.72fr) auto;
  }

  .fg-pos-pro-android-page .pos-line-modal {
    width: min(760px, calc(100vw - 28px));
  }

  .fg-pos-pro-android-page .pos-line-modal-grid {
    grid-template-columns: minmax(160px, 0.75fr) minmax(220px, 1fr);
  }

  .fg-pos-pro-android-page .settings-sync-grid {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .pos-transaction-meta {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-meta {
    gap: 3px;
    padding: 5px;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .section-header {
    margin-bottom: 4px;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .section-header h2 {
    font-size: 0.98rem;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .section-header p {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-meta label {
    font-size: 0.6rem;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-meta input,
  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-meta select,
  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-meta textarea,
  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-select-trigger {
    min-height: 27px;
    padding: 3px 5px;
    font-size: 0.62rem;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-meta textarea {
    min-height: 29px;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-inline-actions {
    grid-template-columns: minmax(0, 1fr) repeat(3, 27px);
    gap: 2px;
  }

  .fg-pos-pro-android-page .pos-purchase-return-layout .pos-purchase-inline-actions button {
    min-height: 27px;
    font-size: 0.64rem;
  }

  .fg-pos-pro-android-page .pos-current-sale-summary strong {
    font-size: clamp(1.05rem, 2.7vw, 1.72rem);
  }

  .fg-pos-pro-android-page .pos-current-sale-summary {
    grid-template-columns: minmax(40px, auto) minmax(0, 1fr);
    gap: 5px;
    padding: 5px 7px;
    margin-bottom: 5px;
  }

  .fg-pos-pro-android-page .pos-current-sale-summary span {
    font-size: 0.52rem;
  }

  .fg-pos-pro-android-page .pos-current-sale-summary small {
    font-size: 0.46rem;
  }

  .fg-pos-pro-android-page .pos-purchase-summary strong {
    font-size: clamp(1.02rem, 2.5vw, 1.62rem);
  }

  .fg-pos-pro-android-page .pos-cart-item-row {
    min-height: 40px;
    padding: 6px 7px;
    gap: 3px 6px;
  }

  .fg-pos-pro-android-page .pos-cart-item-main {
    gap: 1px;
  }

  .fg-pos-pro-android-page .pos-cart-item-main strong {
    font-size: 0.68rem;
  }

  .fg-pos-pro-android-page .pos-cart-item-main span {
    font-size: 0.58rem;
  }

  .fg-pos-pro-android-page .pos-cart-item-main small {
    font-size: 0.48rem;
  }

  .fg-pos-pro-android-page .pos-cart-item-row > b {
    font-size: 0.62rem;
  }

  .fg-pos-pro-android-page .pos-return-source-summary {
    min-height: 46px;
    padding: 6px 8px;
    margin-bottom: 6px;
  }

  .fg-pos-pro-android-page .pos-return-source-summary span {
    font-size: 0.66rem;
  }

  .fg-pos-pro-android-page .pos-return-source-summary small {
    font-size: 0.56rem;
  }

  .fg-pos-pro-android-page .pos-return-source-summary strong b {
    font-size: 0.76rem;
  }

  .fg-pos-pro-android-page .pos-transaction-strip .primary-button,
  .fg-pos-pro-android-page .pos-transaction-strip .ghost-button {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .fg-pos-pro-android-page .total-box {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 10px -10px -10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(233, 137, 170, 0.28);
    box-shadow: 0 -10px 28px rgba(31, 48, 36, 0.08);
    backdrop-filter: blur(14px);
  }

  .fg-pos-pro-android-page .pos-cart-panel > .total-box {
    position: static;
    z-index: auto;
    margin: 0 -10px -10px;
    backdrop-filter: none;
  }

  .fg-pos-pro-android-page .pos-printer-fields {
    grid-template-columns: 1fr 82px;
  }

  .fg-pos-pro-android-page .pos-printer-fields .primary-button {
    grid-column: 1 / -1;
  }

  .fg-pos-pro-android-page .primary-button,
  .fg-pos-pro-android-page .ghost-button,
  .fg-pos-pro-android-page .icon-button {
    min-height: 44px;
  }

  .fg-pos-pro-android-page .table-control-row {
    display: grid;
    gap: 10px;
  }

  .fg-pos-pro-android-page .data-table {
    min-width: 680px;
  }

  .fg-pos-pro-android-page dialog {
    width: min(100vw - 18px, 720px);
    max-height: 92dvh;
  }
}

@media (max-width: 430px) {
  .fg-pos-pro-android-page .app-shell {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .app-shell.sidebar-collapsed {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .app-shell:not(.sidebar-collapsed) {
    grid-template-columns: minmax(212px, 82vw) minmax(0, 1fr);
  }

  .fg-pos-pro-android-page .sidebar-collapsed .brand-logo,
  .fg-pos-pro-android-page .brand-logo {
    width: 38px;
    height: 38px;
  }

  .fg-pos-pro-android-page .app-shell.sidebar-collapsed .brand-logo {
    width: 28px;
    height: 28px;
  }

  .fg-pos-pro-android-page .nav-item {
    min-height: 42px;
    padding: 8px;
  }

  .fg-pos-pro-android-page .nav-icon {
    width: 26px;
    height: 26px;
  }

  .fg-pos-pro-android-page .pos-layout,
  .fg-pos-pro-android-page .pos-workstation-layout {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .pos-product-grid {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .pos-transaction-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fg-pos-pro-android-page .pos-transaction-meta,
  .fg-pos-pro-android-page .pos-line-editor {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .saved-order-card {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .saved-order-actions {
    justify-content: stretch;
  }

  .fg-pos-pro-android-page .saved-order-actions button {
    flex: 1;
  }

  .fg-pos-pro-android-page .pos-cart-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .fg-pos-pro-android-page .pos-purchase-toolbar,
  .fg-pos-pro-android-page .pos-purchase-layout {
    grid-template-columns: 1fr;
  }

  .fg-pos-pro-android-page .pos-purchase-barcode-row {
    grid-template-columns: minmax(0, 1fr) repeat(4, 46px);
  }

  .fg-pos-pro-android-page .pos-purchase-product-list {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    max-height: 44dvh;
  }

  .fg-pos-pro-android-page .pos-purchase-cart-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 760px) and (max-width: 1024px) {
  .fg-pos-pro-android-page .pos-workstation-layout.pos-purchase-layout {
    grid-template-columns: minmax(320px, 0.46fr) minmax(360px, 0.54fr);
    gap: 8px;
    height: calc(100dvh - 92px);
    min-height: 500px;
    overflow: hidden;
  }
}

@media (max-width: 759px) {
  .fg-pos-pro-android-page .pos-workstation-layout {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .fg-pos-pro-android-page .pos-workstation-layout .pos-cart-panel {
    height: calc(100dvh - 118px);
    min-height: 500px;
    max-height: 760px;
  }

  .fg-pos-pro-android-page .pos-workstation-layout .pos-products-panel {
    height: min(68dvh, 620px);
    min-height: 400px;
  }
}

body:not(.fg-pos-pro-page) {
  background:
    linear-gradient(135deg, rgba(239, 248, 241, 0.95), rgba(255, 255, 255, 0.96) 48%, rgba(255, 247, 250, 0.86)),
    radial-gradient(circle at 90% 7%, rgba(185, 130, 24, 0.13), transparent 30%),
    radial-gradient(circle at 8% 12%, rgba(47, 125, 75, 0.16), transparent 34%);
  background-attachment: fixed;
}

body:not(.fg-pos-pro-page) .app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
}

body:not(.fg-pos-pro-page) .sidebar {
  background:
    linear-gradient(180deg, rgba(10, 36, 25, 0.98), rgba(25, 82, 50, 0.97)),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.18), transparent 36%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 18px 0 40px rgba(12, 44, 29, 0.12);
}

body:not(.fg-pos-pro-page) .brand {
  min-height: 66px;
  padding: 6px 8px 16px;
}

body:not(.fg-pos-pro-page) .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

body:not(.fg-pos-pro-page) .nav-list {
  gap: 6px;
}

body:not(.fg-pos-pro-page) .nav-item {
  min-height: 40px;
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 750;
}

body:not(.fg-pos-pro-page) .nav-item:hover,
body:not(.fg-pos-pro-page) .nav-item.active {
  border-left-color: var(--gold);
  background:
    linear-gradient(90deg, rgba(185, 130, 24, 0.2), rgba(255, 255, 255, 0.09));
}

body:not(.fg-pos-pro-page) .nav-icon {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

body:not(.fg-pos-pro-page) .workspace {
  padding: 18px 20px 24px;
}

body:not(.fg-pos-pro-page) .topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(219, 226, 220, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(31, 48, 36, 0.08);
  backdrop-filter: blur(14px);
}

body:not(.fg-pos-pro-page) .topbar h1 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

body:not(.fg-pos-pro-page) .content-panel {
  gap: 16px;
}

body:not(.fg-pos-pro-page) .kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

body:not(.fg-pos-pro-page) .section,
body:not(.fg-pos-pro-page) .kpi-card,
body:not(.fg-pos-pro-page) .empty-state {
  border: 1px solid rgba(218, 228, 220, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 52px rgba(31, 48, 36, 0.08);
}

body:not(.fg-pos-pro-page) .kpi-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
}

body:not(.fg-pos-pro-page) .kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--gold));
}

body:not(.fg-pos-pro-page) .kpi-card strong {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  letter-spacing: 0;
}

body:not(.fg-pos-pro-page) .section {
  padding: 16px;
}

body:not(.fg-pos-pro-page) .section-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

body:not(.fg-pos-pro-page) .data-table {
  font-size: 0.9rem;
}

body:not(.fg-pos-pro-page) .data-table th {
  color: #466151;
  background: #f1f7f2;
}

body:not(.fg-pos-pro-page) .data-table td {
  color: #26352b;
}

body:not(.fg-pos-pro-page) .primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow: 0 12px 28px rgba(47, 125, 75, 0.18);
}

body:not(.fg-pos-pro-page) .ghost-button,
body:not(.fg-pos-pro-page) .icon-button {
  border-color: #d8e5db;
  background: rgba(255, 255, 255, 0.88);
}

body:not(.fg-pos-pro-page) .admin-sync-panel {
  border-color: rgba(47, 125, 75, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 246, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.12), transparent 34%);
}

body:not(.fg-pos-pro-page) .admin-sync-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 14px;
  align-items: start;
}

body:not(.fg-pos-pro-page) .admin-sync-table td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .admin-sync-status {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(47, 125, 75, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #f6fbf7, #ffffff);
}

body:not(.fg-pos-pro-page) .admin-sync-status strong {
  color: var(--green-dark);
  font-size: 1rem;
}

body:not(.fg-pos-pro-page) .admin-sync-status p,
body:not(.fg-pos-pro-page) .admin-sync-status ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

body:not(.fg-pos-pro-page) .admin-sync-status ul {
  padding-left: 18px;
}

body:not(.fg-pos-pro-page) .admin-sync-status li + li {
  margin-top: 7px;
}

body:not(.fg-pos-pro-page) .admin-sync-status small {
  color: #8a620d;
  font-weight: 700;
}

body:not(.fg-pos-pro-page) .app-shell {
  grid-template-columns: 232px minmax(0, 1fr);
}

body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}

body:not(.fg-pos-pro-page) .sidebar {
  padding: 10px 8px;
  gap: 10px;
}

body:not(.fg-pos-pro-page) .brand {
  min-height: 58px;
  padding: 4px 4px 10px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body:not(.fg-pos-pro-page) .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

body:not(.fg-pos-pro-page) .brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

body:not(.fg-pos-pro-page) .brand span {
  font-size: 0.72rem;
}

body:not(.fg-pos-pro-page) .nav-list {
  gap: 6px;
}

body:not(.fg-pos-pro-page) .nav-group,
body:not(.fg-pos-pro-page) .nav-nested {
  display: grid;
  gap: 5px;
}

body:not(.fg-pos-pro-page) .nav-sublist {
  gap: 5px;
  padding-left: 7px;
  border-left: 2px solid rgba(255, 255, 255, 0.11);
}

body:not(.fg-pos-pro-page) .nav-sublist-deep {
  margin: 0 0 3px 10px;
}

body:not(.fg-pos-pro-page) .admin-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-height: 42px;
  padding: 0 9px 0 0;
  overflow: hidden;
  border: 0;
  border-left: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

body:not(.fg-pos-pro-page) .admin-nav-item:hover,
body:not(.fg-pos-pro-page) .admin-nav-item.active {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color) 30%, rgba(255, 255, 255, 0.08)), rgba(255, 255, 255, 0.08));
}

body:not(.fg-pos-pro-page) .admin-menu-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 100%;
  min-height: 42px;
  color: #fff;
  border-radius: 0;
  background: var(--menu-color);
  font-size: 0.75rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .admin-nav-item > span:nth-child(2) {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  color: #f4fbf6;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.83rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .nav-child {
  min-height: 36px;
}

body:not(.fg-pos-pro-page) .nav-child .admin-menu-icon {
  width: 30px;
  min-height: 36px;
  font-size: 0.72rem;
}

body:not(.fg-pos-pro-page) .nav-child > span:nth-child(2) {
  font-size: 0.77rem;
}

body:not(.fg-pos-pro-page) .nav-grandchild {
  min-height: 32px;
}

body:not(.fg-pos-pro-page) .nav-grandchild .admin-menu-icon {
  width: 26px;
  min-height: 32px;
  font-size: 0.66rem;
}

body:not(.fg-pos-pro-page) .nav-grandchild > span:nth-child(2) {
  font-size: 0.72rem;
}

body:not(.fg-pos-pro-page) .nav-caret {
  align-self: center;
  margin-left: 0;
  padding: 4px 7px;
  color: #ecf8ef;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.62rem;
}

body:not(.fg-pos-pro-page) .workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: 12px 14px 18px;
}

body:not(.fg-pos-pro-page) .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
}

body:not(.fg-pos-pro-page) .topbar .eyebrow {
  margin: 0 0 3px;
  color: #607267;
  font-size: 0.68rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .topbar h1 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.74rem);
  line-height: 1.1;
}

body:not(.fg-pos-pro-page) .topbar-actions {
  gap: 7px;
}

body:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
body:not(.fg-pos-pro-page) .topbar-actions .primary-button,
body:not(.fg-pos-pro-page) .topbar-actions .icon-button {
  min-height: 36px;
  border-radius: 9px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .content-panel,
body:not(.fg-pos-pro-page) .sales-app-content {
  align-content: start;
  gap: 12px;
  min-width: 0;
}

body:not(.fg-pos-pro-page) .section,
body:not(.fg-pos-pro-page) .kpi-card,
body:not(.fg-pos-pro-page) .empty-state {
  border-radius: 10px;
}

body:not(.fg-pos-pro-page) .section {
  overflow-x: auto;
  padding: 14px;
}

body:not(.fg-pos-pro-page) .section-header {
  align-items: center;
  margin-bottom: 11px;
}

body:not(.fg-pos-pro-page) .section-header h2 {
  font-size: 1rem;
}

body:not(.fg-pos-pro-page) .section-header p {
  max-width: 72ch;
  font-size: 0.82rem;
  line-height: 1.45;
}

body:not(.fg-pos-pro-page) .kpi-grid {
  gap: 10px;
}

body:not(.fg-pos-pro-page) .kpi-card {
  min-height: 104px;
  padding: 14px 14px 14px 16px;
}

body:not(.fg-pos-pro-page) .kpi-card span,
body:not(.fg-pos-pro-page) .kpi-card small {
  font-size: 0.76rem;
}

body:not(.fg-pos-pro-page) .kpi-card strong {
  margin-top: 8px;
}

body:not(.fg-pos-pro-page) .table-control-row {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  margin: 0 0 8px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcf8, #ffffff);
}

body:not(.fg-pos-pro-page) .table-control-row label {
  display: grid;
  gap: 5px;
  color: #496252;
  font-size: 0.76rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .table-control-row input,
body:not(.fg-pos-pro-page) .table-control-row select,
body:not(.fg-pos-pro-page) .admin-toolbar input {
  min-height: 38px;
  border-radius: 9px;
  border-color: #d7e6da;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

body:not(.fg-pos-pro-page) .data-table {
  min-width: 760px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
}

body:not(.fg-pos-pro-page) .data-table th,
body:not(.fg-pos-pro-page) .data-table td {
  padding: 9px 10px;
}

body:not(.fg-pos-pro-page) .data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #19432b;
  background: linear-gradient(180deg, #eaf5ec, #f7fbf8);
  font-size: 0.68rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .data-table tbody tr:nth-child(even) td {
  background: #fbfdfb;
}

body:not(.fg-pos-pro-page) .data-table tbody tr:hover td {
  background: #eef8f0;
}

body:not(.fg-pos-pro-page) .table-actions {
  gap: 6px;
}

body:not(.fg-pos-pro-page) .table-actions .ghost-button,
body:not(.fg-pos-pro-page) .table-actions .danger-button,
body:not(.fg-pos-pro-page) .table-actions .primary-button {
  min-height: 32px;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .status {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .two-column {
  gap: 12px;
}

body:not(.fg-pos-pro-page) .report-menu-grid {
  gap: 10px;
}

body:not(.fg-pos-pro-page) .report-menu-grid article,
body:not(.fg-pos-pro-page) .foundation-card {
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, #f8fcf8);
  box-shadow: 0 12px 28px rgba(31, 48, 36, 0.06);
}

body:not(.fg-pos-pro-page) .tab-strip {
  gap: 8px;
  padding: 8px;
  border: 1px solid #dce8df;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
}

body:not(.fg-pos-pro-page) .tab-strip button,
body:not(.fg-pos-pro-page) .master-subnav button {
  min-height: 36px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) dialog {
  max-width: min(920px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(15, 35, 24, 0.28);
}

body:not(.fg-pos-pro-page) dialog::backdrop {
  background: rgba(8, 20, 13, 0.52);
  backdrop-filter: blur(4px);
}

body:not(.fg-pos-pro-page) .dialog-body {
  border: 1px solid rgba(220, 232, 223, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, #f8fcf8);
}

body:not(.fg-pos-pro-page) .dialog-header {
  margin: -20px -20px 16px;
  padding: 16px 18px;
  color: #fff;
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(135deg, #123f28, #1f7a49),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.24), transparent 36%);
}

body:not(.fg-pos-pro-page) .dialog-header .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

body:not(.fg-pos-pro-page) .dialog-header h2 {
  margin: 0;
  font-size: 1.22rem;
}

body:not(.fg-pos-pro-page) #form-fields {
  gap: 11px;
}

body:not(.fg-pos-pro-page) .field {
  gap: 5px;
}

body:not(.fg-pos-pro-page) .field label {
  color: #496252;
  font-size: 0.78rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .field input,
body:not(.fg-pos-pro-page) .field select,
body:not(.fg-pos-pro-page) .field textarea {
  min-height: 40px;
  border-radius: 9px;
  border-color: #d7e6da;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
}

body:not(.fg-pos-pro-page) .dialog-actions {
  margin-top: 8px;
}

body:not(.fg-pos-pro-page) dialog.admin-record-dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: min(92dvh, 820px);
  overflow: hidden;
  border-radius: 16px;
}

body:not(.fg-pos-pro-page) dialog.admin-record-dialog .dialog-body {
  display: grid;
  max-height: min(92dvh, 820px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body:not(.fg-pos-pro-page) dialog.admin-record-dialog #form-fields {
  overflow-y: auto;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(248, 252, 248, 0.98), rgba(255, 246, 250, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(47, 125, 75, 0.08), transparent 34%);
}

body:not(.fg-pos-pro-page) dialog.admin-record-dialog .field {
  padding: 10px;
  border: 1px solid rgba(47, 125, 75, 0.11);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
}

body:not(.fg-pos-pro-page) dialog.admin-record-dialog textarea {
  min-height: 72px;
}

body:not(.fg-pos-pro-page) .admin-form-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.14), transparent 35%);
}

body:not(.fg-pos-pro-page) .admin-form-intro span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(15, 118, 110, 0.11);
}

body:not(.fg-pos-pro-page) .admin-form-intro strong,
body:not(.fg-pos-pro-page) .admin-form-intro small {
  display: block;
}

body:not(.fg-pos-pro-page) .admin-form-intro strong {
  color: #123f28;
}

body:not(.fg-pos-pro-page) .admin-form-intro small {
  color: #52685a;
  line-height: 1.35;
}

body:not(.fg-pos-pro-page) .production-form-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
}

body:not(.fg-pos-pro-page) .production-form-progress span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dbe8de;
  border-radius: 10px;
  color: #52685a;
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 800;
}

body:not(.fg-pos-pro-page) .production-form-progress span.active {
  border-color: rgba(0, 132, 85, 0.36);
  color: #0b5738;
  background: #eaf8f0;
}

body:not(.fg-pos-pro-page) .production-form-progress b {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #087f55;
  font-size: 0.68rem;
}

body:not(.fg-pos-pro-page) .production-form-stage {
  overflow: clip;
  border: 1px solid rgba(47, 125, 75, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

body:not(.fg-pos-pro-page) .production-form-stage > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

body:not(.fg-pos-pro-page) .production-form-stage > summary::-webkit-details-marker {
  display: none;
}

body:not(.fg-pos-pro-page) .production-form-stage > summary > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #087f55;
  font-size: 0.72rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .production-form-stage > summary strong,
body:not(.fg-pos-pro-page) .production-form-stage > summary small {
  display: block;
}

body:not(.fg-pos-pro-page) .production-form-stage > summary small {
  margin-top: 2px;
  color: #647569;
  font-size: 0.73rem;
}

body:not(.fg-pos-pro-page) .production-form-stage > summary > b {
  color: #087f55;
  font-size: 0.72rem;
}

body:not(.fg-pos-pro-page) .production-form-stage-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0 11px 11px;
  border-top: 1px solid #edf3ee;
}

body:not(.fg-pos-pro-page) .production-form-stage-fields > .field {
  margin-top: 10px;
}

.production-standard-details {
  margin-top: 12px;
  border: 1px solid #dde9df;
  border-radius: 10px;
  background: #fbfdfb;
}

.production-standard-details > summary {
  padding: 10px 12px;
  cursor: pointer;
  color: #315c43;
  font-size: 0.8rem;
  font-weight: 800;
}

.production-standard-details > .data-table {
  margin: 0;
}

@media (max-width: 720px) {
  body:not(.fg-pos-pro-page) .production-form-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.fg-pos-pro-page) .production-form-progress span {
    font-size: 0.69rem;
  }

  body:not(.fg-pos-pro-page) .production-form-stage-fields {
    grid-template-columns: 1fr;
  }

  body:not(.fg-pos-pro-page) .production-form-stage > summary small {
    display: none;
  }
}

body:not(.fg-pos-pro-page) .admin-form-lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body:not(.fg-pos-pro-page) .admin-form-lookup-actions .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  border-color: rgba(15, 118, 110, 0.18);
  color: #123f28;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.admin-form-lookup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(15, 118, 110, 0.18), transparent 32%),
    rgba(7, 18, 14, 0.54);
  backdrop-filter: blur(5px);
}

.admin-form-lookup-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(760px, calc(100vw - 28px));
  max-height: min(84dvh, 720px);
  overflow: hidden;
  border: 1px solid rgba(214, 232, 222, 0.92);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 253, 249, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.14), transparent 38%);
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
}

.admin-form-lookup-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  color: #fff;
  background:
    linear-gradient(135deg, #123f28, #0f766e),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.32), transparent 34%);
}

.admin-form-lookup-head h3 {
  margin: 2px 0 4px;
  font-size: 1.08rem;
}

.admin-form-lookup-head .eyebrow,
.admin-form-lookup-head small {
  color: rgba(255, 255, 255, 0.76);
}

.admin-form-lookup-head .icon-button {
  flex: 0 0 auto;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
}

.admin-form-lookup-search {
  display: grid;
  gap: 6px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(47, 125, 75, 0.1);
}

.admin-form-lookup-search span {
  color: #496252;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-form-lookup-search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d7e6da;
  border-radius: 10px;
  color: #1f3024;
  background: #fff;
  font-weight: 800;
}

.admin-form-lookup-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  padding: 12px 15px 15px;
}

.admin-form-lookup-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 12px;
  color: #1f3024;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.76));
  cursor: pointer;
}

.admin-form-lookup-row:hover {
  border-color: rgba(15, 118, 110, 0.32);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.admin-form-lookup-row span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(15, 118, 110, 0.11);
}

.admin-form-lookup-row strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-form-lookup-row small {
  overflow: hidden;
  color: #617268;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-form-lookup-row em {
  grid-row: span 2;
  align-self: center;
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(47, 125, 75, 0.1);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .admin-form-impact {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.88), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.12), transparent 36%);
}

body:not(.fg-pos-pro-page) .admin-form-impact-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

body:not(.fg-pos-pro-page) .admin-form-impact-head > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.12);
}

body:not(.fg-pos-pro-page) .admin-form-impact-head strong,
body:not(.fg-pos-pro-page) .admin-form-impact-head small {
  display: block;
}

body:not(.fg-pos-pro-page) .admin-form-impact-head strong {
  color: #123f28;
}

body:not(.fg-pos-pro-page) .admin-form-impact-head small {
  color: #52685a;
  line-height: 1.35;
}

body:not(.fg-pos-pro-page) .admin-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body:not(.fg-pos-pro-page) .admin-impact-row {
  min-height: 86px;
  padding: 10px;
  border: 1px solid rgba(47, 125, 75, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
}

body:not(.fg-pos-pro-page) .admin-impact-row span,
body:not(.fg-pos-pro-page) .admin-impact-row strong,
body:not(.fg-pos-pro-page) .admin-impact-row small {
  display: block;
}

body:not(.fg-pos-pro-page) .admin-impact-row span {
  color: #5f7468;
  font-size: 0.72rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .admin-impact-row strong {
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: #123f28;
  font-size: 0.96rem;
}

body:not(.fg-pos-pro-page) .admin-impact-row small {
  color: #65756c;
  font-size: 0.7rem;
  line-height: 1.25;
}

body:not(.fg-pos-pro-page) .admin-form-trust {
  display: grid;
  grid-template-columns: minmax(128px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(47, 125, 75, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

body:not(.fg-pos-pro-page) .admin-form-trust.good {
  border-color: rgba(47, 125, 75, 0.22);
  box-shadow: inset 3px 0 0 rgba(47, 125, 75, 0.72);
}

body:not(.fg-pos-pro-page) .admin-form-trust.warn {
  border-color: rgba(185, 130, 24, 0.28);
  box-shadow: inset 3px 0 0 rgba(185, 130, 24, 0.78);
}

body:not(.fg-pos-pro-page) .admin-form-trust.danger {
  border-color: rgba(185, 28, 28, 0.24);
  box-shadow: inset 3px 0 0 rgba(185, 28, 28, 0.78);
}

body:not(.fg-pos-pro-page) .admin-trust-meter {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 114px;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #123f28, #1f7a49);
}

body:not(.fg-pos-pro-page) .admin-form-trust.warn .admin-trust-meter {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #7c4a03, #b98218);
}

body:not(.fg-pos-pro-page) .admin-form-trust.danger .admin-trust-meter {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #7f1d1d, #b91c1c);
}

body:not(.fg-pos-pro-page) .admin-trust-meter span,
body:not(.fg-pos-pro-page) .admin-trust-meter strong,
body:not(.fg-pos-pro-page) .admin-trust-meter small {
  display: block;
}

body:not(.fg-pos-pro-page) .admin-trust-meter span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body:not(.fg-pos-pro-page) .admin-trust-meter strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
}

body:not(.fg-pos-pro-page) .admin-trust-meter small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .admin-trust-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body:not(.fg-pos-pro-page) .admin-trust-checks span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 6px;
  align-content: start;
  min-height: 58px;
  padding: 8px;
  border-radius: 10px;
  color: #123f28;
  background: rgba(236, 253, 245, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
}

body:not(.fg-pos-pro-page) .admin-trust-checks span.bad {
  color: #7f1d1d;
  background: rgba(254, 242, 242, 0.84);
}

body:not(.fg-pos-pro-page) .admin-trust-checks b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  background: #2f7d4b;
  font-size: 0.68rem;
}

body:not(.fg-pos-pro-page) .admin-trust-checks span.bad b {
  background: #b91c1c;
}

body:not(.fg-pos-pro-page) .admin-trust-checks small {
  grid-column: 2;
  color: #607268;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.22;
}

body:not(.fg-pos-pro-page) .admin-trust-checks span.bad small {
  color: #9b2c2c;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar {
  display: none;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  padding: 12px;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar {
  position: static;
  margin-bottom: 10px;
}

body:not(.fg-pos-pro-page) .admin-full-menu-screen {
  min-height: calc(100dvh - 98px);
  padding: 14px;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 249, 0.96)),
    radial-gradient(circle at 92% 0%, rgba(185, 130, 24, 0.15), transparent 34%),
    radial-gradient(circle at 0% 12%, rgba(47, 125, 75, 0.14), transparent 34%);
}

body:not(.fg-pos-pro-page) .admin-full-menu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  padding: 18px;
  color: #fff;
  border-radius: 12px;
  background:
    linear-gradient(135deg, #123f28, #1f7a49),
    radial-gradient(circle at 95% 0%, rgba(185, 130, 24, 0.35), transparent 36%);
  box-shadow: 0 20px 46px rgba(18, 63, 40, 0.18);
}

body:not(.fg-pos-pro-page) .admin-full-menu-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

body:not(.fg-pos-pro-page) .admin-full-menu-hero h2 {
  margin: 4px 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

body:not(.fg-pos-pro-page) .admin-full-menu-hero p {
  max-width: 70ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

body:not(.fg-pos-pro-page) .admin-full-menu-stats {
  display: grid;
  justify-items: end;
  gap: 4px;
}

body:not(.fg-pos-pro-page) .admin-full-menu-stats strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

body:not(.fg-pos-pro-page) .admin-full-menu-stats span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .admin-full-menu-logo-hero {
  display: grid;
  place-items: center;
  min-height: 168px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 63, 40, 0.96), rgba(31, 122, 73, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(185, 130, 24, 0.28), transparent 42%);
  box-shadow: 0 22px 52px rgba(18, 63, 40, 0.18);
}

body:not(.fg-pos-pro-page) .admin-full-menu-logo-hero img {
  width: clamp(96px, 13vw, 148px);
  height: clamp(96px, 13vw, 148px);
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

body:not(.fg-pos-pro-page) .admin-full-menu-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:not(.fg-pos-pro-page) .admin-full-menu-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(218, 228, 220, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(31, 48, 36, 0.07);
}

body:not(.fg-pos-pro-page) .admin-full-menu-group .section-header {
  margin-bottom: 10px;
}

body:not(.fg-pos-pro-page) .admin-full-menu-list {
  display: grid;
  gap: 8px;
}

body:not(.fg-pos-pro-page) .admin-full-menu-row {
  grid-template-columns: 54px minmax(156px, 0.44fr) minmax(220px, 1fr);
  min-height: 66px;
  border-color: color-mix(in srgb, var(--menu-color) 20%, #ffffff);
}

body:not(.fg-pos-pro-page) .admin-full-menu-row strong {
  font-size: 0.9rem;
}

body:not(.fg-pos-pro-page) .admin-full-menu-row small {
  white-space: normal;
  font-size: 0.74rem;
  line-height: 1.32;
}

body:not(.fg-pos-pro-page) .dashboard-filter-panel {
  padding: 12px;
  border-color: rgba(47, 125, 75, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 246, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.14), transparent 34%);
}

body:not(.fg-pos-pro-page) .dashboard-store-filter {
  display: grid;
  grid-template-columns: minmax(180px, 0.48fr) minmax(260px, 1fr) minmax(160px, 0.3fr) auto;
  gap: 10px;
  align-items: end;
}

body:not(.fg-pos-pro-page) .dashboard-store-filter h2 {
  margin: 2px 0 0;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

body:not(.fg-pos-pro-page) .dashboard-store-buttons {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
}

body:not(.fg-pos-pro-page) .dashboard-store-buttons button,
body:not(.fg-pos-pro-page) .dashboard-date-filter input {
  min-height: 38px;
  border: 1px solid #d7e6da;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .dashboard-store-buttons button {
  padding: 7px 11px;
}

body:not(.fg-pos-pro-page) .dashboard-store-buttons button.active,
body:not(.fg-pos-pro-page) .dashboard-filter-panel .ghost-button.active {
  color: #fff;
  border-color: var(--green-dark);
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

body:not(.fg-pos-pro-page) .dashboard-date-filter {
  display: grid;
  gap: 5px;
  color: #496252;
  font-size: 0.76rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .dashboard-date-filter input {
  padding: 7px 10px;
}

body:not(.fg-pos-pro-page) .dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:not(.fg-pos-pro-page) .dashboard-chart-card {
  overflow: hidden;
}

body:not(.fg-pos-pro-page) .dashboard-svg-chart {
  width: 100%;
  min-height: 180px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, #f8fcf8);
}

body:not(.fg-pos-pro-page) .dashboard-svg-chart text {
  fill: #62736a;
  font-size: 10px;
  font-weight: 800;
}

body:not(.fg-pos-pro-page) .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

body:not(.fg-pos-pro-page) .chart-legend span,
body:not(.fg-pos-pro-page) .dashboard-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #496252;
  font-size: 0.78rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .chart-legend i,
body:not(.fg-pos-pro-page) .dashboard-donut-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

body:not(.fg-pos-pro-page) .dashboard-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:not(.fg-pos-pro-page) .dashboard-mini-chart {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: #fff;
}

body:not(.fg-pos-pro-page) .dashboard-mini-chart > strong {
  color: var(--green-dark);
  font-size: 0.9rem;
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(90px, 1fr) minmax(86px, auto);
  gap: 8px;
  align-items: center;
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact span {
  overflow: hidden;
  color: #33443a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 850;
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f1ea;
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #16a34a);
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact b {
  color: #1f3427;
  font-size: 0.72rem;
  text-align: right;
}

body:not(.fg-pos-pro-page) .dashboard-donut-layout {
  display: grid;
  grid-template-columns: minmax(148px, 0.4fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

body:not(.fg-pos-pro-page) .dashboard-donut {
  position: relative;
  width: min(190px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 18px 38px rgba(31, 48, 36, 0.1);
}

body:not(.fg-pos-pro-page) .dashboard-donut::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5eee7;
}

body:not(.fg-pos-pro-page) .dashboard-donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-size: 1.1rem;
  font-weight: 950;
}

body:not(.fg-pos-pro-page) .dashboard-donut-legend {
  display: grid;
  gap: 9px;
}

body:not(.fg-pos-pro-page) .dashboard-donut-legend b {
  margin-left: auto;
  color: #1f3427;
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  min-height: 230px;
  padding: 14px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: #fff;
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 7px;
  align-items: end;
  height: 200px;
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars span,
body:not(.fg-pos-pro-page) .dashboard-inventory-bars strong {
  text-align: center;
  font-size: 0.78rem;
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars strong {
  color: var(--green-dark);
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 10px 10px 4px 4px;
}

body:not(.fg-pos-pro-page) .dashboard-shu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body:not(.fg-pos-pro-page) {
  background:
    radial-gradient(circle at 12% 8%, rgba(47, 125, 75, 0.1), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(185, 130, 24, 0.12), transparent 28%),
    linear-gradient(135deg, #f6faf6 0%, #fbfdf9 46%, #f1f7f2 100%);
  background-attachment: fixed;
}

body:not(.fg-pos-pro-page) .content-panel {
  gap: 14px;
}

body:not(.fg-pos-pro-page) .dashboard-filter-panel,
body:not(.fg-pos-pro-page) .dashboard-chart-card,
body:not(.fg-pos-pro-page) .kpi-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(244, 251, 246, 0.58)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.72), transparent 30%);
  box-shadow:
    0 18px 46px rgba(31, 48, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

body:not(.fg-pos-pro-page) .dashboard-filter-panel::before,
body:not(.fg-pos-pro-page) .dashboard-chart-card::before,
body:not(.fg-pos-pro-page) .kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.44), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(185, 130, 24, 0.12), transparent 30%);
}

body:not(.fg-pos-pro-page) .kpi-grid {
  gap: 10px;
}

body:not(.fg-pos-pro-page) .kpi-card {
  min-height: 118px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  transform: translateZ(0);
}

body:not(.fg-pos-pro-page) .kpi-card::before {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, #16a34a, #b98218 62%, #38bdf8);
  box-shadow: 0 0 18px rgba(47, 125, 75, 0.28);
}

body:not(.fg-pos-pro-page) .kpi-card span,
body:not(.fg-pos-pro-page) .kpi-card small,
body:not(.fg-pos-pro-page) .kpi-card strong {
  position: relative;
  z-index: 1;
}

body:not(.fg-pos-pro-page) .kpi-card span {
  color: rgba(45, 67, 53, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

body:not(.fg-pos-pro-page) .kpi-card strong {
  margin-top: 8px;
  color: #10261b;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

body:not(.fg-pos-pro-page) .kpi-card small {
  color: rgba(58, 78, 64, 0.68);
  font-size: 0.74rem;
  line-height: 1.35;
}

body:not(.fg-pos-pro-page) .dashboard-store-filter {
  position: relative;
  z-index: 1;
}

body:not(.fg-pos-pro-page) .dashboard-store-filter h2 {
  color: #0d3523;
}

body:not(.fg-pos-pro-page) .dashboard-store-buttons button,
body:not(.fg-pos-pro-page) .dashboard-date-filter input,
body:not(.fg-pos-pro-page) .dashboard-filter-panel .ghost-button {
  border-color: rgba(47, 125, 75, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body:not(.fg-pos-pro-page) .dashboard-store-buttons button.active,
body:not(.fg-pos-pro-page) .dashboard-filter-panel .ghost-button.active {
  background:
    linear-gradient(135deg, rgba(15, 90, 55, 0.96), rgba(47, 125, 75, 0.92)),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.36), transparent 28%);
  box-shadow: 0 12px 24px rgba(31, 95, 56, 0.18);
}

body:not(.fg-pos-pro-page) .dashboard-chart-grid {
  gap: 10px;
}

body:not(.fg-pos-pro-page) .dashboard-chart-card {
  border-radius: 18px;
  padding: 14px;
}

body:not(.fg-pos-pro-page) .dashboard-chart-card > * {
  position: relative;
  z-index: 1;
}

body:not(.fg-pos-pro-page) .dashboard-chart-card .section-header {
  margin-bottom: 10px;
}

body:not(.fg-pos-pro-page) .dashboard-chart-card h2 {
  color: #10261b;
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}

body:not(.fg-pos-pro-page) .dashboard-chart-card p {
  color: rgba(63, 82, 69, 0.7);
}

body:not(.fg-pos-pro-page) .dashboard-svg-chart {
  min-height: 218px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(250, 255, 251, 0.74), rgba(241, 248, 243, 0.5)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.9), transparent 46%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(31, 48, 36, 0.07);
}

body:not(.fg-pos-pro-page) .chart-glass-plane {
  fill: rgba(255, 255, 255, 0.28);
  stroke: rgba(47, 125, 75, 0.08);
}

body:not(.fg-pos-pro-page) .chart-grid-line {
  stroke: rgba(47, 125, 75, 0.09);
  stroke-dasharray: 4 9;
}

body:not(.fg-pos-pro-page) .chart-zero-line {
  stroke: rgba(15, 52, 35, 0.2);
  stroke-width: 1.2;
}

body:not(.fg-pos-pro-page) .chart-dot-revenue,
body:not(.fg-pos-pro-page) .chart-dot-cost,
body:not(.fg-pos-pro-page) .chart-dot-profit {
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2;
  filter: drop-shadow(0 3px 5px rgba(31, 48, 36, 0.18));
}

body:not(.fg-pos-pro-page) .chart-dot-revenue {
  fill: #16a34a;
}

body:not(.fg-pos-pro-page) .chart-dot-cost {
  fill: #ef4444;
}

body:not(.fg-pos-pro-page) .chart-dot-profit {
  fill: #0ea5e9;
}

body:not(.fg-pos-pro-page) .area-volume-column {
  fill: rgba(47, 125, 75, 0.08);
}

body:not(.fg-pos-pro-page) .chart-legend {
  padding: 8px 10px;
  border: 1px solid rgba(47, 125, 75, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

body:not(.fg-pos-pro-page) .chart-legend span,
body:not(.fg-pos-pro-page) .dashboard-donut-legend span {
  color: rgba(33, 52, 40, 0.78);
  font-size: 0.74rem;
}

body:not(.fg-pos-pro-page) .dashboard-mini-grid {
  gap: 10px;
}

body:not(.fg-pos-pro-page) .dashboard-mini-chart,
body:not(.fg-pos-pro-page) .dashboard-inventory-bars {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(244, 250, 246, 0.48));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body:not(.fg-pos-pro-page) .dashboard-mini-chart {
  padding: 11px;
}

body:not(.fg-pos-pro-page) .dashboard-mini-chart > strong {
  color: #0f3d2a;
  font-size: 0.82rem;
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact {
  grid-template-columns: minmax(84px, 0.72fr) minmax(96px, 1fr) minmax(80px, auto);
  gap: 7px;
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact div {
  height: 12px;
  background: rgba(47, 125, 75, 0.08);
  box-shadow: inset 0 1px 2px rgba(15, 52, 35, 0.08);
}

body:not(.fg-pos-pro-page) .dashboard-bar-row.compact i {
  background:
    linear-gradient(90deg, #0f766e, #22c55e 58%, #c8a94d);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.18);
}

body:not(.fg-pos-pro-page) .dashboard-donut {
  background-blend-mode: normal;
  box-shadow:
    0 20px 44px rgba(31, 48, 36, 0.1),
    inset 8px 10px 18px rgba(255, 255, 255, 0.28),
    inset -10px -12px 20px rgba(10, 35, 23, 0.12);
}

body:not(.fg-pos-pro-page) .dashboard-donut::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 46%);
}

body:not(.fg-pos-pro-page) .dashboard-donut::after {
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 0 0 1px rgba(47, 125, 75, 0.08),
    0 10px 22px rgba(31, 48, 36, 0.08);
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars {
  min-height: 210px;
}

body:not(.fg-pos-pro-page) .dashboard-inventory-bars i {
  box-shadow:
    inset 8px 0 18px rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(31, 48, 36, 0.08);
}

body:not(.fg-pos-pro-page) .dashboard-shu-grid .kpi-card {
  min-height: 104px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(248, 252, 248, 0.58)),
    radial-gradient(circle at 95% 0%, rgba(185, 130, 24, 0.16), transparent 36%);
}

body:not(.fg-pos-pro-page) .admin-hud-system-screen {
  position: relative;
  min-height: calc(100dvh - 126px);
  padding: clamp(16px, 2vw, 28px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(125, 249, 255, 0.18);
  border-radius: 24px;
  color: #f2fffd;
  background:
    linear-gradient(100deg, rgba(3, 9, 18, 0.96), rgba(7, 26, 34, 0.92) 36%, rgba(8, 45, 45, 0.88) 70%, rgba(5, 13, 23, 0.96)),
    repeating-linear-gradient(90deg, rgba(125, 249, 255, 0.05) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(125, 249, 255, 0.04) 0 1px, transparent 1px 54px);
  box-shadow:
    0 34px 90px rgba(1, 8, 12, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -48px 120px rgba(47, 125, 75, 0.16);
}

body:not(.fg-pos-pro-page) .admin-hud-system-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 75% 28%, rgba(94, 234, 212, 0.24), transparent 26%),
    radial-gradient(circle at 32% 45%, rgba(56, 189, 248, 0.16), transparent 24%),
    radial-gradient(circle at 12% 70%, rgba(185, 130, 24, 0.18), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 26% 74%, rgba(255, 255, 255, 0.06));
}

body:not(.fg-pos-pro-page) .admin-hud-system-screen::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -2;
  border: 1px solid rgba(125, 249, 255, 0.11);
  border-radius: 20px;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(125, 249, 255, 0.07) 15% 15.2%, transparent 15.2% 84.8%, rgba(125, 249, 255, 0.07) 84.8% 85%, transparent 85%),
    linear-gradient(0deg, transparent 0 20%, rgba(125, 249, 255, 0.05) 20% 20.25%, transparent 20.25% 79.75%, rgba(125, 249, 255, 0.05) 79.75% 80%, transparent 80%);
}

body:not(.fg-pos-pro-page) .admin-system-backdrop,
body:not(.fg-pos-pro-page) .admin-system-backdrop span {
  position: absolute;
  pointer-events: none;
}

body:not(.fg-pos-pro-page) .admin-system-backdrop {
  inset: 0;
  z-index: -1;
}

body:not(.fg-pos-pro-page) .system-grid-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(125, 249, 255, 0.72), rgba(185, 130, 24, 0.46), transparent);
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.26);
}

body:not(.fg-pos-pro-page) .line-one {
  top: 27%;
  left: 12%;
  width: 78%;
}

body:not(.fg-pos-pro-page) .line-two {
  top: 48%;
  left: 20%;
  width: 66%;
}

body:not(.fg-pos-pro-page) .line-three {
  top: 68%;
  left: 8%;
  width: 86%;
}

body:not(.fg-pos-pro-page) .system-orbit {
  border: 1px solid rgba(125, 249, 255, 0.13);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(125, 249, 255, 0.07), 0 0 22px rgba(125, 249, 255, 0.08);
}

body:not(.fg-pos-pro-page) .orbit-one {
  top: 8%;
  right: 9%;
  width: 220px;
  height: 220px;
}

body:not(.fg-pos-pro-page) .orbit-two {
  bottom: -40px;
  left: 5%;
  width: 260px;
  height: 260px;
}

body:not(.fg-pos-pro-page) .orbit-three {
  top: 33%;
  left: 42%;
  width: 310px;
  height: 310px;
  opacity: 0.55;
}

body:not(.fg-pos-pro-page) .system-scanline {
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(125, 249, 255, 0.08), transparent);
  animation: adminHudScan 8s ease-in-out infinite;
}

body:not(.fg-pos-pro-page) .admin-system-command-wall {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(280px, 1fr);
  align-items: center;
  min-height: clamp(230px, 32vw, 360px);
  margin-bottom: 18px;
}

body:not(.fg-pos-pro-page) .admin-system-persona {
  position: relative;
  height: 100%;
  min-height: 220px;
  opacity: 0.58;
  filter: drop-shadow(0 0 28px rgba(125, 249, 255, 0.16));
}

body:not(.fg-pos-pro-page) .admin-system-persona::before,
body:not(.fg-pos-pro-page) .admin-system-persona::after,
body:not(.fg-pos-pro-page) .admin-system-persona span {
  content: "";
  position: absolute;
  display: block;
}

body:not(.fg-pos-pro-page) .admin-system-persona::before {
  left: 22%;
  bottom: 6%;
  width: 118px;
  height: 170px;
  border-radius: 52px 52px 16px 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(125, 249, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  clip-path: polygon(30% 0, 70% 0, 86% 18%, 78% 62%, 100% 100%, 0 100%, 22% 62%, 14% 18%);
}

body:not(.fg-pos-pro-page) .admin-system-persona::after {
  left: 39%;
  top: 12%;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

body:not(.fg-pos-pro-page) .admin-system-persona span {
  left: 62%;
  top: 35%;
  width: 156px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.36), rgba(125, 249, 255, 0.2), transparent);
  transform: rotate(-12deg);
  transform-origin: left center;
}

body:not(.fg-pos-pro-page) .admin-system-core {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
}

body:not(.fg-pos-pro-page) .admin-system-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(214px, 26vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, rgba(125, 249, 255, 0.12), rgba(125, 249, 255, 0.95) 12%, transparent 22%, rgba(185, 130, 24, 0.9) 35%, transparent 49%, rgba(34, 197, 94, 0.84) 64%, rgba(125, 249, 255, 0.12) 100%),
    radial-gradient(circle, rgba(15, 118, 110, 0.18), rgba(2, 8, 13, 0.3) 60%, transparent 61%);
  box-shadow:
    0 0 0 1px rgba(125, 249, 255, 0.16),
    0 0 54px rgba(45, 212, 191, 0.2),
    inset 0 0 40px rgba(125, 249, 255, 0.18);
}

body:not(.fg-pos-pro-page) .admin-system-ring::before,
body:not(.fg-pos-pro-page) .admin-system-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body:not(.fg-pos-pro-page) .admin-system-ring::before {
  inset: 12px;
  border: 2px dashed rgba(211, 255, 247, 0.42);
  animation: adminHudSpin 30s linear infinite;
}

body:not(.fg-pos-pro-page) .admin-system-ring::after {
  inset: 34px;
  border: 1px solid rgba(125, 249, 255, 0.24);
  box-shadow: inset 0 0 24px rgba(125, 249, 255, 0.14);
}

body:not(.fg-pos-pro-page) .admin-system-ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(125, 249, 255, 0.24), transparent 40%),
    linear-gradient(145deg, rgba(3, 33, 30, 0.94), rgba(2, 9, 15, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -24px 42px rgba(5, 14, 18, 0.42);
}

body:not(.fg-pos-pro-page) .admin-system-ring-inner img {
  width: clamp(48px, 6vw, 74px);
  height: clamp(48px, 6vw, 74px);
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(211, 255, 247, 0.42);
}

body:not(.fg-pos-pro-page) .admin-system-ring-inner strong {
  color: #e9fffb;
  font-size: clamp(1rem, 1.7vw, 1.4rem);
  line-height: 1.05;
}

body:not(.fg-pos-pro-page) .admin-system-ring-inner span {
  max-width: 132px;
  color: rgba(202, 255, 246, 0.72);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
}

body:not(.fg-pos-pro-page) .admin-system-core-status {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

body:not(.fg-pos-pro-page) .admin-system-core-status span {
  min-width: 54px;
  padding: 7px 12px;
  border: 1px solid rgba(125, 249, 255, 0.24);
  border-radius: 999px;
  color: #d9fffa;
  background: rgba(2, 20, 24, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

body:not(.fg-pos-pro-page) .admin-hud-system-groups {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group {
  border-color: color-mix(in srgb, var(--group-color, #67e8f9) 30%, rgba(255, 255, 255, 0.12));
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(5, 24, 30, 0.72), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--group-color, #67e8f9) 18%, transparent), transparent 34%);
  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .section-header h2 {
  color: #effffb;
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .section-header p {
  color: rgba(216, 255, 248, 0.68);
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .status {
  color: #dbfffa;
  background: rgba(125, 249, 255, 0.12);
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-list {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row {
  grid-template-columns: 42px minmax(0, 0.9fr) minmax(0, 1.25fr);
  min-height: 58px;
  border-color: color-mix(in srgb, var(--menu-color) 38%, rgba(255, 255, 255, 0.14));
  color: #effffb;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color) 18%, rgba(5, 24, 30, 0.64)), rgba(4, 20, 28, 0.56)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.12);
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row:hover,
body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row:focus-visible {
  border-color: rgba(255, 227, 143, 0.72);
  outline: 0;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--menu-color) 18%, transparent),
    0 16px 30px rgba(0, 0, 0, 0.2);
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .pos-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.24), transparent 36%),
    var(--menu-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--menu-color) 30%, transparent);
  font-size: 0.72rem;
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row strong {
  color: #f5fffc;
  font-size: 0.78rem;
}

body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row small {
  color: rgba(216, 255, 248, 0.64);
  font-size: 0.66rem;
}

body:not(.fg-pos-pro-page) .admin-command-center {
  position: relative;
  display: grid;
  min-height: 380px;
  padding: 26px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(114, 255, 221, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(5, 14, 18, 0.96), rgba(8, 42, 33, 0.94) 46%, rgba(12, 29, 30, 0.96)),
    repeating-linear-gradient(90deg, rgba(114, 255, 221, 0.06) 0 1px, transparent 1px 52px),
    repeating-linear-gradient(0deg, rgba(114, 255, 221, 0.05) 0 1px, transparent 1px 52px);
  box-shadow:
    0 26px 70px rgba(4, 18, 12, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -24px 70px rgba(47, 125, 75, 0.13);
}

body:not(.fg-pos-pro-page) .admin-command-center::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 48%, rgba(45, 212, 191, 0.24), transparent 25%),
    radial-gradient(circle at 18% 22%, rgba(45, 212, 191, 0.12), transparent 18%),
    radial-gradient(circle at 86% 24%, rgba(56, 189, 248, 0.14), transparent 18%),
    radial-gradient(circle at 82% 84%, rgba(185, 130, 24, 0.18), transparent 20%);
}

body:not(.fg-pos-pro-page) .admin-command-center::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: -1;
  border: 1px solid rgba(114, 255, 221, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(114, 255, 221, 0.08) 18% 18.25%, transparent 18.25% 81.75%, rgba(114, 255, 221, 0.08) 81.75% 82%, transparent 82%),
    linear-gradient(0deg, transparent 0 26%, rgba(114, 255, 221, 0.07) 26% 26.3%, transparent 26.3% 73.7%, rgba(114, 255, 221, 0.07) 73.7% 74%, transparent 74%);
}

body:not(.fg-pos-pro-page) .admin-command-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body:not(.fg-pos-pro-page) .hud-line {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(103, 232, 249, 0.68), rgba(185, 130, 24, 0.5), transparent);
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.28);
}

body:not(.fg-pos-pro-page) .hud-line-a {
  top: 33%;
  left: 16%;
  width: 68%;
}

body:not(.fg-pos-pro-page) .hud-line-b {
  top: 58%;
  left: 12%;
  width: 76%;
}

body:not(.fg-pos-pro-page) .hud-line-c {
  top: 45%;
  left: 28%;
  width: 44%;
  transform: rotate(90deg);
}

body:not(.fg-pos-pro-page) .hud-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(114, 255, 221, 0.1), transparent);
  transform: translateY(-72%);
  animation: adminHudScan 7s ease-in-out infinite;
}

body:not(.fg-pos-pro-page) .admin-command-touch {
  position: absolute;
  left: 22px;
  top: 54px;
  width: 84px;
  height: 160px;
  opacity: 0.64;
  background:
    linear-gradient(120deg, transparent 34%, rgba(255, 255, 255, 0.14) 35% 44%, transparent 45%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.16), transparent 62%);
  clip-path: polygon(12% 0, 42% 0, 54% 46%, 96% 64%, 83% 82%, 42% 65%, 30% 100%, 0 100%, 12% 48%);
  filter: drop-shadow(0 0 18px rgba(114, 255, 221, 0.18));
}

body:not(.fg-pos-pro-page) .admin-command-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

body:not(.fg-pos-pro-page) .admin-hud-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(188px, 24vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(103, 232, 249, 0.12), rgba(103, 232, 249, 0.96), transparent 24%, rgba(185, 130, 24, 0.9), transparent 46%, rgba(34, 197, 94, 0.84), rgba(103, 232, 249, 0.12)),
    radial-gradient(circle, rgba(15, 118, 110, 0.18), rgba(3, 13, 18, 0.2) 58%, transparent 59%);
  box-shadow:
    0 0 0 1px rgba(114, 255, 221, 0.16),
    0 0 42px rgba(45, 212, 191, 0.2),
    inset 0 0 34px rgba(114, 255, 221, 0.18);
}

body:not(.fg-pos-pro-page) .admin-hud-ring::before,
body:not(.fg-pos-pro-page) .admin-hud-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

body:not(.fg-pos-pro-page) .admin-hud-ring::before {
  inset: 9px;
  border: 2px dashed rgba(211, 255, 247, 0.44);
  animation: adminHudSpin 26s linear infinite;
}

body:not(.fg-pos-pro-page) .admin-hud-ring::after {
  inset: 24px;
  border: 1px solid rgba(103, 232, 249, 0.24);
  box-shadow: inset 0 0 20px rgba(103, 232, 249, 0.12);
}

body:not(.fg-pos-pro-page) .admin-hud-ring-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #d7fff8;
  background:
    radial-gradient(circle at 50% 26%, rgba(114, 255, 221, 0.24), transparent 38%),
    linear-gradient(145deg, rgba(3, 33, 30, 0.92), rgba(3, 13, 18, 0.74));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -20px 38px rgba(5, 14, 18, 0.36);
  text-align: center;
}

body:not(.fg-pos-pro-page) .admin-hud-ring-inner img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(211, 255, 247, 0.4);
}

body:not(.fg-pos-pro-page) .admin-hud-ring-inner strong {
  margin-top: 8px;
  color: #e7fff9;
  font-size: clamp(0.9rem, 1.4vw, 1.18rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

body:not(.fg-pos-pro-page) .admin-hud-ring-inner span {
  color: rgba(178, 255, 242, 0.74);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

body:not(.fg-pos-pro-page) .admin-command-actions {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

body:not(.fg-pos-pro-page) .admin-hud-button {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(104px, 13vw, 136px);
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid rgba(114, 255, 221, 0.38);
  border-radius: 50%;
  color: #effffb;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(3, 48, 48, 0.78), rgba(4, 20, 24, 0.82));
  box-shadow:
    0 0 0 5px rgba(114, 255, 221, 0.04),
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 0 18px rgba(114, 255, 221, 0.16);
  cursor: pointer;
  pointer-events: auto;
}

body:not(.fg-pos-pro-page) .admin-hud-button::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(114, 255, 221, 0.34);
  border-radius: 50%;
}

body:not(.fg-pos-pro-page) .admin-hud-button:hover,
body:not(.fg-pos-pro-page) .admin-hud-button:focus-visible {
  border-color: rgba(255, 227, 143, 0.8);
  outline: 0;
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 0 0 6px rgba(185, 130, 24, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(103, 232, 249, 0.22),
    inset 0 0 22px rgba(114, 255, 221, 0.2);
}

body:not(.fg-pos-pro-page) .admin-hud-icon,
body:not(.fg-pos-pro-page) .admin-hud-button strong,
body:not(.fg-pos-pro-page) .admin-hud-button small {
  position: relative;
  z-index: 1;
}

body:not(.fg-pos-pro-page) .admin-hud-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(114, 255, 221, 0.12);
  font-size: 1.18rem;
}

body:not(.fg-pos-pro-page) .admin-hud-button strong {
  font-size: 0.78rem;
  line-height: 1.05;
  text-transform: uppercase;
}

body:not(.fg-pos-pro-page) .admin-hud-button small {
  max-width: 92px;
  overflow: hidden;
  color: rgba(211, 255, 247, 0.72);
  font-size: 0.64rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .hud-button-1 {
  top: 32px;
  right: 24%;
}

body:not(.fg-pos-pro-page) .hud-button-2 {
  top: 102px;
  right: 6%;
}

body:not(.fg-pos-pro-page) .hud-button-3 {
  right: 14%;
  bottom: 34px;
}

body:not(.fg-pos-pro-page) .hud-button-4 {
  left: 14%;
  bottom: 34px;
}

body:not(.fg-pos-pro-page) .hud-button-5 {
  top: 102px;
  left: 6%;
}

body:not(.fg-pos-pro-page) .hud-button-6 {
  top: 32px;
  left: 24%;
}

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

@keyframes adminHudScan {
  0%,
  100% {
    transform: translateY(-72%);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 0.7;
  }
  50% {
    transform: translateY(72%);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.fg-pos-pro-page) .admin-hud-ring::before,
  body:not(.fg-pos-pro-page) .hud-scan {
    animation: none;
  }
}

@media (max-width: 1040px) {
  body:not(.fg-pos-pro-page) .admin-sync-grid,
  body:not(.fg-pos-pro-page) .two-column,
  body:not(.fg-pos-pro-page) .admin-full-menu-groups,
  body:not(.fg-pos-pro-page) .dashboard-chart-grid,
  body:not(.fg-pos-pro-page) .dashboard-store-filter {
    grid-template-columns: 1fr;
  }

  body:not(.fg-pos-pro-page) .admin-system-command-wall {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body:not(.fg-pos-pro-page) .admin-system-persona {
    display: none;
  }

  body:not(.fg-pos-pro-page) .admin-hud-system-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body:not(.fg-pos-pro-page) .admin-full-menu-hero {
    grid-template-columns: 1fr;
  }

  body:not(.fg-pos-pro-page) .admin-full-menu-stats {
    justify-items: start;
  }

  body:not(.fg-pos-pro-page) .admin-full-menu-row {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 72px;
  }

  body:not(.fg-pos-pro-page) .admin-full-menu-row small {
    display: none;
  }

  body:not(.fg-pos-pro-page) .dashboard-mini-grid,
  body:not(.fg-pos-pro-page) .dashboard-donut-layout,
  body:not(.fg-pos-pro-page) .dashboard-shu-grid {
    grid-template-columns: 1fr;
  }

  body:not(.fg-pos-pro-page) .admin-hud-system-screen {
    min-height: auto;
    padding: 12px;
    border-radius: 16px;
  }

  body:not(.fg-pos-pro-page) .admin-hud-system-groups {
    grid-template-columns: 1fr;
  }

  body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-list {
    max-height: none;
  }

  body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row small {
    grid-column: 2;
    display: block;
  }

  body:not(.fg-pos-pro-page) .admin-command-center {
    min-height: auto;
    padding: 18px;
  }

  body:not(.fg-pos-pro-page) .admin-command-core {
    margin-bottom: 14px;
  }

  body:not(.fg-pos-pro-page) .admin-command-actions {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    pointer-events: auto;
  }

  body:not(.fg-pos-pro-page) .admin-hud-button {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 92px;
    aspect-ratio: auto;
    border-radius: 18px;
  }

  body:not(.fg-pos-pro-page) .admin-hud-button::before {
    border-radius: 14px;
  }

  body:not(.fg-pos-pro-page) .admin-command-touch,
  body:not(.fg-pos-pro-page) .hud-line {
    display: none;
  }
}

.pos-physical-stock-layout {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.42fr);
  align-items: stretch;
  min-height: min(690px, calc(100vh - 190px));
}

.pos-physical-stock-cart,
.pos-physical-stock-products {
  min-width: 0;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pos-physical-stock-strip {
  grid-template-columns: minmax(150px, 0.7fr) minmax(220px, 1fr) minmax(150px, 0.7fr);
}

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

.pos-physical-stock-total strong {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.pos-physical-stock-total strong small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}

.pos-physical-stock-total strong b {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.4vw, 2.15rem);
}

.pos-physical-stock-lines {
  display: grid;
  gap: 7px;
  max-height: 390px;
  overflow-y: auto;
}

.pos-physical-stock-lines .pos-cart-item-row > b {
  min-width: 70px;
  padding: 7px 9px;
  border-radius: 6px;
  text-align: center;
}

.pos-physical-stock-lines .is-balanced,
.pos-physical-stock-summary .is-balanced {
  color: #047857;
  background: #dcfce7;
}

.pos-physical-stock-lines .has-variance,
.pos-physical-stock-summary .has-variance {
  color: #b42318;
  background: #fee4e2;
}

.pos-physical-stock-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  align-content: start;
}

.pos-physical-stock-product-grid .product-button {
  min-height: 116px;
}

.pos-physical-stock-product-grid .product-button em {
  display: block;
  margin-top: 4px;
  color: #fff7ed;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 750;
}

.pos-physical-stock-product-grid .product-button.is-counted {
  box-shadow: inset 0 0 0 3px #fbbf24, 0 6px 16px rgba(15, 118, 110, 0.16);
}

.pos-physical-stock-modal {
  width: min(620px, calc(100vw - 28px));
}

.pos-physical-stock-modal .pos-line-modal-header > div {
  display: grid;
  gap: 2px;
}

.pos-physical-stock-modal .pos-line-modal-header small {
  color: #667085;
  font-size: 0.72rem;
}

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

.pos-physical-stock-summary > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #f1f5f3;
}

.pos-physical-stock-summary span {
  color: #667085;
  font-size: 0.7rem;
}

.pos-physical-stock-summary strong {
  font-size: 1.08rem;
}

.pos-physical-stock-history {
  margin-top: 12px;
}

.pos-physical-stock-history summary {
  cursor: pointer;
  font-weight: 750;
}

.pos-physical-stock-history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pos-physical-stock-history-list span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #dbe7df;
  border-radius: 6px;
  background: #ffffff;
}

.pos-physical-stock-history-list small {
  color: #667085;
}

@media (max-width: 860px) {
  .pos-physical-stock-layout {
    grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.15fr);
  }

  .pos-physical-stock-product-grid {
    grid-template-columns: repeat(2, minmax(125px, 1fr));
  }
}

@media (max-width: 640px) {
  .pos-physical-stock-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pos-physical-stock-cart,
  .pos-physical-stock-products {
    max-height: none;
  }

  .pos-physical-stock-strip {
    grid-template-columns: 1fr;
  }

  .pos-physical-stock-meta,
  .pos-physical-stock-summary {
    grid-template-columns: 1fr;
  }

  .pos-physical-stock-product-grid {
    max-height: 52vh;
  }
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  min-height: 100dvh;
  background:
    linear-gradient(105deg, #020711 0%, #061820 44%, #052d2b 72%, #020711 100%),
    radial-gradient(circle at 78% 18%, rgba(94, 234, 212, 0.2), transparent 28%),
    radial-gradient(circle at 8% 82%, rgba(185, 130, 24, 0.14), transparent 24%);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  min-height: 100dvh;
  padding: 0;
  background: transparent;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar {
  position: relative;
  z-index: 30;
  min-height: 58px;
  margin: 10px 10px 0;
  padding: 9px 12px;
  border: 1px solid rgba(125, 249, 255, 0.2);
  border-radius: 18px;
  color: #effffb;
  background:
    linear-gradient(135deg, rgba(4, 21, 30, 0.68), rgba(5, 45, 43, 0.36)),
    radial-gradient(circle at 100% 0%, rgba(125, 249, 255, 0.13), transparent 34%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar .eyebrow {
  color: rgba(178, 255, 242, 0.76);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar h1 {
  color: #f5fffc;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  text-shadow: 0 0 18px rgba(125, 249, 255, 0.18);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .ghost-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .icon-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .primary-button {
  min-height: 34px;
  border: 1px solid rgba(125, 249, 255, 0.24);
  border-radius: 999px;
  color: #e9fffb;
  background:
    linear-gradient(135deg, rgba(125, 249, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(2, 16, 22, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(125, 249, 255, 0.08);
  backdrop-filter: blur(12px);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .ghost-button:hover,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .icon-button:hover,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .primary-button:hover {
  border-color: rgba(255, 227, 143, 0.65);
  background:
    linear-gradient(135deg, rgba(185, 130, 24, 0.18), rgba(125, 249, 255, 0.1)),
    rgba(2, 16, 22, 0.58);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #admin-next-button {
  border-color: rgba(255, 227, 143, 0.52);
  background:
    linear-gradient(135deg, rgba(185, 130, 24, 0.32), rgba(15, 118, 110, 0.36)),
    rgba(2, 16, 22, 0.6);
  box-shadow:
    0 0 22px rgba(185, 130, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body:not(.fg-pos-pro-page) #admin-back-button,
body:not(.fg-pos-pro-page) #admin-next-button {
  min-width: 74px;
  text-align: center;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #admin-back-button {
  color: #0f3d2a;
  border-color: rgba(47, 125, 75, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 248, 241, 0.86));
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #admin-next-button {
  color: #fff;
  border-color: rgba(47, 125, 75, 0.12);
  background:
    linear-gradient(135deg, #215f38, #2f7d4b),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.24), transparent 30%);
  box-shadow: 0 12px 26px rgba(47, 125, 75, 0.18);
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .content-panel {
  min-height: calc(100dvh - 68px);
  padding: 10px;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .admin-hud-system-screen {
  min-height: calc(100dvh - 88px);
  border-radius: 22px;
}

body:not(.fg-pos-pro-page) .admin-system-ring-inner img,
body:not(.fg-pos-pro-page) .admin-hud-ring-inner img,
body:not(.fg-pos-pro-page) .brand-logo {
  background: transparent;
  border-radius: 999px;
  clip-path: circle(43% at 50% 50%);
}

body:not(.fg-pos-pro-page) .admin-system-ring-inner img,
body:not(.fg-pos-pro-page) .admin-hud-ring-inner img {
  mix-blend-mode: screen;
  filter: saturate(1.1) contrast(1.08) drop-shadow(0 0 14px rgba(125, 249, 255, 0.16));
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) {
  background:
    linear-gradient(135deg, #f7faf6 0%, #ffffff 44%, #f0f7f2 100%),
    radial-gradient(circle at 90% 0%, rgba(47, 125, 75, 0.08), transparent 30%);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 252, 247, 0.84)),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.08), transparent 30%);
}

.transaction-scope-panel,
.transaction-intelligence-panel {
  border: 1px solid rgba(20, 83, 45, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.84)),
    radial-gradient(circle at 92% 0%, rgba(20, 184, 166, 0.12), transparent 34%);
}

.transaction-scope-panel {
  padding: 12px 14px;
}

.transaction-scope-panel .section-header {
  margin-bottom: 9px;
}

.transaction-scope-panel .section-header h2 {
  font-size: 1rem;
  line-height: 1.15;
}

.transaction-scope-panel .section-header p {
  max-width: none;
  font-size: 0.75rem;
  line-height: 1.32;
}

.transaction-scope-panel .compact-kpi {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.transaction-scope-panel .kpi-card {
  min-height: 76px;
  padding: 9px 10px 9px 12px;
  border-radius: 10px;
}

.transaction-scope-panel .kpi-card span {
  font-size: 0.64rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.transaction-scope-panel .kpi-card strong {
  margin-top: 5px;
  font-size: clamp(0.98rem, 1.55vw, 1.18rem);
  line-height: 1.05;
}

.transaction-scope-panel .kpi-card small {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;
  color: #66776d;
  font-size: 0.66rem;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body:not(.fg-pos-pro-page) .sales-app-content > .kpi-grid:first-child {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

body:not(.fg-pos-pro-page) .sales-app-content > .kpi-grid:first-child .kpi-card {
  min-height: 82px;
  padding: 10px 12px;
}

body:not(.fg-pos-pro-page) .sales-app-content > .kpi-grid:first-child .kpi-card strong {
  font-size: clamp(1rem, 1.7vw, 1.28rem);
}

.cooperative-command-center,
.cooperative-readiness-panel,
.role-access-command {
  border: 1px solid rgba(15, 118, 110, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.88)),
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.12), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(56, 189, 248, 0.12), transparent 32%);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

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

.cooperative-flow article,
.cooperative-readiness-grid article,
.role-policy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(125, 249, 255, 0.14), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 16px 34px rgba(15, 23, 42, 0.07);
}

.cooperative-flow article {
  padding: 14px;
}

.cooperative-flow article::after,
.role-policy-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 28%;
  height: 80%;
  background: linear-gradient(135deg, transparent, rgba(20, 184, 166, 0.1));
  transform: rotate(-10deg);
  pointer-events: none;
}

.cooperative-flow span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 50%;
  color: #0f766e;
  font-weight: 800;
  font-size: 0.75rem;
  background: rgba(240, 253, 250, 0.88);
}

.cooperative-flow strong,
.cooperative-readiness-grid strong,
.role-policy-card h3 {
  display: block;
  margin-top: 8px;
  color: #0f172a;
}

.cooperative-flow small,
.cooperative-readiness-grid small,
.role-policy-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

.cooperative-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cooperative-readiness-grid article {
  padding: 14px;
}

.cooperative-readiness-grid article span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #065f46;
  background: rgba(220, 252, 231, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cooperative-readiness-grid article.needs-review span {
  color: #92400e;
  background: rgba(254, 243, 199, 0.86);
}

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

.role-policy-card {
  padding: 14px;
}

.role-policy-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.role-policy-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.role-policy-card dl div {
  padding: 8px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.78);
}

.role-policy-card dt {
  color: #64748b;
  font-size: 0.72rem;
}

.role-policy-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.82rem;
}

.role-policy-card p {
  margin: 0 0 8px;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}

.role-lock-note {
  margin-top: 14px;
}

.table-tool-row {
  align-items: end;
  flex-wrap: wrap;
}

.table-tool-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.table-column-settings {
  margin: 0 0 10px;
  border: 1px solid rgba(20, 83, 45, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.table-column-settings summary {
  cursor: pointer;
  padding: 9px 12px;
  color: #173b27;
  font-weight: 800;
}

.table-column-options {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 12px 12px;
}

.table-column-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 999px;
  background: rgba(240, 253, 244, 0.78);
  color: #173b27;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-data-collapsible {
  padding: 0;
  overflow: hidden;
}

.admin-data-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  color: #173b27;
  font-weight: 900;
}

.admin-data-collapsible summary span:last-child {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.08);
  color: #24533a;
  font-size: 0.72rem;
}

.admin-collapsible-body {
  padding: 0 16px 16px;
}

.role-access-command,
.integration-command-panel,
.access-control-panel {
  padding: 14px;
}

.role-access-command .section-header,
.integration-command-panel .section-header,
.access-control-panel .section-header {
  margin-bottom: 10px;
}

.role-access-command h2,
.integration-command-panel h2,
.access-control-panel h2 {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.role-access-command .compact-kpi,
.integration-command-panel .compact-kpi,
.access-control-panel .compact-kpi {
  margin-bottom: 10px;
}

.role-access-command .role-policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.role-access-command .role-policy-card {
  padding: 10px;
  border-radius: 12px;
}

.role-access-command .role-policy-card h3 {
  margin: 6px 0;
  font-size: 0.86rem;
}

.role-access-command .role-policy-card dl {
  gap: 5px;
  margin-bottom: 6px;
}

.role-access-command .role-policy-card dl div {
  padding: 6px;
  border-radius: 9px;
}

.role-access-command .role-policy-card small {
  font-size: 0.7rem;
}

.device-table .device-meta,
.device-table .device-token-cell,
.device-table .device-actions {
  display: grid;
  gap: 5px;
}

.device-table .compact-button {
  width: max-content;
}

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

.inventory-flow-grid article {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 36%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.inventory-flow-grid span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #0f766e;
  font-weight: 800;
}

.inventory-flow-grid strong,
.inventory-flow-grid small {
  display: block;
}

.inventory-flow-grid strong {
  margin-top: 8px;
  color: #0f172a;
}

.inventory-flow-grid small {
  margin-top: 4px;
  color: #64748b;
}

.transaction-intelligence-head {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 18px;
  align-items: center;
  margin: 12px 0 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 118, 110, 0.8)),
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.28), transparent 36%);
  color: #ecfeff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.transaction-intelligence-head h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.transaction-intelligence-head p {
  margin: 0;
  color: rgba(236, 254, 255, 0.78);
}

.transaction-score-large {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px solid rgba(125, 249, 255, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(125, 249, 255, 0.18), transparent 58%),
    conic-gradient(from 30deg, rgba(34, 197, 94, 0.7), rgba(56, 189, 248, 0.6), rgba(245, 158, 11, 0.5), rgba(34, 197, 94, 0.7));
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.12), 0 0 32px rgba(56, 189, 248, 0.18);
}

.transaction-score-large span {
  font-size: 1.3rem;
}

.transaction-score-large strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.9;
}

.transaction-score-large small {
  color: rgba(236, 254, 255, 0.78);
}

.transaction-score-large.warn {
  background:
    radial-gradient(circle, rgba(254, 240, 138, 0.22), transparent 58%),
    conic-gradient(from 30deg, rgba(245, 158, 11, 0.78), rgba(56, 189, 248, 0.52), rgba(245, 158, 11, 0.78));
}

.transaction-score-large.danger {
  background:
    radial-gradient(circle, rgba(254, 202, 202, 0.22), transparent 58%),
    conic-gradient(from 30deg, rgba(239, 68, 68, 0.78), rgba(56, 189, 248, 0.46), rgba(239, 68, 68, 0.78));
}

.transaction-what-if {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.transaction-what-if > div {
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.transaction-what-if span,
.transaction-impact-grid span,
.evidence-vault b {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}

.transaction-what-if strong {
  display: block;
  margin: 4px 0;
  color: #064e3b;
  font-size: 1.05rem;
}

.transaction-what-if small {
  color: #475569;
}

.admin-quick-input-panel {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 253, 250, 0.72)),
    radial-gradient(circle at 100% 0%, rgba(185, 130, 24, 0.15), transparent 32%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.admin-quick-input-panel h3 {
  margin: 2px 0 6px;
  color: #0f3d2a;
  font-size: 1.08rem;
}

.admin-quick-input-panel p {
  margin: 0;
  color: #52685a;
  font-size: 0.86rem;
  line-height: 1.45;
}

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

.admin-quick-input-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  min-height: 96px;
  padding: 11px;
  text-align: left;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 13px;
  color: #123f28;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 170, 0.18), transparent 36%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.admin-quick-input-card:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.admin-quick-input-card span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.11);
  font-size: 1.1rem;
}

.admin-quick-input-card strong {
  font-size: 0.86rem;
  line-height: 1.15;
}

.admin-quick-input-card small {
  color: #5d7064;
  font-size: 0.72rem;
  line-height: 1.25;
}

.admin-quick-input-card em {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(47, 125, 75, 0.1);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.transaction-risk-board {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(260px, 1fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin-bottom: 18px;
}

.transaction-risk-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.risk-pill,
.transaction-cause-panel,
.transaction-failure-panel,
.product-chain-card {
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.12), transparent 40%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.risk-pill {
  display: grid;
  place-items: center;
  min-height: 86px;
  text-align: center;
}

.risk-pill span {
  font-size: 1.1rem;
}

.risk-pill strong {
  display: block;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1;
}

.risk-pill small {
  color: #64748b;
  font-weight: 700;
}

.risk-pill.good {
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.94), rgba(255, 255, 255, 0.82));
}

.risk-pill.warn {
  background: linear-gradient(135deg, rgba(254, 249, 195, 0.95), rgba(255, 255, 255, 0.82));
}

.risk-pill.danger {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), rgba(255, 255, 255, 0.82));
}

.risk-pill.neutral {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.94), rgba(255, 255, 255, 0.82));
}

.transaction-cause-panel,
.transaction-failure-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.transaction-cause-panel h3,
.transaction-failure-panel h3,
.product-chain-panel h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.98rem;
}

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

.cause-row span,
.transaction-failure-panel strong {
  display: block;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 800;
}

.cause-row small,
.transaction-failure-panel span {
  color: #64748b;
  font-size: 0.72rem;
}

.cause-row b {
  color: #0f172a;
  font-size: 0.82rem;
}

.cause-row i {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.cause-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #38bdf8;
}

.cause-row.danger em {
  background: #ef4444;
}

.cause-row.warn em {
  background: #f59e0b;
}

.cause-row.gold em {
  background: #d97706;
}

.cause-row.blue em {
  background: #2563eb;
}

.transaction-failure-panel > div {
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
}

.transaction-failure-panel p {
  margin: 0;
  color: #64748b;
}

.product-chain-panel {
  margin-bottom: 18px;
}

.mini-section-header {
  margin-bottom: 10px;
}

.mini-section-header p {
  margin: 4px 0 0;
  color: #64748b;
}

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

.product-chain-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-chain-card header {
  display: grid;
  gap: 4px;
}

.product-chain-card header small {
  color: #0f766e;
  font-weight: 800;
}

.product-chain-card header strong {
  color: #0f172a;
  font-size: 1rem;
}

.product-chain-path {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.product-chain-path span {
  max-width: 160px;
  padding: 7px 9px;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 999px;
  color: #0f172a;
  background: rgba(236, 254, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-chain-path b {
  color: #0f766e;
}

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

.product-chain-metrics span {
  padding: 9px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  color: #64748b;
  background: rgba(248, 250, 252, 0.88);
  font-size: 0.74rem;
}

.product-chain-metrics b {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 0.78rem;
}

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

.transaction-ai-card {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.transaction-ai-card summary {
  display: grid;
  grid-template-columns: minmax(92px, auto) minmax(160px, 1fr) minmax(220px, auto);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.transaction-ai-card summary::-webkit-details-marker {
  display: none;
}

.transaction-ai-card summary strong {
  color: #0f172a;
}

.transaction-ai-card summary small {
  color: #64748b;
  text-align: right;
}

.transaction-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  color: #064e3b;
  background: rgba(187, 247, 208, 0.8);
}

.transaction-score.warn {
  color: #713f12;
  background: rgba(254, 240, 138, 0.85);
}

.transaction-score.danger {
  color: #7f1d1d;
  background: rgba(254, 202, 202, 0.88);
}

.transaction-ai-body {
  padding: 0 16px 16px;
}

.transaction-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.transaction-checks span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.transaction-checks .ok {
  color: #065f46;
  background: rgba(209, 250, 229, 0.9);
}

.transaction-checks .bad {
  color: #92400e;
  background: rgba(254, 243, 199, 0.94);
}

.transaction-warning,
.transaction-ok {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.transaction-warning {
  color: #78350f;
  background: rgba(254, 243, 199, 0.8);
}

.transaction-ok {
  color: #065f46;
  background: rgba(209, 250, 229, 0.72);
}

.transaction-ai-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.transaction-ai-columns h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 0.98rem;
}

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

.transaction-flow-step {
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
}

.transaction-flow-step span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 999px;
  color: #fff;
  background: #0f766e;
  font-weight: 800;
}

.transaction-flow-step.pending span {
  background: #f59e0b;
}

.transaction-flow-step strong,
.transaction-flow-step small {
  display: block;
}

.transaction-flow-step small {
  color: #64748b;
  font-size: 0.72rem;
}

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

.transaction-impact-grid > div,
.evidence-vault span {
  padding: 10px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.transaction-impact-grid strong {
  display: block;
  color: #0f172a;
  font-size: 0.88rem;
}

.transaction-dna {
  display: grid;
  gap: 9px;
}

.transaction-dna-row {
  display: grid;
  grid-template-columns: 70px 1fr 56px;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
}

.transaction-dna-row div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.transaction-dna-row i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--dna, #38bdf8);
  box-shadow: 0 0 18px color-mix(in srgb, var(--dna, #38bdf8), transparent 54%);
}

.transaction-dna-row strong {
  color: #0f172a;
  text-align: right;
}

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

.evidence-vault span {
  color: #0f172a;
  font-size: 0.82rem;
}

.transaction-dna-register {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.12), transparent 32%);
}

.transaction-dna-register-grid {
  display: grid;
  gap: 10px;
}

.transaction-dna-register-card {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.transaction-dna-register-card.good {
  border-color: rgba(34, 197, 94, 0.24);
}

.transaction-dna-register-card.warn {
  border-color: rgba(245, 158, 11, 0.28);
}

.transaction-dna-register-card.danger {
  border-color: rgba(239, 68, 68, 0.26);
}

.transaction-dna-register-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.transaction-dna-register-card summary::-webkit-details-marker {
  display: none;
}

.transaction-dna-register-card summary strong,
.transaction-dna-register-card summary small {
  display: block;
}

.transaction-dna-register-card summary strong {
  color: #0f172a;
  font-size: 0.98rem;
}

.transaction-dna-register-card summary small {
  color: #64748b;
  font-size: 0.76rem;
}

.transaction-dna-register-card summary em {
  padding: 6px 9px;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(34, 197, 94, 0.12);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.transaction-dna-register-card.warn summary em {
  color: #7c4a03;
  background: rgba(245, 158, 11, 0.14);
}

.transaction-dna-register-card.danger summary em {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
}

.transaction-dna-register-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.transaction-dna-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  color: #334155;
  background: rgba(15, 118, 110, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
}

.evidence-completeness {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-completeness span,
.evidence-completeness button {
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(34, 197, 94, 0.12);
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 900;
  line-height: 1.2;
}

.evidence-completeness button.missing {
  cursor: pointer;
  color: #991b1b;
  background: rgba(239, 68, 68, 0.1);
}

.evidence-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 170px;
}

.evidence-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 92px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #475569;
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

.evidence-status-pill.valid {
  color: #065f46;
  background: rgba(16, 185, 129, 0.16);
}

.evidence-status-pill.review {
  color: #92400e;
  background: rgba(245, 158, 11, 0.18);
}

.evidence-status-pill.rejected {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.16);
}

.evidence-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 220px;
}

.evidence-status-button.valid {
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

.evidence-status-button.perlu_review {
  border-color: rgba(245, 158, 11, 0.42);
  color: #92400e;
}

.evidence-status-button.ditolak {
  border-color: rgba(239, 68, 68, 0.38);
  color: #991b1b;
}

.evidence-archive-table td small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.66rem;
  line-height: 1.2;
}

.evidence-archive-table td strong {
  display: block;
  color: #0f172a;
}

.evidence-vault-module {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.12), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(185, 130, 24, 0.12), transparent 34%);
}

.evidence-type-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.evidence-type-grid article {
  min-height: 110px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.74)),
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.13), transparent 44%);
}

.evidence-type-grid span,
.evidence-type-grid strong,
.evidence-type-grid small {
  display: block;
}

.evidence-type-grid span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
}

.evidence-type-grid strong {
  margin: 6px 0 2px;
  color: #0f172a;
  font-size: 1.7rem;
  line-height: 1;
}

.evidence-type-grid small {
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.25;
}

.mini-button {
  min-height: 0;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1;
}

.evidence-file-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.evidence-file-list span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  color: #0f172a;
  background: rgba(240, 253, 250, 0.78);
}

.evidence-file-list b {
  font-size: 0.82rem;
}

.evidence-file-list small {
  overflow: hidden;
  color: #64748b;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 920px) {
  .transaction-intelligence-head,
  .transaction-what-if,
  .admin-quick-input-panel,
  .transaction-risk-board,
  .transaction-ai-columns,
  .product-chain-grid,
  .evidence-type-grid,
  .cooperative-flow,
  .cooperative-readiness-grid,
  .role-policy-grid,
  .inventory-flow-grid {
    grid-template-columns: 1fr;
  }

  .transaction-ai-card summary {
    grid-template-columns: 1fr;
  }

  .transaction-ai-card summary small {
    text-align: left;
  }

  .transaction-flow,
  .transaction-impact-grid,
  .admin-quick-input-grid,
  body:not(.fg-pos-pro-page) .admin-impact-grid,
  body:not(.fg-pos-pro-page) .admin-form-trust,
  body:not(.fg-pos-pro-page) .admin-trust-checks,
  .evidence-vault,
  .transaction-risk-summary,
  .product-chain-metrics {
    grid-template-columns: 1fr;
  }
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) {
  background:
    radial-gradient(circle at 8% 10%, rgba(47, 125, 75, 0.08), transparent 28%),
    radial-gradient(circle at 94% 4%, rgba(233, 137, 170, 0.09), transparent 28%),
    linear-gradient(135deg, #f8fcf8 0%, #ffffff 48%, #eef8f1 100%);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .sidebar {
  color: #13231a;
  background:
    linear-gradient(180deg, rgba(248, 253, 248, 0.98), rgba(232, 246, 237, 0.98)),
    radial-gradient(circle at 88% 4%, rgba(185, 130, 24, 0.14), transparent 34%),
    radial-gradient(circle at 12% 92%, rgba(233, 137, 170, 0.11), transparent 30%);
  border-right: 1px solid rgba(47, 125, 75, 0.13);
  box-shadow: 18px 0 44px rgba(31, 48, 36, 0.08);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .brand {
  color: #10261b;
  border-bottom-color: rgba(47, 125, 75, 0.12);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .brand span {
  color: #496252;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .brand-logo {
  background: transparent;
  border: 1px solid rgba(47, 125, 75, 0.14);
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.12);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-nav-item {
  border: 1px solid rgba(47, 125, 75, 0.09);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 246, 0.82)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--menu-color) 10%, transparent), transparent 32%);
  box-shadow: 0 10px 22px rgba(31, 48, 36, 0.055);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-nav-item:hover,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-nav-item.active {
  border-color: color-mix(in srgb, var(--menu-color) 28%, rgba(47, 125, 75, 0.12));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color) 18%, #ffffff), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.86), transparent 34%);
  box-shadow:
    0 12px 26px rgba(31, 48, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-menu-icon {
  color: #ffffff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--menu-color) 86%, #0f3d2a), var(--menu-color));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px color-mix(in srgb, var(--menu-color) 22%, transparent);
}

body:not(.fg-pos-pro-page) .admin-menu-icon svg,
body:not(.fg-pos-pro-page) .admin-hud-icon svg,
body:not(.fg-pos-pro-page) .admin-full-menu-row .pos-menu-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:not(.fg-pos-pro-page) .admin-menu-icon svg circle,
body:not(.fg-pos-pro-page) .admin-hud-icon svg circle,
body:not(.fg-pos-pro-page) .admin-full-menu-row .pos-menu-icon svg circle {
  fill: currentColor;
  stroke: none;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-nav-item > span:nth-child(2) {
  color: #13231a;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-caret {
  color: #14532d;
  background: rgba(47, 125, 75, 0.1);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
  min-height: 54px;
  padding: 8px 11px;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar h1 {
  font-size: clamp(1.12rem, 1.7vw, 1.52rem);
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar .eyebrow {
  font-size: 0.64rem;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar-actions .ghost-button,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar-actions .icon-button,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar-actions .primary-button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
}

.table-search-mobile-actions {
  display: none;
}

@media (max-width: 760px) {
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) {
    grid-template-columns: minmax(218px, 78vw) minmax(0, 1fr);
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .sidebar {
    position: sticky;
    top: 0;
    z-index: 35;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 7px 3px;
    overflow-y: auto;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .brand {
    min-height: 38px;
    padding: 4px 0;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .brand-logo {
    width: 30px;
    height: 30px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .brand div,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .nav-list {
    display: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .workspace {
    min-width: 0;
    padding: 8px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: auto;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar h1 {
    font-size: 1.04rem;
    line-height: 1.1;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar .eyebrow {
    font-size: 0.58rem;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .primary-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .icon-button {
    min-width: 0;
    min-height: 30px;
    padding: 5px 6px;
    font-size: 0.68rem;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .content-panel,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .sales-app-content {
    gap: 8px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .section {
    padding: 10px;
    border-radius: 12px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .section-header {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .section-header h2 {
    font-size: 0.96rem;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .section-header p {
    font-size: 0.72rem;
    line-height: 1.32;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .kpi-card {
    min-height: 70px;
    padding: 8px 9px;
    border-radius: 10px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .kpi-card span,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .kpi-card small {
    font-size: 0.64rem;
    line-height: 1.2;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .kpi-card strong {
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.05;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .table-control-row {
    position: static;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .table-control-row input {
    min-height: 38px;
    font-size: 16px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .table-tool-actions {
    justify-content: start;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .table-search-mobile-actions {
    display: flex;
    gap: 6px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .table-column-settings {
    display: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .data-table {
    min-width: 620px;
    font-size: 0.72rem;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .data-table th,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .data-table td {
    padding: 7px 6px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog .dialog-body {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog .dialog-header {
    margin: 0;
    padding: 12px;
    border-radius: 0;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog #form-fields {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog .field {
    padding: 8px;
    border-radius: 10px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog input,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog select,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) dialog.admin-record-dialog textarea {
    min-height: 40px;
    font-size: 16px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .transaction-intelligence-panel,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .transaction-dna-register,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .dashboard-chart-card {
    content-visibility: auto;
    contain-intrinsic-size: 560px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .mobile-lite-table-gate {
    padding: 12px;
    font-size: 0.82rem;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-screen {
    min-height: calc(100dvh - 72px);
    padding: 10px;
    border: 0;
    background:
      linear-gradient(180deg, rgba(248, 252, 249, 0.96), rgba(238, 247, 242, 0.96)),
      radial-gradient(circle at 90% 6%, rgba(221, 177, 62, 0.15), transparent 32%);
    box-shadow: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(47, 125, 75, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head h2 {
    margin: 0;
    color: #10261b;
    font-size: 1.05rem;
    line-height: 1.05;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head span {
    color: #5c7268;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-groups {
    display: grid;
    gap: 8px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-group {
    border: 1px solid rgba(47, 125, 75, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 11px;
    color: #10261b;
    cursor: pointer;
    list-style: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary::-webkit-details-marker {
    display: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary span {
    color: #60736a;
    font-size: 0.68rem;
    font-weight: 850;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-group > div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 9px 9px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-row,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 9px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid rgba(47, 125, 75, 0.12);
    border-radius: 12px;
    color: #10261b;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: left;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--menu-color, #0f8b5f) 18%, white), rgba(255, 255, 255, 0.92));
    box-shadow: 0 8px 18px rgba(28, 54, 39, 0.06);
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-row span,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button::before {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.68rem;
    background: var(--menu-color, #0f8b5f);
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button::before {
    content: "›";
    font-size: 1rem;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-quick-actions {
    padding: 10px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-light-details {
    padding: 0;
    overflow: hidden;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-light-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px;
    color: #10261b;
    cursor: pointer;
    list-style: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-light-details summary::-webkit-details-marker {
    display: none;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-light-details > :not(summary) {
    margin: 0 10px 10px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .dashboard-filter-compact .dashboard-store-filter {
    grid-template-columns: 1fr;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .dashboard-store-buttons {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .dashboard-store-buttons button {
    flex: 0 0 auto;
  }
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  grid-template-columns: none !important;
  overflow-x: hidden !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .sidebar {
  display: none !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  padding: 8px !important;
  overflow-x: hidden !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar {
  position: sticky !important;
  top: 0;
  z-index: 70;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px;
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  margin: 0 0 8px !important;
  padding: 8px !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.1) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 243, 0.94)) !important;
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.08) !important;
  backdrop-filter: none !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar .eyebrow {
  display: none !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar h1 {
  overflow: hidden;
  margin: 0;
  color: #10261b !important;
  font-size: clamp(0.9rem, 2.8vw, 1.12rem) !important;
  line-height: 1.12;
  text-overflow: ellipsis;
  text-shadow: none !important;
  white-space: nowrap;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: flex-end;
  min-width: 0;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions a[href="/"],
body.admin-mobile-lite-page:not(.fg-pos-pro-page) #backup-button {
  display: none !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .primary-button,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .icon-button {
  min-width: 52px !important;
  min-height: 30px !important;
  padding: 5px 7px !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.14) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
  line-height: 1;
  text-align: center;
  backdrop-filter: none !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) #admin-next-button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #215f38, #2f7d4b) !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .content-panel,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .sales-app-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-screen {
  min-height: calc(100dvh - 70px) !important;
  padding: 10px !important;
  border-radius: 16px;
}

body.admin-mobile-lite-page:not(.fg-pos-pro-page) input,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) select,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) textarea {
  font-size: 16px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 125, 75, 0.08), transparent 30%),
    linear-gradient(135deg, #f8fcf8 0%, #ffffff 48%, #eef8f1 100%) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100dvh;
  grid-template-columns: 78px minmax(0, 1fr) !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 125, 75, 0.08), transparent 30%),
    linear-gradient(135deg, #f8fcf8 0%, #ffffff 48%, #eef8f1 100%) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar {
  position: sticky !important;
  top: 0;
  z-index: 50;
  display: block !important;
  width: 78px !important;
  min-width: 78px !important;
  min-height: 100dvh;
  max-height: 100dvh;
  padding: 8px 5px !important;
  overflow-y: auto;
  color: #10261b;
  background:
    linear-gradient(180deg, rgba(248, 253, 248, 0.98), rgba(232, 246, 237, 0.98)),
    radial-gradient(circle at 88% 4%, rgba(185, 130, 24, 0.14), transparent 34%);
  border-right: 1px solid rgba(47, 125, 75, 0.13);
  box-shadow: 12px 0 30px rgba(31, 48, 36, 0.08);
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .brand {
  justify-content: center;
  min-height: 48px;
  padding: 5px 0 !important;
  border-bottom: 1px solid rgba(47, 125, 75, 0.12);
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand div,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .brand div {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand-logo {
  width: 42px !important;
  height: 42px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-list,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .nav-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 6px;
  padding-top: 8px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-nav-item,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-child,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-grandchild {
  display: grid;
  grid-template-columns: 1fr !important;
  place-items: center;
  min-height: 48px;
  padding: 4px !important;
  border-radius: 14px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-menu-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 13px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-nav-item > span:nth-child(2),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-caret,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-sublist,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-sublist-deep {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: auto !important;
  max-width: calc(100vw - 78px) !important;
  min-width: 0 !important;
  min-height: 100dvh;
  padding: 8px !important;
  overflow-x: hidden;
  background: transparent !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
  position: sticky !important;
  top: 0;
  z-index: 45;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px;
  min-height: auto !important;
  margin: 0 0 8px !important;
  padding: 8px !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.1) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 243, 0.94)) !important;
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.08) !important;
  backdrop-filter: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar .eyebrow {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar h1 {
  overflow: hidden;
  margin: 0;
  color: #10261b !important;
  font-size: clamp(0.92rem, 2.8vw, 1.12rem) !important;
  line-height: 1.12;
  text-overflow: ellipsis;
  text-shadow: none !important;
  white-space: nowrap;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions a[href="/"],
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #backup-button {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .primary-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .icon-button {
  min-width: 54px !important;
  min-height: 30px !important;
  padding: 5px 7px !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.14) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
  font-size: 0.68rem !important;
  line-height: 1;
  text-align: center;
  backdrop-filter: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-next-button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #215f38, #2f7d4b) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .content-panel,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sales-app-content {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) input,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) select,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) textarea {
  font-size: 16px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  grid-template-columns: 56px minmax(0, 1fr) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar {
  width: 56px !important;
  min-width: 56px !important;
  padding: 6px 4px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  max-width: calc(100vw - 56px) !important;
  padding: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .brand {
  min-height: 42px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand-logo {
  width: 34px !important;
  height: 34px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-list,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .nav-list {
  gap: 5px;
  padding-top: 6px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-nav-item,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-child,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-grandchild {
  min-height: 42px;
  padding: 3px !important;
  border-radius: 12px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-menu-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 11px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 5px;
  margin-bottom: 6px !important;
  padding: 6px !important;
  border-radius: 12px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions {
  gap: 4px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-next-button {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-back-button {
  color: #ffffff !important;
  background: linear-gradient(135deg, #215f38, #2f7d4b) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .primary-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .icon-button {
  min-width: 50px !important;
  min-height: 28px !important;
  padding: 4px 6px !important;
  font-size: 0.64rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-grid,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-kpi-compact,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .compact-kpi,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-kpi-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-card,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-kpi-compact .kpi-card {
  min-height: 78px !important;
  padding: 8px 9px !important;
  border-radius: 13px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-card span,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-card small {
  font-size: 0.62rem !important;
  line-height: 1.18 !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-card strong,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-kpi-compact .kpi-card strong {
  font-size: clamp(0.86rem, 3.4vw, 1.06rem) !important;
  line-height: 1.08 !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .section {
  padding: 9px !important;
  border-radius: 14px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .section-header {
  margin-bottom: 7px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .section-header h2 {
  font-size: 1rem !important;
  line-height: 1.14 !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .section-header p {
  font-size: 0.72rem !important;
  line-height: 1.32 !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-head {
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 9px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-groups {
  gap: 7px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group > div {
  gap: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-row,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button {
  min-height: 40px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-quick-actions,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-light-details {
  margin-top: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-phone-summary-toggle {
  padding: 0 !important;
  overflow: hidden;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-phone-summary-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-phone-summary-toggle summary::-webkit-details-marker {
  display: none;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-phone-summary-toggle > .kpi-grid {
  padding: 0 8px 8px;
}

body:not(.fg-pos-pro-page) .dashboard-filter-compact {
  padding: 8px 10px;
  border-radius: 14px;
}

body:not(.fg-pos-pro-page) .dashboard-filter-compact .dashboard-store-filter {
  grid-template-columns: minmax(150px, 0.38fr) minmax(240px, 1fr) minmax(142px, 0.22fr) auto;
  gap: 8px;
  align-items: center;
}

body:not(.fg-pos-pro-page) .dashboard-filter-title {
  display: grid;
  gap: 2px;
}

body:not(.fg-pos-pro-page) .dashboard-filter-title span {
  color: #60736a;
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

body:not(.fg-pos-pro-page) .dashboard-filter-title strong {
  overflow: hidden;
  color: #10261b;
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .dashboard-filter-compact .dashboard-store-buttons button,
body:not(.fg-pos-pro-page) .dashboard-filter-compact .dashboard-date-filter input,
body:not(.fg-pos-pro-page) .dashboard-filter-compact .ghost-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.72rem;
}

body:not(.fg-pos-pro-page) .dashboard-filter-compact .dashboard-date-filter {
  gap: 2px;
  font-size: 0.64rem;
}

body:not(.fg-pos-pro-page) .dashboard-kpi-compact {
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
}

body:not(.fg-pos-pro-page) .dashboard-kpi-compact .kpi-card {
  min-height: 94px;
  padding: 11px 12px 11px 15px;
}

body:not(.fg-pos-pro-page) .dashboard-kpi-compact .kpi-card strong {
  font-size: clamp(0.92rem, 1.35vw, 1.13rem);
}

body:not(.fg-pos-pro-page) .dashboard-collapsible {
  display: block;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(241, 249, 244, 0.62)),
    radial-gradient(circle at 98% 0%, rgba(185, 130, 24, 0.1), transparent 34%);
  box-shadow: 0 16px 38px rgba(31, 48, 36, 0.06);
  overflow: hidden;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible + .dashboard-collapsible {
  margin-top: 2px;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  color: #10261b;
  cursor: pointer;
  list-style: none;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible summary::-webkit-details-marker {
  display: none;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible summary strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible summary small {
  overflow: hidden;
  color: #60736a;
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible summary b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 999px;
  color: #14532d;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

body:not(.fg-pos-pro-page) .dashboard-collapsible[open] summary {
  border-bottom: 1px solid rgba(47, 125, 75, 0.1);
}

body:not(.fg-pos-pro-page) .dashboard-collapsible-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

body:not(.fg-pos-pro-page) .admin-hud-icon {
  display: grid;
  place-items: center;
  color: #dffdf5;
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  body.printing-receipt {
    width: 80mm;
    min-width: 80mm;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  body.printing-receipt > *:not(.receipt-preview-overlay) {
    display: none !important;
  }

  body.printing-receipt .receipt-preview-overlay {
    position: static;
    display: block;
    width: 80mm;
    min-width: 80mm;
    padding: 0;
    background: #fff;
  }

  body.printing-receipt .receipt-preview-shell,
  body.printing-receipt .receipt-preview-scroll,
  body.printing-receipt .receipt-print-area {
    display: block;
    width: 80mm;
    min-width: 80mm;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.printing-receipt .receipt-preview-toolbar {
    display: none !important;
  }

  body.printing-receipt .receipt-paper {
    width: 72mm;
    margin: 0;
    padding: 3mm 4mm 6mm;
    color: #000;
    background: #fff;
    font-family: "Courier New", "Consolas", monospace;
    font-size: 10.5px;
    line-height: 1.26;
    white-space: pre-wrap;
    word-break: break-word;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  grid-template-columns: 56px minmax(0, 1fr) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar {
  width: 56px !important;
  min-width: 56px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  max-width: calc(100vw - 56px) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-next-button {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-grid,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-kpi-compact,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .compact-kpi,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-kpi-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-card,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-kpi-compact .kpi-card {
  min-height: 78px !important;
  padding: 8px 9px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .kpi-card strong,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-kpi-compact .kpi-card strong {
  font-size: clamp(0.86rem, 3.4vw, 1.06rem) !important;
}

@media (max-width: 760px) {
  body:not(.fg-pos-pro-page) .app-shell,
  body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
  body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
  body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    grid-template-columns: none !important;
    overflow-x: hidden !important;
  }

  body:not(.fg-pos-pro-page) .sidebar {
    display: none !important;
  }

  body:not(.fg-pos-pro-page) .workspace {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding: 6px !important;
    overflow-x: hidden !important;
  }

  body:not(.fg-pos-pro-page) .topbar {
    position: sticky !important;
    top: 0;
    z-index: 70;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 0 6px !important;
    padding: 7px !important;
    border-radius: 12px !important;
  }

  body:not(.fg-pos-pro-page) .topbar .eyebrow,
  body:not(.fg-pos-pro-page) .topbar-actions a[href="/"],
  body:not(.fg-pos-pro-page) #backup-button {
    display: none !important;
  }

  body:not(.fg-pos-pro-page) .topbar h1 {
    overflow: hidden;
    margin: 0;
    font-size: 0.92rem !important;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.fg-pos-pro-page) .topbar-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px;
    width: 100%;
  }

  body:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
  body:not(.fg-pos-pro-page) .topbar-actions .primary-button,
  body:not(.fg-pos-pro-page) .topbar-actions .icon-button {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 4px 5px !important;
    font-size: 0.66rem !important;
    line-height: 1;
  }

  body:not(.fg-pos-pro-page) .content-panel,
  body:not(.fg-pos-pro-page) .sales-app-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    color: #10261b;
    background:
      radial-gradient(circle at 88% 0%, rgba(47, 125, 75, 0.08), transparent 30%),
      linear-gradient(180deg, #f8fcf9 0%, #ffffff 46%, #edf8f1 100%) !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100dvh;
    grid-template-columns: none !important;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 88% 0%, rgba(47, 125, 75, 0.08), transparent 30%),
      linear-gradient(180deg, #f8fcf9 0%, #ffffff 46%, #edf8f1 100%) !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .sidebar,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar {
    display: none !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .workspace,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    min-height: 100dvh;
    padding: 6px !important;
    overflow-x: hidden;
    background: transparent !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
    position: sticky !important;
    top: 0;
    z-index: 60;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 0 6px !important;
    padding: 7px !important;
    color: #10261b !important;
    border: 1px solid rgba(47, 125, 75, 0.1) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 244, 0.92)) !important;
    box-shadow: 0 8px 18px rgba(31, 48, 36, 0.08) !important;
    backdrop-filter: none !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar > div:first-child {
    min-width: 0;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar .eyebrow {
    display: none !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar h1,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar h1 {
    overflow: hidden;
    margin: 0;
    color: #10261b !important;
    font-size: 0.92rem !important;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-shadow: none !important;
    white-space: nowrap;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions a[href="/"],
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) #backup-button {
    display: none !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .primary-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .topbar-actions .icon-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .ghost-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .primary-button,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions .icon-button {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 4px 5px !important;
    color: #10261b !important;
    border: 1px solid rgba(47, 125, 75, 0.14) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: none !important;
    font-size: 0.66rem !important;
    line-height: 1;
    text-align: center;
    backdrop-filter: none !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) #admin-next-button {
    color: #ffffff !important;
    background: linear-gradient(135deg, #215f38, #2f7d4b) !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .content-panel,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .content-panel,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .sales-app-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: auto !important;
    padding: 0 !important;
    gap: 6px !important;
    overflow-x: hidden !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .section,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .kpi-card,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .empty-state {
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(31, 48, 36, 0.05) !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-screen,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .admin-mobile-menu-screen {
    min-height: calc(100dvh - 58px) !important;
    padding: 8px !important;
    border-radius: 14px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 8px;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head h2,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-head span,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-menu-row strong,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .data-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: calc(100vw - 18px) !important;
    overflow-x: auto !important;
    font-size: 0.68rem !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .data-table th,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .data-table td {
    min-width: 96px;
    padding: 6px 5px !important;
  }

  body.admin-mobile-lite-page:not(.fg-pos-pro-page) input,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) select,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) textarea {
    font-size: 16px !important;
  }
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-screen,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .admin-mobile-menu-screen {
  display: grid !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100dvh - 58px) !important;
  padding: 8px !important;
  overflow: hidden !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.1) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(47, 125, 75, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 242, 0.94)) !important;
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.07) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-head {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) !important;
  gap: 9px !important;
  align-items: center !important;
  min-height: 54px !important;
  padding: 7px 8px !important;
  overflow: hidden !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.11) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-head img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  min-width: 38px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 12px rgba(16, 38, 27, 0.12) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-head .eyebrow {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-head h2 {
  margin: 0 !important;
  overflow: hidden !important;
  color: #10261b !important;
  font-size: 1rem !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-head span {
  display: block !important;
  margin-top: 2px !important;
  overflow: hidden !important;
  color: rgba(16, 38, 27, 0.62) !important;
  font-size: 0.68rem !important;
  line-height: 1.15 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-groups {
  display: grid !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group {
  width: 100% !important;
  overflow: hidden !important;
  border: 1px solid rgba(47, 125, 75, 0.1) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 8px 18px rgba(31, 48, 36, 0.05) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 8px 10px !important;
  color: #10261b !important;
  cursor: pointer !important;
  list-style: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary::-webkit-details-marker {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary strong {
  overflow: hidden !important;
  font-size: 0.86rem !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group summary span {
  flex: 0 0 auto !important;
  color: rgba(16, 38, 27, 0.56) !important;
  font-size: 0.66rem !important;
  white-space: nowrap !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-group > div {
  display: grid !important;
  gap: 6px !important;
  padding: 0 8px 8px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-row,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 5px 8px !important;
  overflow: hidden !important;
  color: #10261b !important;
  border: 1px solid rgba(47, 125, 75, 0.12) !important;
  border-radius: 12px !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 245, 0.9)) !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  text-align: left !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-row span,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button::before {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  overflow: hidden !important;
  color: #ffffff !important;
  border-radius: 11px !important;
  background: var(--menu-color, linear-gradient(135deg, #16a34a, #0f766e)) !important;
  box-shadow: 0 6px 14px rgba(16, 38, 27, 0.12) !important;
  font-size: 1rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-menu-row strong,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-action-grid button {
  min-width: 0 !important;
  overflow: hidden !important;
  font-weight: 800 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-quick-actions,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-mobile-action-grid {
  display: grid !important;
  gap: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar {
  position: sticky !important;
  top: 0 !important;
  display: block !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  padding: 5px 3px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: auto !important;
  max-width: calc(100vw - 44px) !important;
  min-width: 0 !important;
  padding: 5px !important;
  overflow-x: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .brand {
  min-height: 38px !important;
  padding: 4px 0 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .brand-logo {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-list,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .nav-list {
  display: grid !important;
  gap: 5px !important;
  padding-top: 5px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-nav-item,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-child,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .nav-grandchild {
  min-height: 36px !important;
  padding: 2px !important;
  border-radius: 10px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-menu-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  font-size: 0.64rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin-bottom: 5px !important;
  padding: 5px !important;
  border-radius: 11px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) *,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) *::before,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-system-screen,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-screen {
  display: grid !important;
  gap: 8px !important;
  min-height: calc(100dvh - 56px) !important;
  padding: 7px !important;
  overflow-x: hidden !important;
  color: #10261b !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 86% 0%, rgba(47, 125, 75, 0.11), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 242, 0.96)) !important;
  box-shadow: 0 8px 18px rgba(31, 48, 36, 0.06) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-system-screen::before,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-system-screen::after,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-backdrop,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-persona {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-command-wall {
  display: grid !important;
  grid-template-columns: 1fr !important;
  min-height: 138px !important;
  padding: 10px !important;
  overflow: hidden !important;
  border: 1px solid rgba(47, 125, 75, 0.12) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 50% 12%, rgba(33, 95, 56, 0.22), transparent 32%),
    linear-gradient(135deg, rgba(13, 39, 29, 0.96), rgba(17, 83, 55, 0.94)) !important;
  box-shadow: 0 10px 22px rgba(16, 38, 27, 0.13) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-core {
  min-height: 116px !important;
  transform: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-ring {
  width: 108px !important;
  height: 108px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-ring-inner {
  inset: 14px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-ring-inner img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-ring-inner strong {
  font-size: 0.72rem !important;
  line-height: 1.05 !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-ring-inner span {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-core-status {
  bottom: 2px !important;
  gap: 5px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-system-core-status span {
  min-height: 22px !important;
  padding: 4px 7px !important;
  font-size: 0.58rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-system-groups,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-groups {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-group {
  padding: 8px !important;
  overflow: hidden !important;
  border: 1px solid rgba(47, 125, 75, 0.11) !important;
  border-radius: 13px !important;
  color: #10261b !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 8px 18px rgba(31, 48, 36, 0.05) !important;
  backdrop-filter: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .section-header,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-group .section-header {
  align-items: center !important;
  margin-bottom: 6px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .section-header h2,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-group .section-header h2 {
  overflow: hidden !important;
  color: #10261b !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .section-header p,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-group .section-header p {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .status,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-group .status {
  min-height: 22px !important;
  padding: 3px 7px !important;
  color: #14532d !important;
  background: rgba(220, 252, 231, 0.92) !important;
  font-size: 0.58rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-list,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-list {
  display: grid !important;
  gap: 5px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-row,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) !important;
  min-height: 42px !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #10261b !important;
  border-color: rgba(47, 125, 75, 0.2) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color, #16a34a) 10%, #ffffff), rgba(255, 255, 255, 0.98)) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-row .pos-menu-icon,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row .pos-menu-icon {
  width: 32px !important;
  min-height: 42px !important;
  font-size: 0.72rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-row strong,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row strong {
  align-self: center !important;
  min-width: 0 !important;
  padding: 0 9px !important;
  overflow: hidden !important;
  color: #10261b !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-shadow: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-full-menu-row small,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .admin-hud-menu-group .admin-full-menu-row small {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-chart-grid,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-mini-grid,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .two-column,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .transaction-ai-columns {
  grid-template-columns: 1fr !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .dashboard-svg-chart {
  min-height: 145px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .data-table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  font-size: 0.68rem !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .data-table th,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .data-table td {
  min-width: 92px !important;
  padding: 6px 5px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) dialog,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) dialog.admin-record-dialog {
  width: min(96vw, 760px) !important;
  max-height: 88dvh !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) dialog .form-grid,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) dialog.admin-record-dialog #form-fields {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

/* Unified lightweight navigation: one content workspace, no left icon rail. */
body:not(.fg-pos-pro-page) .app-shell,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body.fg-pos-pro-page .app-shell,
body.fg-pos-pro-page .app-shell.sidebar-collapsed,
body.fg-pos-pro-page .app-shell:not(.sidebar-collapsed),
body.fg-pos-pro-page .app-shell.pos-menu-fullscreen {
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

body:not(.fg-pos-pro-page) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body.fg-pos-pro-page .sidebar,
body.fg-pos-pro-page .app-shell.sidebar-collapsed .sidebar,
body.fg-pos-pro-page .app-shell.pos-menu-fullscreen .sidebar {
  display: none !important;
}

body:not(.fg-pos-pro-page) .workspace,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
body.fg-pos-pro-page .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
}

body:not(.fg-pos-pro-page) .topbar-actions a[href="/"],
body:not(.fg-pos-pro-page) #backup-button {
  display: none !important;
}

body:not(.fg-pos-pro-page) #admin-back-button,
body:not(.fg-pos-pro-page) #admin-prev-button,
body:not(.fg-pos-pro-page) #admin-next-button {
  display: inline-flex !important;
}

.module-accordion-panel {
  padding: 12px !important;
  border: 1px solid rgba(47, 125, 75, 0.11) !important;
  background:
    radial-gradient(circle at 95% 0%, rgba(245, 183, 62, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(239, 250, 244, 0.92)) !important;
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.06) !important;
}

.module-accordion-panel .section-header {
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.module-accordion-panel .section-header p {
  margin-top: 2px;
  color: rgba(16, 38, 27, 0.62);
  font-size: 0.78rem;
}

.module-inline-nav {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
}

.module-inline-nav .ghost-button {
  min-width: 42px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
}

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

.module-menu-group,
details.admin-full-menu-group.module-menu-group {
  overflow: hidden;
  border: 1px solid rgba(47, 125, 75, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.module-menu-group > summary,
details.admin-full-menu-group.module-menu-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.module-menu-group > summary::-webkit-details-marker,
details.admin-full-menu-group.module-menu-group > summary::-webkit-details-marker {
  display: none;
}

.module-menu-group h2,
.module-menu-group h3,
details.admin-full-menu-group.module-menu-group h2 {
  margin: 0;
  color: #10261b;
  font-size: 0.95rem;
  line-height: 1.12;
}

.module-menu-group p,
details.admin-full-menu-group.module-menu-group p {
  margin: 3px 0 0;
  color: rgba(16, 38, 27, 0.6);
  font-size: 0.72rem;
  line-height: 1.25;
}

.module-menu-summary-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.module-toggle-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 9px;
  color: #14532d;
  background: rgba(220, 252, 231, 0.85);
  font-weight: 900;
}

.module-toggle-symbol .open {
  display: none;
}

.module-menu-group[open] .module-toggle-symbol .closed {
  display: none;
}

.module-menu-group[open] .module-toggle-symbol .open {
  display: inline;
}

.module-menu-list,
details.admin-full-menu-group.module-menu-group .admin-full-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 7px;
  padding: 0 10px 10px;
}

.module-menu-button,
details.admin-full-menu-group.module-menu-group .admin-full-menu-row {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 0;
  overflow: hidden;
  color: #10261b;
  border: 1px solid rgba(47, 125, 75, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color, #16a34a) 11%, #ffffff), rgba(255, 255, 255, 0.98));
  box-shadow: none;
  text-align: left;
}

.module-menu-button .pos-menu-icon,
details.admin-full-menu-group.module-menu-group .admin-full-menu-row .pos-menu-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 100%;
  min-height: 46px;
  color: #ffffff;
  background: var(--menu-color, linear-gradient(135deg, #16a34a, #0f766e));
  border-radius: 0;
  font-weight: 900;
}

.module-menu-button strong,
details.admin-full-menu-group.module-menu-group .admin-full-menu-row strong {
  min-width: 0;
  padding: 0 8px 0 0;
  overflow: hidden;
  color: #10261b;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-menu-button small,
details.admin-full-menu-group.module-menu-group .admin-full-menu-row small {
  display: none;
}

.module-menu-button.active {
  border-color: rgba(20, 83, 45, 0.34);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color, #16a34a) 22%, #ffffff), rgba(255, 255, 255, 0.98));
}

@media (max-width: 760px) {
  body:not(.fg-pos-pro-page) .workspace,
  body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
  body.fg-pos-pro-page .workspace {
    padding: 5px !important;
  }

  body:not(.fg-pos-pro-page) .topbar {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body:not(.fg-pos-pro-page) .topbar-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, auto)) !important;
    gap: 4px !important;
  }

  body:not(.fg-pos-pro-page) .topbar-actions .ghost-button,
  body:not(.fg-pos-pro-page) .topbar-actions .primary-button,
  body:not(.fg-pos-pro-page) .topbar-actions .icon-button {
    min-width: 36px !important;
    min-height: 30px !important;
    padding: 4px 7px !important;
    font-size: 0.68rem !important;
  }

  .module-accordion-panel {
    padding: 8px !important;
  }

  .module-accordion-panel .section-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .module-accordion-panel .section-header p {
    display: none;
  }

  .module-menu-list,
  details.admin-full-menu-group.module-menu-group .admin-full-menu-list {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 7px 7px;
  }

  .module-menu-group > summary,
  details.admin-full-menu-group.module-menu-group > summary {
    min-height: 38px;
    padding: 8px 9px;
  }

  .module-menu-group p,
  details.admin-full-menu-group.module-menu-group p {
    display: none;
  }

  .module-menu-button,
  details.admin-full-menu-group.module-menu-group .admin-full-menu-row {
    min-height: 40px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .module-menu-button .pos-menu-icon,
  details.admin-full-menu-group.module-menu-group .admin-full-menu-row .pos-menu-icon {
    width: 32px;
    min-height: 40px;
    font-size: 0.7rem;
  }

  .module-menu-button strong,
  details.admin-full-menu-group.module-menu-group .admin-full-menu-row strong {
    font-size: 0.74rem;
  }
}

/* Final priority override: remove the old 44px admin rail on every device. */
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body:not(.fg-pos-pro-page) .app-shell,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body:not(.fg-pos-pro-page) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
body:not(.fg-pos-pro-page) .workspace,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  padding-inline: clamp(5px, 1.2vw, 14px) !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-back-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-prev-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-next-button,
body:not(.fg-pos-pro-page) #admin-back-button,
body:not(.fg-pos-pro-page) #admin-prev-button,
body:not(.fg-pos-pro-page) #admin-next-button {
  display: inline-flex !important;
}

body.fg-pos-pro-page .app-shell,
body.fg-pos-pro-page .app-shell.sidebar-collapsed,
body.fg-pos-pro-page .app-shell:not(.sidebar-collapsed),
body.fg-pos-pro-page .app-shell.pos-menu-fullscreen,
body.fg-pos-pro-android-page .app-shell,
body.fg-pos-pro-android-page .app-shell.sidebar-collapsed,
body.fg-pos-pro-android-page .app-shell:not(.sidebar-collapsed),
body.fg-pos-pro-android-page .app-shell.pos-menu-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.fg-pos-pro-page .sidebar,
body.fg-pos-pro-page .app-shell.sidebar-collapsed .sidebar,
body.fg-pos-pro-page .app-shell.pos-menu-fullscreen .sidebar,
body.fg-pos-pro-android-page .sidebar,
body.fg-pos-pro-android-page .app-shell.sidebar-collapsed .sidebar,
body.fg-pos-pro-android-page .app-shell.pos-menu-fullscreen .sidebar {
  display: none !important;
}

body.fg-pos-pro-page .workspace,
body.fg-pos-pro-android-page .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
}

/* Admin phone drill-down navigation. Desktop is restored to the original sidebar layout. */
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  grid-template-columns: 248px minmax(0, 1fr) !important;
  width: auto !important;
  max-width: none !important;
  overflow-x: visible !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr) !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar {
  position: sticky !important;
  top: 0 !important;
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding-inline: 28px !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .topbar-actions a[href="/"] {
  display: inline-flex !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) #backup-button {
  display: inline-grid !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) #admin-prev-button {
  display: none !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) #admin-back-button[hidden],
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) #admin-next-button[hidden],
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-back-button[hidden],
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-prev-button[hidden],
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-next-button[hidden] {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 5px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions a[href="/"],
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #backup-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-prev-button,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) #admin-next-button {
  display: none !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 5px !important;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .topbar-actions .ghost-button {
  min-width: 38px !important;
  min-height: 32px !important;
  padding: 5px 9px !important;
}

.admin-phone-drill-screen {
  display: grid;
  gap: 10px;
  min-height: calc(100dvh - 64px);
  padding: 10px;
  border: 1px solid rgba(47, 125, 75, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 183, 62, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 244, 0.95));
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.06);
}

.admin-phone-drill-head {
  padding: 10px 11px;
  border: 1px solid rgba(47, 125, 75, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-phone-drill-head h2 {
  margin: 2px 0 4px;
  color: #10261b;
  font-size: 1.06rem;
  line-height: 1.14;
}

.admin-phone-drill-head span {
  display: block;
  color: rgba(16, 38, 27, 0.64);
  font-size: 0.76rem;
  line-height: 1.28;
}

.admin-phone-drill-list {
  display: grid;
  gap: 7px;
}

.admin-phone-menu-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 10px 0 0;
  overflow: hidden;
  color: #10261b;
  border: 1px solid rgba(47, 125, 75, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--menu-color, #16a34a) 15%, #ffffff), rgba(255, 255, 255, 0.96));
  box-shadow: 0 7px 16px rgba(31, 48, 36, 0.05);
  text-align: left;
}

.admin-phone-menu-button .pos-menu-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 100%;
  min-height: 52px;
  color: #fff;
  background: var(--menu-color, linear-gradient(135deg, #16a34a, #0f766e));
  border-radius: 0;
  font-size: 0.76rem;
  font-weight: 900;
}

.admin-phone-menu-button strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #10261b;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-phone-menu-button small {
  display: block;
  min-width: 0;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(16, 38, 27, 0.58);
  font-size: 0.66rem;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Restore unified responsive HUD menu screen. */
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen:not(.sidebar-collapsed) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar {
  display: none !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  padding-inline: clamp(10px, 2vw, 28px) !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar {
  display: grid !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .content-panel {
  width: 100% !important;
  max-width: none !important;
}

/* Ultra slim admin left rail after entering a module/dashboard. */
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen),
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) {
  grid-template-columns: 52px minmax(0, 1fr) !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .sidebar {
  display: flex !important;
  width: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  padding: 8px 5px !important;
  overflow: hidden !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .brand,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .brand {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 14px !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .brand div,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .brand div {
  display: none !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .brand-logo,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .brand-logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-list,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .nav-list {
  display: grid !important;
  gap: 6px !important;
  width: 42px !important;
  padding: 0 !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-nav-item,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-child,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-grandchild,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .admin-nav-item,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .nav-child,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .nav-grandchild {
  display: grid !important;
  grid-template-columns: 42px !important;
  place-items: center !important;
  width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 13px !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-menu-icon,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .admin-menu-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .admin-nav-item > span:nth-child(2),
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-caret,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .admin-nav-item > span:nth-child(2),
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .nav-caret {
  display: none !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-sublist,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .nav-sublist-deep,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .nav-sublist,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .nav-sublist-deep {
  display: none !important;
}

body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .workspace {
  padding-inline: clamp(14px, 2vw, 24px) !important;
}

/* Hard lock: the initial HUD/menu screen must be full width with no left rail. */
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  padding-inline: clamp(8px, 1.7vw, 24px) !important;
}

/* Clean admin header: remove secondary text/actions and move work actions to the bottom. */
body:not(.fg-pos-pro-page) .topbar {
  min-height: 48px !important;
  margin-bottom: 10px !important;
  padding: 6px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.fg-pos-pro-page) .topbar .eyebrow {
  display: none !important;
}

body:not(.fg-pos-pro-page) #backup-button,
body:not(.fg-pos-pro-page) #logout-button,
body:not(.fg-pos-pro-page) #admin-prev-button,
body:not(.fg-pos-pro-page) #admin-next-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.fg-pos-pro-page) .topbar h1 {
  font-size: clamp(1.2rem, 2vw, 1.7rem) !important;
}

body:not(.fg-pos-pro-page) .workspace {
  padding-bottom: 78px !important;
}

body:not(.fg-pos-pro-page) #admin-back-button,
body:not(.fg-pos-pro-page) #new-record-button {
  position: fixed !important;
  bottom: 14px !important;
  z-index: 90 !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 32px rgba(16, 38, 27, 0.16) !important;
}

body:not(.fg-pos-pro-page) #admin-back-button {
  left: 16px !important;
}

body:not(.fg-pos-pro-page) #new-record-button {
  right: 16px !important;
}

body:not(.fg-pos-pro-page) #admin-back-button[hidden],
body:not(.fg-pos-pro-page) #new-record-button[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Admin top navigation: left back/menu button for every working screen. */
body:not(.fg-pos-pro-page) .topbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
}

body:not(.fg-pos-pro-page) .admin-left-back-button {
  justify-self: start !important;
  min-width: 42px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  color: #10261b !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(235, 248, 241, 0.92)) !important;
  box-shadow: 0 8px 18px rgba(16, 38, 27, 0.08) !important;
}

body:not(.fg-pos-pro-page) .admin-left-back-button[hidden] {
  display: none !important;
}

body:not(.fg-pos-pro-page) .topbar > div:first-of-type {
  min-width: 0 !important;
}

body:not(.fg-pos-pro-page) .topbar > div:first-of-type h1 {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:not(.fg-pos-pro-page) .admin-phone-drill-screen {
  min-height: calc(100dvh - 86px) !important;
}

/* Absolute final HUD action lock: only Website may remain visible. */
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #sync-status,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #backup-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #admin-back-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #admin-prev-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #admin-next-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #logout-button,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #new-record-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions > a[href="/"] {
  display: inline-flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body:not(.fg-pos-pro-page) .admin-entry-ring {
  cursor: pointer;
  border: 0 !important;
  appearance: none;
}

body:not(.fg-pos-pro-page) .admin-entry-ring:hover,
body:not(.fg-pos-pro-page) .admin-entry-ring:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

/* HUD center logo: show the cooperative mark as the main button, without text. */
body:not(.fg-pos-pro-page) .admin-entry-ring .admin-system-ring-inner {
  width: 72% !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 58%),
    linear-gradient(145deg, rgba(3, 33, 30, 0.62), rgba(2, 9, 15, 0.5)) !important;
}

body:not(.fg-pos-pro-page) .admin-entry-ring .admin-system-ring-inner img {
  width: 88% !important;
  height: 88% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1px solid rgba(211, 255, 247, 0.55) !important;
  box-shadow:
    0 0 34px rgba(45, 212, 191, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body:not(.fg-pos-pro-page) .admin-entry-ring .admin-system-ring-inner strong,
body:not(.fg-pos-pro-page) .admin-entry-ring .admin-system-ring-inner span {
  display: none !important;
}

/* HUD topbar: keep only the public Website shortcut. */
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions > * {
  display: none !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .topbar-actions > a[href="/"] {
  display: inline-flex !important;
}

/* Final admin layout: no left rail anywhere, full-width content after the HUD gate. */
body:not(.fg-pos-pro-page) .app-shell,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

body:not(.fg-pos-pro-page) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body:not(.fg-pos-pro-page) .workspace,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .workspace,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .workspace,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  padding-inline: clamp(8px, 1.7vw, 24px) !important;
}

/* Compact work panels: the active page title already lives in the topbar. */
body:not(.fg-pos-pro-page) .compact-work-header {
  justify-content: flex-end !important;
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

body:not(.fg-pos-pro-page) .compact-work-header .table-actions {
  margin-left: auto !important;
}

body:not(.fg-pos-pro-page) .compact-work-section {
  padding-top: 14px !important;
}

body:not(.fg-pos-pro-page) .compact-work-note {
  margin: 0 0 12px !important;
  padding: 10px 12px !important;
  border-left: 3px solid rgba(22, 163, 74, 0.55) !important;
  border-radius: 12px !important;
  color: #334155 !important;
  background: rgba(236, 253, 245, 0.72) !important;
  font-size: 0.9rem !important;
  line-height: 1.45 !important;
}

/* Final admin work-screen lock: one title, one action row, no floating duplicate buttons. */
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 85 !important;
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  min-height: 44px !important;
  margin: 0 0 8px !important;
  padding: 5px 0 8px !important;
  border: 0 !important;
  background:
    linear-gradient(180deg, rgba(246, 252, 248, 0.98), rgba(246, 252, 248, 0.88)) !important;
  box-shadow: 0 8px 18px rgba(16, 38, 27, 0.05) !important;
  backdrop-filter: blur(12px) !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar > div:first-of-type {
  min-width: 0 !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar h1 {
  margin: 0 !important;
  overflow: hidden !important;
  color: #10261b !important;
  font-size: clamp(0.98rem, 1.45vw, 1.28rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #admin-back-button {
  position: static !important;
  inset: auto !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 13px !important;
  color: #0f5132 !important;
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(225, 247, 235, 0.96)) !important;
  box-shadow: 0 8px 18px rgba(16, 38, 27, 0.08) !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .topbar-actions > a[href="/"],
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #sync-status,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #backup-button,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #logout-button,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #admin-prev-button,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #admin-next-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #new-record-button {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: min(34vw, 220px) !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  border-radius: 13px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(16, 38, 27, 0.1) !important;
}

body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #new-record-button[hidden],
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) #admin-back-button[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.fg-pos-pro-page) .workspace {
  padding-bottom: 24px !important;
}

body:not(.fg-pos-pro-page) .section-header {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
}

body:not(.fg-pos-pro-page) .section-header h2 {
  margin: 0 !important;
  font-size: clamp(0.96rem, 1.35vw, 1.18rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

body:not(.fg-pos-pro-page) .section-header p,
body:not(.fg-pos-pro-page) .admin-phone-drill-head span,
body:not(.fg-pos-pro-page) .admin-phone-menu-button small {
  font-size: 0.78rem !important;
}

body:not(.fg-pos-pro-page) .module-inline-nav {
  display: none !important;
}

body:not(.fg-pos-pro-page) .compact-work-header {
  justify-content: flex-end !important;
  min-height: 0 !important;
}

/* Final strict layout requested: no left menu, no duplicate global header on work panels. */
body:not(.fg-pos-pro-page) .app-shell,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed),
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

body:not(.fg-pos-pro-page) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body:not(.fg-pos-pro-page) .workspace,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .workspace,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .workspace,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .workspace,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .workspace {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  padding-inline: clamp(10px, 1.8vw, 24px) !important;
}

body:not(.fg-pos-pro-page) .sidebar {
  display: none !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-work-inline-toolbar .topbar {
  display: none !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-work-inline-toolbar .content-panel {
  padding-top: 0 !important;
}

body:not(.fg-pos-pro-page) .admin-work-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 8px 10px;
  position: sticky;
  top: 0;
  z-index: 45;
  border: 1px solid rgba(47, 125, 75, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 251, 244, 0.94));
  box-shadow: 0 12px 30px rgba(16, 38, 27, 0.07);
}

body:not(.fg-pos-pro-page) .app-shell.admin-work-inline-toolbar .admin-work-toolbar {
  position: sticky !important;
  top: 8px !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin: 0 0 12px !important;
}

body:not(.fg-pos-pro-page) .admin-work-back-button {
  display: inline-grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 72px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  color: #0f5132 !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
  background: rgba(220, 252, 231, 0.92) !important;
}

.toolbar-label-compact {
  display: none;
}

body:not(.fg-pos-pro-page) .admin-work-toolbar > strong {
  min-width: 0;
  overflow: hidden;
  color: #10261b;
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.fg-pos-pro-page) .admin-work-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body:not(.fg-pos-pro-page) .admin-work-actions:empty {
  display: none;
}

body:not(.fg-pos-pro-page) .admin-work-actions .ghost-button,
body:not(.fg-pos-pro-page) .admin-work-actions .primary-button {
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
}

body:not(.fg-pos-pro-page) .admin-work-logout-button {
  color: #8e302b !important;
  border-color: rgba(182, 66, 60, 0.24) !important;
  background: rgba(255, 247, 246, 0.96) !important;
}

body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen #logout-button {
  display: inline-flex !important;
  align-items: center !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body:not(.fg-pos-pro-page) .admin-report-section {
  padding: 0 !important;
  overflow: hidden;
}

body:not(.fg-pos-pro-page) .admin-report-section + .admin-report-section,
body:not(.fg-pos-pro-page) .two-column + .admin-report-section,
body:not(.fg-pos-pro-page) .admin-report-section + .two-column {
  margin-top: 12px;
}

body:not(.fg-pos-pro-page) .admin-report-section-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(47, 125, 75, 0.1);
}

body:not(.fg-pos-pro-page) .admin-report-section-header h2 {
  font-size: clamp(0.95rem, 1.35vw, 1.12rem) !important;
  line-height: 1.12 !important;
}

body:not(.fg-pos-pro-page) .admin-report-section-header p {
  max-width: 72ch;
  margin-top: 3px !important;
  font-size: 0.76rem !important;
  line-height: 1.25 !important;
}

body:not(.fg-pos-pro-page) .admin-report-toggle {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  color: #0f5132 !important;
  background: rgba(220, 252, 231, 0.92) !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

body:not(.fg-pos-pro-page) .admin-collapsible-section > .section-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
}

body:not(.fg-pos-pro-page) .admin-section-toggle {
  display: inline-grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  color: #0f5132 !important;
  background: rgba(220, 252, 231, 0.92) !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body:not(.fg-pos-pro-page) .admin-collapsible-section.is-collapsed > :not(.section-header) {
  display: none !important;
}

body:not(.fg-pos-pro-page) .admin-collapsible-section.is-collapsed {
  padding-bottom: 8px !important;
}

body:not(.fg-pos-pro-page) .admin-report-section-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

@media (max-width: 720px) {
  body:not(.fg-pos-pro-page) .admin-work-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 7px 8px;
  }

  body:not(.fg-pos-pro-page) .admin-work-back-button {
    min-width: 64px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 0.76rem !important;
  }

  body:not(.fg-pos-pro-page) .admin-work-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  body:not(.fg-pos-pro-page) .admin-work-actions .ghost-button,
  body:not(.fg-pos-pro-page) .admin-work-actions .primary-button {
    flex: 1 1 140px;
  }

  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 50px;
  }

  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) .admin-work-back-button {
    width: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
  }

  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) .admin-back-label,
  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) .toolbar-label-full {
    display: none;
  }

  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) .toolbar-label-compact {
    display: inline;
  }

  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) .admin-work-actions {
    grid-column: auto;
    justify-content: flex-end;
    min-width: 0;
  }

  body:not(.fg-pos-pro-page) .admin-work-toolbar:has([data-context-add="accessRequests"]) .admin-work-actions .primary-button {
    flex: 0 0 auto;
    min-height: 34px !important;
    padding-inline: 10px !important;
    white-space: nowrap;
  }

  body:not(.fg-pos-pro-page) .admin-report-section-header {
    min-height: 48px;
    padding: 9px 10px !important;
  }

  body:not(.fg-pos-pro-page) .admin-report-section-header p {
    display: none;
  }

  body:not(.fg-pos-pro-page) .admin-report-section-body {
    padding: 10px;
  }
}

body:not(.fg-pos-pro-page) .sidebar,
body:not(.fg-pos-pro-page) .app-shell .sidebar,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed .sidebar,
body:not(.fg-pos-pro-page) .app-shell:not(.sidebar-collapsed) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.admin-menu-fullscreen .sidebar,
body:not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .sidebar,
body:not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell:not(.admin-menu-fullscreen) .sidebar,
body:not(.admin-phone-laptop-page):not(.fg-pos-pro-page) .app-shell.sidebar-collapsed:not(.admin-menu-fullscreen) .sidebar,
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell .sidebar {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
}

.physical-stock-vault {
  border-top: 3px solid #0f9f72;
}

.physical-stock-vault-embedded {
  margin-top: 14px;
}

.physical-stock-kpis {
  margin: 12px 0 16px;
}

.physical-stock-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.physical-stock-review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 159, 114, 0.22);
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.physical-stock-review-card > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 10px;
}

.physical-stock-review-card > div:first-child strong,
.physical-stock-review-card > div:first-child small {
  grid-column: 2;
}

.physical-stock-review-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.physical-stock-review-card dl div {
  padding: 9px;
  border-radius: 6px;
  background: #f5faf7;
}

.physical-stock-review-card dt {
  color: #667085;
  font-size: 0.72rem;
}

.physical-stock-review-card dd {
  margin: 3px 0 0;
  color: #17251e;
  font-size: 0.88rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.physical-stock-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.physical-stock-review-actions button {
  min-height: 36px;
}

.physical-stock-history {
  min-width: 0;
  overflow-x: auto;
}

@media (max-width: 720px) {
  .physical-stock-review-grid {
    grid-template-columns: 1fr;
  }

  .physical-stock-review-card dl {
    grid-template-columns: 1fr 1fr;
  }

  .physical-stock-review-actions button {
    flex: 1 1 90px;
  }
}
/* FG POS PRO operational modules */
.pos-operational-section,
.pos-settings-section { border-top: 3px solid var(--menu-color, #0f9f6e); }
.pos-operational-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pos-operational-toolbar > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.pos-operational-toolbar h2,
.pos-operational-toolbar span { margin: 0; }
.pos-operational-toolbar > div:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-operational-list { display: grid; gap: 6px; }
.pos-operational-row { width: 100%; display: grid; grid-template-columns: 110px minmax(130px, .7fr) minmax(180px, 1fr) minmax(180px, 1.2fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dbe7e2; border-radius: 6px; background: #fff; color: #14231d; text-align: left; }
.pos-operational-row:hover { border-color: var(--menu-color, #0f9f6e); background: #f4fbf7; }
.pos-operational-row span,
.pos-operational-row small { color: #61736c; }
.pos-operational-row em { color: #087a54; font-style: normal; font-weight: 800; }
.pos-operational-modal { width: min(920px, calc(100vw - 28px)); max-height: 90vh; overflow: auto; }
.pos-operational-filter-grid,
.pos-operational-form { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(160px, .55fr)); gap: 10px; }
.pos-operational-filter-grid { grid-template-columns: minmax(220px, 1fr) minmax(230px, .7fr); align-items: end; }
.pos-operational-period-control .pos-date-range-button { width: 100%; }
.pos-operational-filter-grid label,
.pos-operational-form label { display: grid; gap: 5px; color: #34463f; font-size: .84rem; font-weight: 700; }
.pos-operational-filter-grid input,
.pos-operational-form input,
.pos-operational-form textarea { min-height: 42px; padding: 9px 10px; border: 1px solid #cfdcd6; border-radius: 6px; background: #fff; color: #14231d; }
.pos-operational-modal [data-pos-operational-results] { margin-top: 14px; }
.pos-active-shift { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 9px 12px; border-left: 4px solid #10b981; background: #ecfdf5; }
.pos-shift-summary { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 7px; }
.pos-shift-summary > div { padding: 9px; border: 1px solid #d8e6df; background: #f7fbf9; }
.pos-shift-summary span,
.pos-shift-summary strong { display: block; }
.pos-settings-section > summary { cursor: pointer; font-size: 1rem; font-weight: 800; color: #173b2e; }
.pos-settings-section[open] > summary { margin-bottom: 14px; }
@media (max-width: 760px) {
  .pos-operational-toolbar,
  .pos-active-shift { align-items: stretch; flex-direction: column; }
  .pos-operational-row {
    grid-template-columns: 74px minmax(0, 1fr);
    min-width: 0;
    gap: 5px 8px;
    padding: 9px;
  }
  .pos-operational-row b,
  .pos-operational-row small,
  .pos-operational-row em { grid-column: 2; }
  .pos-operational-list { overflow-x: hidden; }
  .pos-operational-filter-grid,
  .pos-operational-form { grid-template-columns: 1fr; }
  .pos-shift-summary { grid-template-columns: repeat(2, 1fr); }
}

/* Final compact tablet navigation: short row, large touch target. */
body.fg-pos-pro-page .pos-back-menu-row {
  height: 24px !important;
  min-height: 24px !important;
  margin-bottom: -12px !important;
}

body.fg-pos-pro-page .pos-back-menu-button {
  width: 46px !important;
  height: 34px !important;
  min-height: 34px !important;
}

body.fg-pos-pro-page .pos-back-menu-button span {
  width: 38px !important;
  height: 28px !important;
  font-size: 1.4rem !important;
}

body.fg-pos-pro-page .pos-cashier-topbar,
body.fg-pos-pro-page.fg-pos-pro-android-page .pos-cashier-topbar {
  min-height: 36px !important;
  padding: 3px 7px !important;
  gap: 7px !important;
}

body.fg-pos-pro-page .pos-cashier-topbar > .icon-button:first-child {
  width: 44px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  font-size: 1.35rem !important;
}

/* Admin sales reports: one index, one full-width report per page. */
.sales-report-page-index {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: calc(100vh - 112px);
}

.sales-report-page-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border: 1px solid #dbe8e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(25, 58, 45, 0.06);
}

.sales-report-page-index-header h2,
.sales-report-page-index-header p {
  margin: 0;
}

.sales-report-page-index-header h2 {
  color: #163d30;
  font-size: 1.08rem;
}

.sales-report-page-index-header p {
  margin-top: 4px;
  color: #687a73;
  font-size: 0.78rem;
}

.sales-report-page-index-header > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #bfe1d2;
  border-radius: 6px;
  background: #effaf5;
  color: #087a54;
  font-size: 0.76rem;
  font-weight: 800;
}

.sales-report-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.sales-report-page-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid #d9e6e0;
  border-radius: 8px;
  background: #ffffff;
  color: #17251f;
  text-align: left;
  box-shadow: 0 6px 18px rgba(20, 55, 42, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.sales-report-page-card:hover,
.sales-report-page-card:focus-visible {
  border-color: #19a875;
  box-shadow: 0 10px 24px rgba(18, 118, 82, 0.12);
  transform: translateY(-1px);
}

.sales-report-page-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  background: #087a54;
  color: #ffffff;
  font-size: 1.24rem;
  font-weight: 900;
}

/* Admin transaction filters and evidence workflow. */
.admin-transaction-filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr) minmax(170px, 0.55fr) auto;
  align-items: end;
  gap: 9px;
}

.admin-transaction-filter-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 9px;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid #cadbd3;
  border-radius: 7px;
  background: #ffffff;
  color: #17251f;
  text-align: left;
}

.admin-transaction-filter-button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #eaf8f1;
  font-size: 1rem;
}

.admin-transaction-filter-button strong,
.admin-transaction-filter-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-transaction-filter-button strong { font-size: 0.82rem; }
.admin-transaction-filter-button small { color: #687a72; font-size: 0.68rem; }

.admin-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 31, 25, 0.58);
  backdrop-filter: blur(4px);
}

.admin-filter-overlay-panel {
  display: grid;
  gap: 12px;
  width: min(820px, 100%);
  max-height: min(720px, calc(100dvh - 36px));
  min-height: 0;
  padding: 15px;
  overflow: hidden;
  border: 1px solid #cddfd6;
  border-radius: 8px;
  background: #f9fcfa;
  box-shadow: 0 24px 70px rgba(8, 38, 27, 0.25);
}

.admin-transaction-search-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(720px, calc(100dvh - 36px));
}

.admin-filter-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-filter-overlay-head > div { display: grid; gap: 3px; }
.admin-filter-overlay-head strong { color: #173a2e; font-size: 1rem; }
.admin-filter-overlay-head small { color: #64766e; font-size: 0.74rem; }

.admin-filter-overlay-search {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #a8c8b9;
  border-radius: 6px;
  background: #ffffff;
  color: #15241e;
  font-size: 0.9rem;
}

.admin-transaction-search-results {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.admin-transaction-search-result {
  display: grid;
  grid-template-columns: 34px minmax(120px, 0.6fr) minmax(180px, 1.4fr) minmax(140px, 0.65fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #d8e6df;
  border-radius: 6px;
  background: #ffffff;
  color: #17251f;
  text-align: left;
}

.admin-transaction-search-result:hover { border-color: #15966a; background: #f0faf5; }
.admin-transaction-search-result > span { font-size: 1.05rem; text-align: center; }
.admin-transaction-search-result strong { font-size: 0.78rem; }
.admin-transaction-search-result small { color: #62746c; font-size: 0.7rem; }
.admin-transaction-search-result em { color: #087a54; font-size: 0.7rem; font-style: normal; font-weight: 750; text-align: right; }

.admin-period-overlay-panel { width: min(560px, 100%); }
.admin-period-range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-period-range-grid label { display: grid; gap: 5px; color: #33483f; font-size: 0.76rem; font-weight: 750; }
.admin-period-range-grid input { min-height: 43px; padding: 8px 10px; border: 1px solid #cadbd3; border-radius: 6px; background: #fff; }
.admin-filter-overlay-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Cashier-style transaction entry inside the Admin overlay. */
.admin-sales-cashier-panel {
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1px solid #bddbcd;
  border-left: 4px solid #0f9f72;
  border-radius: 8px;
  background: #f7fcf9;
}

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

.admin-sales-cashier-head > div:first-child {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 2px 8px;
}

.admin-sales-cashier-head > div:first-child > span { grid-row: 1 / 3; font-size: 1.25rem; }
.admin-sales-cashier-head strong { color: #173a2e; font-size: 0.9rem; }
.admin-sales-cashier-head small { color: #66776f; font-size: 0.7rem; }
.admin-sales-cashier-head > div:last-child { display: flex; gap: 7px; }

.admin-sales-cashier-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
}

.admin-sales-cashier-grid label {
  display: grid;
  gap: 4px;
  color: #40534a;
  font-size: 0.7rem;
  font-weight: 750;
}

.admin-sales-cashier-grid label.wide { grid-column: span 2; }
.admin-sales-cashier-grid input,
.admin-sales-cashier-grid select {
  min-width: 0;
  min-height: 39px;
  padding: 7px 8px;
  border: 1px solid #ccdcd4;
  border-radius: 6px;
  background: #ffffff;
  color: #14231d;
  font-size: 0.78rem;
}

body:not(.fg-pos-pro-page) dialog.admin-sales-dialog {
  width: min(1240px, calc(100vw - 24px));
  max-height: min(94dvh, 900px);
}

.admin-sales-cart-table {
  min-width: 0;
  max-height: min(40dvh, 430px);
  overflow: auto;
  border: 1px solid #cfdfd7;
  border-radius: 7px;
  background: #ffffff;
  scrollbar-gutter: stable;
}

.admin-sales-cart-heading,
.admin-sales-cart-row {
  display: grid;
  grid-template-columns: minmax(210px, 2fr) minmax(62px, 0.55fr) minmax(108px, 0.9fr) minmax(72px, 0.55fr) minmax(120px, 1fr) minmax(112px, 0.95fr);
  align-items: center;
  gap: 8px;
  min-width: 760px;
}

.admin-sales-cart-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 10px;
  border-bottom: 1px solid #c9ddd3;
  background: #eaf6f0;
  color: #365349;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-sales-cart-row {
  width: 100%;
  min-height: 52px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e7efeb;
  border-radius: 0;
  background: #ffffff;
  color: #17251f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-sales-cart-row:last-child { border-bottom: 0; }
.admin-sales-cart-row:hover,
.admin-sales-cart-row:focus-visible { background: #f0faf5; outline: 2px solid #24a879; outline-offset: -2px; }
.admin-sales-cart-row > span,
.admin-sales-cart-row > strong { min-width: 0; font-size: 0.72rem; overflow-wrap: anywhere; }
.admin-sales-cart-row > span:first-child { display: grid; gap: 2px; }
.admin-sales-cart-row > span:first-child strong { color: #173a2e; font-size: 0.76rem; }
.admin-sales-cart-row > span:first-child small { color: #718078; font-size: 0.64rem; }
.admin-sales-cart-table .empty-state { margin: 0; border: 0; border-radius: 0; }

.admin-sales-line-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 28, 22, 0.58);
  backdrop-filter: blur(4px);
}

.admin-sales-line-modal {
  width: min(720px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #b9d8c9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 39, 28, 0.28);
}

.admin-sales-line-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #deebe5;
}

.admin-sales-line-modal-head > div { display: grid; gap: 2px; min-width: 0; }
.admin-sales-line-modal-head strong { color: #173a2e; font-size: 1rem; overflow-wrap: anywhere; }
.admin-sales-line-modal-head small { color: #65776f; font-size: 0.72rem; }

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

.admin-sales-line-form label {
  display: grid;
  gap: 5px;
  color: #40534a;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-sales-line-form label.wide { grid-column: 1 / -1; }
.admin-sales-line-form input,
.admin-sales-line-form select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #c7d9d0;
  border-radius: 6px;
  background: #ffffff;
  color: #14231d;
  font-size: 0.82rem;
}

.admin-sales-qty-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
}

.admin-sales-qty-stepper button {
  border: 1px solid #acd0bf;
  border-radius: 6px;
  background: #e9f7f0;
  color: #087052;
  font-size: 1.2rem;
  font-weight: 850;
}

.admin-sales-line-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 7px;
  background: #edf7f2;
}

.admin-sales-line-preview span { display: grid; gap: 3px; color: #5d7067; font-size: 0.68rem; }
.admin-sales-line-preview strong { color: #173a2e; font-size: 0.82rem; }
.admin-sales-line-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; }

.admin-sales-line-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #173a2e;
  color: #ffffff;
}

.admin-sales-line-summary span,
.admin-sales-line-summary small { font-size: 0.7rem; }
.admin-sales-line-summary strong { font-size: 0.95rem; }
.admin-sales-line-summary small { color: #d9f2e6; text-align: right; }

.evidence-file-link {
  display: block;
  margin-top: 3px;
  color: #087a54;
  font-size: 0.7rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .admin-transaction-filter-row { grid-template-columns: 1fr 1fr; }
  .admin-sales-cashier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .admin-transaction-filter-row { grid-template-columns: 1fr; }
  .admin-filter-overlay { padding: 8px; }
  .admin-filter-overlay-panel { max-height: calc(100dvh - 16px); padding: 11px; }
  .admin-transaction-search-panel { height: calc(100dvh - 16px); }
  .admin-transaction-search-result { grid-template-columns: 30px minmax(0, 1fr); }
  .admin-transaction-search-result small,
  .admin-transaction-search-result em { grid-column: 2; text-align: left; }
  .admin-period-range-grid,
  .admin-sales-cashier-grid { grid-template-columns: 1fr; }
  .admin-sales-cashier-grid label.wide { grid-column: auto; }
  .admin-sales-cashier-head { align-items: stretch; flex-direction: column; }
  .admin-sales-cashier-head > div:last-child button { flex: 1; }
  .admin-sales-line-summary { grid-template-columns: auto 1fr; }
  .admin-sales-line-summary small { grid-column: 1 / -1; text-align: left; }
  .admin-sales-cart-table { max-height: 34dvh; }
  .admin-sales-line-overlay { padding: 8px; }
  .admin-sales-line-modal { max-height: calc(100dvh - 16px); padding: 11px; }
  .admin-sales-line-form { grid-template-columns: 1fr; gap: 8px; }
  .admin-sales-line-form label.wide { grid-column: auto; }
  .admin-sales-line-preview { grid-template-columns: 1fr; }
  .admin-sales-line-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-sales-line-actions .danger-button { grid-column: 1 / -1; }
  .sales-report-page-number { font-size: 1.08rem; }
}

.savings-command-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid #cfe2d8;
  border-left: 5px solid #087052;
  background: #f7fcf9;
}

.savings-command-panel h2 {
  margin: 3px 0 4px;
  font-size: 1.2rem;
}

.savings-command-panel p {
  max-width: 760px;
  margin: 0;
  color: #52655d;
}

.savings-primary-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.savings-kpi-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.savings-total-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.savings-total-strip article {
  min-width: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d9e7df;
  border-left: 4px solid #16805f;
  border-radius: 6px;
}

.savings-total-strip span,
.savings-total-strip small,
.savings-total-strip strong {
  display: block;
}

.savings-total-strip span {
  color: #52655d;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.savings-total-strip strong {
  margin-top: 5px;
  color: #102d24;
  font-size: 1.12rem;
  line-height: 1.25;
}

.savings-total-strip small {
  margin-top: 4px;
  color: #6b7d75;
  font-size: 0.72rem;
}

.savings-total-strip .savings-total-primary {
  background: #eff8f3;
  border-color: #bcdacb;
  border-left-color: #b68a1f;
}

.savings-detail-section {
  padding: 0;
  overflow: hidden;
}

.savings-detail-section > summary {
  padding: 14px 18px;
  color: #103f32;
  font-weight: 700;
  cursor: pointer;
  list-style-position: inside;
  background: #f4faf6;
  border-bottom: 1px solid transparent;
}

.savings-detail-section[open] > summary {
  border-bottom-color: #dce9e2;
}

.savings-detail-body,
.savings-detail-section > .table-wrap {
  padding: 14px;
}

.savings-summary-table td:nth-child(n + 3) {
  text-align: right;
  white-space: nowrap;
}

.savings-monthly-wrap {
  margin-top: 12px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid #dce9e2;
}

.savings-monthly-table {
  min-width: 1120px;
}

.savings-monthly-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eaf6f0;
}

.savings-monthly-table th:first-child,
.savings-monthly-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: #f8fcfa;
}

.savings-monthly-table th:nth-child(2),
.savings-monthly-table td:nth-child(2) {
  position: sticky;
  left: 150px;
  z-index: 1;
  min-width: 220px;
  background: #f8fcfa;
}

.savings-monthly-table th:first-child,
.savings-monthly-table th:nth-child(2) {
  z-index: 3;
  background: #eaf6f0;
}

.savings-month-status {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.savings-month-status.lunas {
  color: #166534;
  background: #facc15;
}

.savings-month-status.belum-bayar {
  color: #991b1b;
  background: #fee2e2;
}

.savings-month-status.belum-jatuh-tempo {
  color: #475569;
  background: #e2e8f0;
}

.savings-form-rule {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  color: #103f32;
  background: #edf8f2;
  border-left: 4px solid #087052;
}

.savings-form-rule span {
  color: #53675e;
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-record-dialog [data-field-name="receiptNumber"] input,
.admin-record-dialog [data-field-name="memberName"] input,
.admin-record-dialog [data-field-name="targetAmount"] input,
.admin-record-dialog [data-field-name="installmentNumber"] input,
.admin-record-dialog [data-field-name="paymentStatus"] input {
  color: #44534d;
  background: #edf3ef;
}

@media (max-width: 1100px) {
  .savings-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .savings-command-panel,
  .savings-primary-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .savings-total-strip {
    grid-template-columns: 1fr;
  }
}

.sales-report-page-card:nth-child(4n + 2) .sales-report-page-number {
  background: #0c7c91;
}

.sales-report-page-card:nth-child(4n + 3) .sales-report-page-number {
  background: #d98716;
}

.sales-report-page-card:nth-child(4n) .sales-report-page-number {
  background: #7a46c5;
}

.sales-report-page-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sales-report-page-copy strong,
.sales-report-page-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sales-report-page-copy strong {
  color: #173a2e;
  font-size: 0.88rem;
  line-height: 1.25;
  white-space: nowrap;
}

.sales-report-page-copy small {
  display: -webkit-box;
  color: #6b7a74;
  font-size: 0.72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sales-report-page-chevron {
  color: #168c64;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
}

.sales-report-page-toolbar {
  position: sticky;
  top: 0;
  z-index: 15;
  margin-bottom: 8px;
  background: #f7fbf9;
}

.sales-report-page-tools {
  display: grid;
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px;
  border: 1px solid #d4e4dc;
  border-radius: 8px;
  background: #f9fcfa;
  box-shadow: 0 5px 16px rgba(23, 67, 49, 0.05);
}

body:not(.fg-pos-pro-page) .sales-report-page-tools .table-control-row {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sales-report-tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sales-report-margin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 6px;
  min-width: min(100%, 520px);
}

.sales-report-margin-summary > span,
.invoice-detail-kpis > span,
.invoice-detail-footer > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #dbe8e1;
  border-left: 3px solid #67b58c;
  border-radius: 6px;
  background: #ffffff;
}

.sales-report-margin-summary > span.net,
.invoice-detail-kpis > span.net {
  border-left-color: #0b8f61;
  background: #effaf5;
}

.sales-report-margin-summary small,
.invoice-detail-kpis small,
.invoice-detail-footer small {
  overflow: hidden;
  color: #687a72;
  font-size: 0.64rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-report-margin-summary strong,
.invoice-detail-kpis strong,
.invoice-detail-footer strong {
  overflow: hidden;
  color: #173a2e;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-report-export-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-report-column-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(720px, 100%);
}

.sales-report-column-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
}

.sales-report-column-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #d7e5de;
  border-radius: 6px;
  background: #ffffff;
  color: #263b32;
  font-size: 0.76rem;
  font-weight: 750;
}

.sales-report-column-options label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sales-invoice-detail-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  height: min(820px, calc(100dvh - 36px));
}

.invoice-detail-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 6px;
}

.invoice-detail-table-wrap {
  min-height: 0;
  overflow: auto;
}

.invoice-detail-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.sales-report-detail-open .topbar,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.sales-report-detail-open .topbar,
body:not(.fg-pos-pro-page) .app-shell.sales-report-detail-open .topbar {
  display: none !important;
}

body:not(.fg-pos-pro-page) .app-shell.sales-report-detail-open .content-panel {
  padding-top: 8px;
}

.sales-report-page-stage {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 104px);
  overflow-x: hidden;
}

.sales-report-page-stage > .section {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: calc(100vh - 112px);
  margin: 0;
}

.sales-report-page-stage .admin-report-section-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-top: 12px;
  overflow-x: auto;
}

.sales-report-page-stage .table-wrap,
.sales-report-page-stage .data-table-shell {
  width: 100%;
}

@media (max-width: 900px) {
  .sales-report-page-grid {
    grid-template-columns: 1fr;
  }

  .sales-report-page-index-header {
    align-items: flex-start;
  }

  .sales-report-tool-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-report-margin-summary {
    width: 100%;
    min-width: 0;
  }

  .sales-report-export-actions {
    justify-content: flex-start;
  }

  .invoice-detail-kpis {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}

@media (max-width: 600px) {
  .sales-report-page-index {
    min-height: calc(100vh - 88px);
  }

  .sales-report-page-index-header {
    padding: 11px 12px;
  }

  .sales-report-page-index-header p {
    display: none;
  }

  .sales-report-page-card {
    grid-template-columns: 39px minmax(0, 1fr) 22px;
    min-height: 64px;
    padding: 8px 9px;
    gap: 9px;
  }

  .sales-report-page-number {
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }

  .sales-report-page-copy strong {
    font-size: 0.82rem;
  }

  .sales-report-page-copy small {
    font-size: 0.68rem;
    -webkit-line-clamp: 1;
  }

  .sales-report-page-stage,
  .sales-report-page-stage > .section {
    min-height: calc(100vh - 90px);
  }

  .sales-report-page-number {
    font-size: 1.08rem;
  }

  .sales-report-page-tools {
    padding: 7px;
  }

  .sales-report-margin-summary {
    grid-template-columns: 1fr;
  }

  .sales-report-export-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-report-export-actions .status {
    grid-column: 1 / -1;
  }

  .sales-report-column-options,
  .invoice-detail-kpis,
  .invoice-detail-footer {
    grid-template-columns: 1fr;
  }

  .admin-sales-invoice-detail-panel {
    height: calc(100dvh - 16px);
  }
}

/* Software licensing */
.software-license-indicator {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #b9d9c7;
  border-radius: 6px;
  color: #155d3d;
  background: #eef9f2;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.software-license-indicator[hidden] {
  display: none;
}

.subscription-warning-banner {
  margin: 8px 16px 0;
  padding: 10px 14px;
  border: 1px solid #e5a43a;
  border-radius: 6px;
  background: #fff7e5;
  color: #4f3511;
  font-size: 13px;
  line-height: 1.45;
}

.subscription-warning-banner[hidden] {
  display: none;
}

.software-license-indicator.is-grace,
.software-license-indicator.is-review {
  border-color: #efd38d;
  color: #805d06;
  background: #fff9e8;
}

.software-license-indicator.is-expired,
.software-license-indicator.is-suspended,
.software-license-indicator.is-revoked,
.software-license-indicator.is-missing {
  border-color: #efb9b6;
  color: #96342e;
  background: #fff1f0;
}

.software-license-command,
.software-license-users,
.software-license-policy,
.software-license-history {
  border-color: #dce8e1;
  background: #fbfdfc;
}

.license-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.license-summary-row h2,
.software-license-card h3 {
  margin: 3px 0 5px;
}

.license-summary-row p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.license-summary-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 8px;
}

.license-summary-stats span {
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid #d9e8df;
  border-radius: 7px;
  color: #52655b;
  background: #f2f8f4;
  font-size: 0.72rem;
}

.license-summary-stats b {
  color: #174f37;
  font-size: 1rem;
}

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

.software-license-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d8e5dd;
  border-top: 3px solid #2d8a5b;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 73, 50, 0.06);
}

.software-license-card.is-grace,
.software-license-card.is-review {
  border-top-color: #c69217;
}

.software-license-card.is-expired,
.software-license-card.is-suspended,
.software-license-card.is-revoked,
.software-license-card.is-missing {
  border-top-color: #b6423c;
}

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

.software-license-shield {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #bfe1cd;
  border-radius: 7px;
  color: #fff;
  background: #237d51;
  font-size: 0.78rem;
  font-weight: 900;
}

.license-card-head small {
  color: #697970;
  font-size: 0.68rem;
  font-weight: 800;
}

.license-card-head h3 {
  overflow: hidden;
  color: #173d2e;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-state {
  padding: 5px 7px;
  border-radius: 5px;
  color: #17603e;
  background: #eaf7ef;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.is-grace .license-state,
.is-review .license-state {
  color: #815f09;
  background: #fff4d6;
}

.is-expired .license-state,
.is-suspended .license-state,
.is-revoked .license-state,
.is-missing .license-state {
  color: #92342f;
  background: #fdebea;
}

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

.license-detail-grid div {
  min-width: 0;
}

.license-detail-grid dt {
  color: #718078;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
}

.license-detail-grid dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: #203d31;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.license-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.license-card-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.7rem;
}

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

.license-policy-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-left: 3px solid #2d8a5b;
  color: #647269;
  background: #f1f7f3;
  font-size: 0.75rem;
  line-height: 1.4;
}

.license-policy-grid b {
  color: #173d2e;
}

.licensed-user-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #d9e8df;
  border-radius: 7px;
  background: #d9e8df;
}

.licensed-user-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  color: #607067;
  background: #f7fbf8;
  font-size: 0.72rem;
}

.licensed-user-summary b {
  color: #174f37;
  font-size: 1rem;
}

.member-admin-access-command {
  border: 1px solid rgba(19, 119, 79, 0.18);
  background: linear-gradient(135deg, rgba(239, 251, 246, 0.96), rgba(255, 251, 239, 0.96));
}

.member-admin-access-command .section-header {
  align-items: center;
  margin-bottom: 10px;
}

.access-role-lock {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cfe3d5;
  border-radius: 999px;
  color: #24523a;
  background: #f5faf6;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.access-permission-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.access-permission-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(19, 119, 79, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.access-permission-legend span:last-child {
  border-color: rgba(190, 125, 24, 0.28);
  background: rgba(255, 247, 225, 0.88);
}

.access-permission-legend strong {
  color: #143c2d;
  font-size: 0.78rem;
}

.access-permission-legend small,
.member-admin-access-table td small {
  color: #5c6c65;
  font-size: 0.7rem;
  line-height: 1.35;
}

.access-permission-legend small {
  text-align: right;
}

.member-admin-access-scroll {
  max-width: 100%;
  overflow-x: auto;
}

body:not(.fg-pos-pro-page) .member-admin-access-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
}

.member-admin-access-table .access-member-column {
  width: 18%;
}

.member-admin-access-table .access-permission-column {
  width: 18%;
}

.member-admin-access-table .access-validity-column {
  width: 23%;
}

.member-admin-access-table .access-status-column {
  width: 11%;
}

.member-admin-access-table .access-approver-column {
  width: 19%;
}

.member-admin-access-table .access-action-column {
  width: 11%;
}

.member-admin-access-table th,
.member-admin-access-table td {
  overflow-wrap: anywhere;
  vertical-align: top;
}

.member-admin-access-table td strong,
.member-admin-access-table td small {
  display: block;
}

.member-admin-access-table .access-request-reason {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.member-admin-access-table .compact-actions {
  flex-wrap: wrap;
  min-width: 0;
  gap: 5px;
}

.member-admin-access-table .compact-actions button {
  min-width: 0;
  padding-inline: 8px;
}

.access-monitor-title {
  margin: 0 0 10px;
  color: #173d2e;
  font-size: 1rem;
}

.access-monitor-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.access-monitor-stack .admin-data-collapsible {
  margin: 0;
}

.access-monitor-table {
  min-width: 0;
}

.access-monitor-table .data-table-scroll .data-table {
  min-width: 980px;
}

.license-user-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-left: 3px solid #2d8a5b;
  color: #5e6f65;
  background: #f1f7f3;
  font-size: 0.76rem;
}

.license-user-rule strong {
  flex: 0 0 auto;
  color: #173d2e;
}

@media (max-width: 860px) {
  .access-permission-legend {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .member-admin-access-scroll {
    overflow: visible;
  }

  body:not(.fg-pos-pro-page) .member-admin-access-table,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .member-admin-access-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    border: 0;
    background: transparent;
  }

  .member-admin-access-table colgroup,
  .member-admin-access-table thead {
    display: none;
  }

  .member-admin-access-table tbody {
    display: grid;
    gap: 10px;
  }

  .member-admin-access-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid #d7e7dc;
    border-radius: 10px;
    background: #fff;
  }

  body:not(.fg-pos-pro-page) .member-admin-access-table td,
  body.admin-mobile-lite-page:not(.fg-pos-pro-page) .member-admin-access-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-content: start;
    gap: 3px 8px;
    min-width: 0;
    padding: 9px !important;
    border-bottom: 1px solid #e5eee8;
    background: #fff !important;
  }

  .member-admin-access-table td::before {
    content: attr(data-label);
    grid-row: 1 / span 3;
    color: #617269;
    font-size: 0.64rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .member-admin-access-table td:nth-child(odd) {
    border-right: 1px solid #e5eee8;
  }

  .member-admin-access-table td:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .member-admin-access-table td > :not(.table-actions),
  .member-admin-access-table td > .table-actions {
    grid-column: 2;
  }

  .member-admin-access-table .compact-actions {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .member-admin-access-command .section-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .access-role-lock {
    white-space: normal;
  }

  .access-permission-legend {
    grid-template-columns: 1fr;
  }

  .member-admin-access-table tr {
    grid-template-columns: 1fr;
  }

  .member-admin-access-table td:nth-child(odd) {
    border-right: 0;
  }

  .member-admin-access-table td:nth-last-child(2) {
    border-bottom: 1px solid #e5eee8;
  }

  .access-monitor-table .table-control-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .access-monitor-table .table-control-row > label,
  .access-monitor-table .table-tool-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .access-monitor-table .table-tool-actions {
    justify-content: flex-start !important;
  }
}

.software-license-compact {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #cde2d5;
  border-radius: 8px;
  color: #18432f;
  background: rgba(245, 251, 247, 0.96);
}

.software-license-compact .software-license-shield {
  width: 32px;
  height: 32px;
}

.software-license-compact div {
  display: grid;
  min-width: 0;
}

.software-license-compact strong,
.software-license-compact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.software-license-compact strong {
  font-size: 0.78rem;
}

.software-license-compact small {
  color: #65736b;
  font-size: 0.65rem;
}

.software-license-compact > b {
  font-size: 0.7rem;
}

@media (max-width: 1180px) {
  .software-license-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .software-license-indicator {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .license-summary-row {
    flex-direction: column;
  }

  .license-summary-stats,
  .licensed-user-summary,
  .license-policy-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .license-detail-grid,
  .license-card-actions {
    grid-template-columns: 1fr;
  }

  .license-user-rule {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Work pages use one navigation bar. Prevent the legacy phone header from covering it. */
body.admin-phone-laptop-page:not(.fg-pos-pro-page) .app-shell.admin-work-inline-toolbar .topbar,
body.admin-mobile-lite-page:not(.fg-pos-pro-page) .app-shell.admin-work-inline-toolbar .topbar {
  display: none !important;
}

.cooperative-integrity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.cooperative-integrity-item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d9e5dd;
  border-left: 4px solid #b7791f;
  border-radius: 6px;
  background: #fbfdfb;
}

.cooperative-integrity-item.ok {
  border-left-color: #15875d;
}

.cooperative-integrity-item.pending {
  border-left-color: #d9a514;
}

.cooperative-integrity-item > span,
.cooperative-integrity-item > small {
  color: #607168;
  font-size: 0.72rem;
}

.cooperative-integrity-item > strong {
  color: #173c2b;
  font-size: 0.88rem;
}

.cooperative-report-totals {
  margin-bottom: 12px;
}
