:root {
  --ink: #172126;
  --muted: #68777b;
  --line: #dfe7e5;
  --panel: #ffffff;
  --soft: #eef4f2;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --tenant-accent: #0f766e;
  --tenant-sidebar: #102324;
  --tenant-mark: #f5c542;
  --warn: #b45309;
  --bad: #b91c1c;
  --good: #15803d;
  --shadow: 0 18px 42px rgba(22, 34, 38, 0.09);
  --shadow-soft: 0 8px 22px rgba(22, 34, 38, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 34vw),
    linear-gradient(180deg, #f7faf9 0%, var(--soft) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 480px);
  gap: 32px;
  align-items: center;
  padding: min(6vw, 64px);
  background:
    radial-gradient(circle at 15% 12%, rgba(245, 197, 66, 0.22), transparent 24vw),
    radial-gradient(circle at 88% 18%, rgba(37, 99, 235, 0.18), transparent 22vw),
    linear-gradient(135deg, #102324 0%, #102324 48%, #0f766e 100%);
  color: #f8fbfa;
  overflow: hidden;
}

.login-stage {
  display: grid;
  gap: 34px;
  max-width: 760px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

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

.login-brand strong {
  font-size: 24px;
  line-height: 1;
}

.login-brand span {
  color: #f5c542;
  font-size: 13px;
  font-weight: 900;
  margin-top: 5px;
}

.login-copy h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
}

.login-copy p:last-child {
  max-width: 620px;
  color: #c8d8d5;
  font-size: 18px;
  line-height: 1.55;
}

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

.login-insights article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(248, 251, 250, 0.16);
  border-radius: 16px;
  background: rgba(248, 251, 250, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
}

.login-insights small,
.login-panel-head span,
.login-note {
  color: #abc2c0;
}

.login-insights strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.18;
}

.login-panel {
  padding: 28px;
  border: 1px solid rgba(248, 251, 250, 0.18);
  border-radius: 22px;
  background: rgba(248, 251, 250, 0.96);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.login-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.login-panel-head strong {
  font-size: 30px;
}

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

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

.login-form input,
.login-form select {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: 0;
}

.login-form input:focus,
.login-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.login-submit {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.28);
}

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

.login-shortcuts button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.login-note {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px 1fr;
  min-height: 100vh;
}

.pos-kiosk .app-shell {
  display: block;
}

.pos-kiosk .sidebar,
.pos-kiosk .topbar {
  display: none;
}

.pos-kiosk .workspace {
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 12%, rgba(245, 197, 66, 0.16), transparent 28vw),
    linear-gradient(180deg, #eef4f2 0%, #f8fbfa 100%);
}

.pos-kiosk .legal-footer {
  justify-content: center;
  text-align: center;
  border-top: 0;
}

.sidebar {
  background: var(--tenant-sidebar);
  color: #f7fbfa;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 12px 0 38px rgba(16, 35, 36, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tenant-mark);
  color: #102324;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.brand-mark.has-logo-image {
  background: #fff;
}

.product-brand-mark {
  background: transparent;
}

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

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

.made-by {
  display: block;
  color: #f5c542;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 2px;
}

.brand small {
  color: #abc2c0;
  margin-top: 2px;
}

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

.nav-item {
  border: 0;
  background: transparent;
  color: #d9e8e6;
  min-height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  text-align: left;
}

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

.nav-item span:first-child {
  width: 22px;
  text-align: center;
}

.tenant-switcher {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  display: grid;
  gap: 8px;
}

.tenant-switcher label {
  color: #abc2c0;
  font-size: 13px;
}

.tenant-switcher select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #182f30;
  color: #fff;
  border-radius: 10px;
  padding: 10px;
}

.tenant-switcher .is-hidden,
.nav-item.is-hidden,
.topbar-actions.is-hidden {
  display: none;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.legal-footer span:first-child {
  color: var(--tenant-accent);
  font-weight: 900;
}

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

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

.kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.topbar-actions,
.button-row,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ghost-btn,
.primary-btn,
.danger-btn,
.tiny-btn {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 13px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-weight: 750;
}

.primary-btn {
  border-color: var(--tenant-accent);
  background: var(--tenant-accent);
  color: #fff;
}

.ghost-btn:hover,
.primary-btn:hover,
.danger-btn:hover,
.tiny-btn:hover {
  transform: translateY(-1px);
}

.danger-btn {
  border-color: #fecaca;
  color: var(--bad);
}

.tiny-btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 13px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

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

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

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

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

.command-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 18px;
}

.command-strip h2 {
  margin: 8px 0 4px;
  font-size: 24px;
}

.command-strip p {
  color: var(--muted);
  margin: 0;
}

.company-hero-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero-logo {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  font-size: 22px;
}

.customer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.customer-summary article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.customer-summary span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.customer-summary strong {
  font-size: 24px;
}

.customer-summary button {
  min-height: 100%;
}

.customer-wallet-hero {
  display: grid;
  gap: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 197, 66, 0.20), transparent 26vw),
    linear-gradient(135deg, var(--tenant-sidebar) 0%, var(--tenant-accent) 100%);
  color: #fff;
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.customer-wallet-hero > div {
  display: grid;
  gap: 8px;
}

.customer-wallet-hero p,
.customer-wallet-hero h2 {
  margin: 0;
}

.customer-wallet-hero p {
  color: #f5c542;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.customer-wallet-hero h2 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1;
}

.customer-wallet-hero strong {
  font-size: clamp(46px, 8vw, 82px);
  line-height: 1;
}

.customer-wallet-hero span,
.customer-wallet-hero small {
  color: #d7e9e6;
  font-weight: 800;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.quiet-panel {
  box-shadow: none;
  background: #fbfcfc;
}

.metric {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e3f3ef;
}

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

.metric strong {
  font-size: 34px;
  line-height: 1.1;
}

.metric small {
  color: var(--muted);
}

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

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

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

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

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  background: #e8f5f1;
  color: var(--good);
}

.pill.warn {
  background: #fff3df;
  color: var(--warn);
}

.pill.bad {
  background: #fee2e2;
  color: var(--bad);
}

.pill.neutral {
  background: #e8eefc;
  color: var(--accent-2);
}

.card-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.pos-screen {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: 16px;
}

.pos-touch {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
}

.pos-terminal {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 28px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 28px 80px rgba(16, 35, 36, 0.16);
}

.pos-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pos-terminal-head h2 {
  margin-bottom: 0;
}

.pos-console {
  margin-top: 16px;
}

.pos-reader-line {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.pos-reader-line label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.pos-reader-line select {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfa;
  color: var(--ink);
  padding: 0 14px;
  font-weight: 900;
}

.pos-mode-badge {
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 18px;
  background: linear-gradient(135deg, #102324 0%, #0f766e 100%);
  color: #fff;
  padding: 14px 16px;
}

.pos-mode-badge.topup {
  background: linear-gradient(135deg, #123537 0%, #2563eb 100%);
}

.pos-mode-badge span {
  font-size: 26px;
  font-weight: 950;
}

.pos-mode-badge small {
  color: #d7e9e6;
  font-weight: 800;
}

.pos-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 12px;
}

.pos-card-status {
  min-height: 142px;
}

.pos-footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pos-context {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  margin-bottom: 16px;
  box-shadow: none;
  font-weight: 700;
}

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

.pos-panel-head h2 {
  margin-bottom: 0;
}

.pos-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-brand-title small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.card-reader {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%),
    #fbfdfd;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.compact-reader {
  min-height: 0;
  padding: 18px;
  align-content: start;
}

.reader-mark {
  width: 92px;
  height: 58px;
  border-radius: 8px;
  background: #102324;
  box-shadow: inset 0 0 0 8px #f5c542;
}

.selected-customer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
}

.selected-customer strong {
  font-size: 22px;
}

.amount {
  font-size: 34px;
  font-weight: 900;
}

.pos-action-panel {
  padding: 20px;
}

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

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

.pos-mode button,
.quick-amounts button,
.keypad button,
.pos-confirm {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 58px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.pos-mode button.active {
  border-color: var(--tenant-accent);
  background: #dff7ef;
  color: #075f56;
}

.pos-display {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, #102324 0%, #19383a 100%);
  color: #fff;
  display: grid;
  gap: 4px;
}

.operator-gate {
  display: grid;
  grid-template-columns: 1fr minmax(190px, 260px);
  gap: 12px;
  align-items: center;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  padding: 14px;
}

.operator-gate.unlocked {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.operator-gate strong,
.operator-gate small {
  display: block;
}

.operator-gate small {
  color: var(--muted);
  margin-top: 4px;
}

.pos-display span,
.pos-display small {
  color: #b7cfcc;
}

.pos-display strong {
  font-size: 48px;
  line-height: 1;
}

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

.quick-amounts button {
  min-height: 50px;
  background: #edf7f4;
  color: #075f56;
}

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

.keypad button {
  font-size: 22px;
  min-height: 64px;
}

.keypad-muted {
  color: var(--muted) !important;
}

.pos-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pos-confirm {
  min-height: 68px;
  border-color: var(--tenant-accent);
  background: var(--tenant-accent);
  color: #fff;
  font-size: 20px;
}

.pos-confirm.topup {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcfc;
}

.company-profile-preview {
  min-height: 88px;
}

.brand-preview-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tenant-mark);
  color: #102324;
  font-weight: 900;
  overflow: hidden;
}

.mini-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 12px;
}

tr.selected-row {
  background: #f0fdf4;
  box-shadow: inset 4px 0 0 var(--tenant-accent);
}

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

.pos-confirm:disabled,
.pos-mode button:disabled,
.keypad button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.movement-list {
  display: grid;
  gap: 8px;
}

.movement {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.movement small {
  color: var(--muted);
}

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

.legal-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 12px 0 0;
}

.request-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.news-list,
.support-list {
  display: grid;
  gap: 10px;
}

.news-item,
.support-ticket {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.news-item {
  grid-template-columns: 110px 1fr;
  align-items: start;
}

.support-ticket {
  grid-template-columns: 160px 1fr auto;
  align-items: center;
}

.news-item p,
.support-ticket p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.45;
}

.news-item small,
.support-ticket small {
  color: var(--muted);
}

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

.access-map article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfcfc;
}

.access-map ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(90px);
  transition: transform 160ms ease;
  background: #102324;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  max-width: 360px;
}

.toast.show {
  transform: translateY(0);
}

.transaction-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 35, 36, 0.48);
  backdrop-filter: blur(14px);
}

.transaction-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  border-radius: 26px;
  background: #fff;
  color: var(--ink);
  padding: 24px;
  text-align: center;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.transaction-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 22px;
  background: #102324;
  color: #fff;
  font-size: 38px;
  font-weight: 950;
}

.transaction-icon.topup {
  background: var(--tenant-accent);
}

.transaction-card p,
.transaction-card h2 {
  margin: 0;
}

.transaction-card p {
  color: var(--tenant-accent);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.transaction-card h2 {
  font-size: 28px;
}

.transaction-card > strong {
  font-size: 58px;
  line-height: 1;
}

.transaction-balance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbfa;
  padding: 14px;
}

.transaction-balance span,
.transaction-card small,
.transaction-card em,
.transaction-legal {
  color: var(--muted);
}

.transaction-balance b {
  font-size: 22px;
}

.transaction-warning {
  border-radius: 14px;
  background: #fff7ed;
  color: #b45309;
  padding: 12px;
  font-weight: 950;
}

.transaction-card small {
  font-size: 15px;
  line-height: 1.4;
}

.transaction-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.transaction-card button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--tenant-accent);
  color: #fff;
  font: inherit;
  font-weight: 950;
}

.transaction-legal {
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .login-copy h1 {
    font-size: 48px;
  }

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

  .sidebar {
    position: static;
  }

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

  .tenant-switcher {
    margin-top: 0;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .access-map,
  .support-ticket,
  .pos-touch,
  .pos-screen,
  .pos-reader-line,
  .pos-main-grid {
    grid-template-columns: 1fr;
  }

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

  .customer-summary {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 620px) {
  .login-screen {
    padding: 22px;
  }

  .login-copy h1 {
    font-size: 38px;
  }

  .login-insights,
  .login-shortcuts {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 20px;
  }

  .workspace,
  .sidebar {
    padding: 16px;
  }

  .nav {
    grid-template-columns: 1fr;
  }

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

  .quick-amounts,
  .swatch-row,
  .operator-gate,
  .pos-meta {
    grid-template-columns: 1fr 1fr;
  }

  .pos-terminal {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    margin-inline: -16px;
  }

  .pos-terminal-head {
    align-items: flex-start;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
  }

  td {
    border: 0;
  }

  .movement {
    grid-template-columns: 1fr;
  }

  .request-row,
  .news-item {
    grid-template-columns: 1fr;
  }

  .operator-gate {
    grid-template-columns: 1fr;
  }
}
