/* InnPlate — global UI (pure CSS, no build step) */
:root {
  --ip-brand: #0d9488;
  --ip-brand-dark: #0f766e;
  --ip-brand-light: #ccfbf1;
  --ip-ink: #0f172a;
  --ip-muted: #64748b;
  --ip-border: #e2e8f0;
  --ip-bg: #f1f5f9;
  --ip-card: #ffffff;
  --ip-sidebar: #0f172a;
  --ip-sidebar-text: #cbd5e1;
  --ip-sidebar-active: #14b8a6;
  --ip-radius: 12px;
  --ip-radius-lg: 16px;
  --ip-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --ip-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --ip-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ip-display: "Poppins", var(--ip-font);
  --ip-sidebar-w: 260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ip-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ip-ink);
  background: var(--ip-bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--ip-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--ip-brand-dark);
}

a:hover {
  color: var(--ip-brand);
}

/* —— Public / auth pages —— */
body.innplate-public {
  background: linear-gradient(160deg, #f0fdfa 0%, var(--ip-bg) 45%, #e2e8f0 100%);
  min-height: 100vh;
}

.pub-top {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #fff;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: var(--ip-shadow);
}

.pub-top strong {
  font-family: var(--ip-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.pub-top a {
  color: #99f6e4;
  text-decoration: none;
  font-size: 0.92rem;
  margin-left: 14px;
  font-weight: 500;
}

.pub-top a:hover {
  color: #fff;
  text-decoration: underline;
}

.pub-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

body.innplate-auth .ip-main {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

body.innplate-auth .ip-card {
  padding: 32px 28px;
}

/* Landing */
.land-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.land-hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0;
  color: var(--ip-ink);
}

.land-lead {
  font-size: 1.08rem;
  color: var(--ip-muted);
  max-width: 52ch;
  margin: 14px auto 0;
}

.land-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.lp-btn {
  display: inline-block;
  padding: 13px 22px;
  background: var(--ip-brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--ip-radius);
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.lp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: #fff;
}

.lp-ghost {
  background: var(--ip-card);
  color: var(--ip-ink);
  border: 2px solid var(--ip-border);
  box-shadow: none;
}

.lp-ghost:hover {
  border-color: var(--ip-brand);
  color: var(--ip-brand-dark);
}

.land-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .land-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.land-card {
  background: var(--ip-card);
  padding: 24px 26px;
  border-radius: var(--ip-radius-lg);
  box-shadow: var(--ip-shadow-lg);
  border: 1px solid var(--ip-border);
}

.land-card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

/* —— App shell (logged-in) —— */
.innplate-app {
  min-height: 100vh;
}

.ip-shell {
  display: flex;
  min-height: 100vh;
}

.ip-sidebar {
  width: var(--ip-sidebar-w);
  flex-shrink: 0;
  background: var(--ip-sidebar);
  color: var(--ip-sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
  transition: transform 0.25s ease;
}

.ip-sidebar-brand {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ip-sidebar-brand .logo {
  font-family: var(--ip-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  display: block;
}

.ip-sidebar-brand .sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ip-sidebar-brand .plan-pill {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ip-nav {
  flex: 1;
  padding: 12px 10px 24px;
}

.ip-nav-section {
  margin-top: 16px;
}

.ip-nav-section:first-child {
  margin-top: 4px;
}

.ip-nav-label {
  display: block;
  padding: 8px 12px 6px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.ip-nav a,
.ip-nav-link,
.ip-nav-footer a,
.ip-nav button.nav-off {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin: 2px 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ip-sidebar-text);
  font-family: var(--ip-font);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ip-nav a:hover,
.ip-nav-link:hover,
.ip-nav-footer a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.ip-nav a.is-active,
.ip-nav-link.is-active,
.ip-nav-footer a.is-active {
  background: rgba(20, 184, 166, 0.18);
  color: #fff;
  font-weight: 600;
}

.ip-nav a.is-active::before,
.ip-nav-link.is-active::before,
.ip-nav-footer a.is-active::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--ip-sidebar-active);
  border-radius: 2px;
  margin-right: 2px;
  margin-left: -4px;
}

.ip-nav button.nav-off {
  opacity: 0.55;
}

.ip-nav button.nav-off:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.04);
}

.ip-nav .nav-badge {
  margin-left: auto;
  font-size: 0.75rem;
}

.ip-nav-footer {
  padding: 14px 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ip-main {
  flex: 1;
  margin-left: var(--ip-sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ip-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ip-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ip-menu-btn {
  display: none;
  border: 1px solid var(--ip-border);
  background: var(--ip-card);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.ip-topbar-title {
  font-family: var(--ip-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ip-ink);
}

.ip-topbar-spacer {
  flex: 1;
}

.ip-topbar-actions a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  margin-left: 12px;
}

.ip-content {
  padding: 24px;
  flex: 1;
}

.ip-card {
  background: var(--ip-card);
  border-radius: var(--ip-radius-lg);
  padding: 28px 32px;
  box-shadow: var(--ip-shadow);
  border: 1px solid var(--ip-border);
  max-width: 1200px;
}

@media (max-width: 960px) {
  .ip-sidebar {
    transform: translateX(-100%);
  }

  body.ip-sidebar-open .ip-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.25);
  }

  .ip-main {
    margin-left: 0;
  }

  .ip-menu-btn {
    display: inline-block;
  }

  .ip-content {
    padding: 16px;
  }

  .ip-card {
    padding: 20px 18px;
  }
}

.ip-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 150;
}

body.ip-sidebar-open .ip-overlay {
  display: block;
}

/* Forms & buttons */
label {
  display: block;
  margin: 0.5rem 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--ip-brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ip-brand);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  touch-action: manipulation;
}

button:hover,
.btn:hover {
  background: var(--ip-brand-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

button:active,
.btn:active {
  transform: translateY(1px);
}

button.secondary,
.btn.secondary {
  background: #fff;
  color: var(--ip-ink);
  border: 2px solid var(--ip-border);
  box-shadow: none;
}

button.secondary:hover,
.btn.secondary:hover {
  border-color: var(--ip-brand);
  color: var(--ip-brand-dark);
  background: var(--ip-brand-light);
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 760px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--ip-border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ip-muted);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #f8fafc;
}

/* Messages */
.msg {
  padding: 14px 16px;
  border-radius: var(--ip-radius);
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.msg.ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.msg.err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.small {
  font-size: 0.85rem;
  color: var(--ip-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--ip-border);
  margin: 28px 0;
}

/* Dashboard */
.dash-welcome {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 8px;
}

.dash-welcome h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
}

.dash-status {
  font-size: 0.88rem;
  color: var(--ip-muted);
}

.dash-status strong {
  color: var(--ip-brand-dark);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.kpi {
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-lg);
  padding: 18px 20px;
  box-shadow: var(--ip-shadow);
}

.kpi-accent {
  border-color: #99f6e4;
  background: linear-gradient(145deg, #f0fdfa 0%, #fff 100%);
}

.kpi-lab {
  display: block;
  font-size: 0.72rem;
  color: var(--ip-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 8px;
}

.kpi strong {
  font-family: var(--ip-display);
  font-size: 1.5rem;
  color: var(--ip-ink);
  font-weight: 700;
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.dash-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  text-decoration: none;
  color: var(--ip-ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-height: 72px;
}

.dash-action:hover {
  border-color: var(--ip-brand);
  box-shadow: var(--ip-shadow);
  transform: translateY(-2px);
  color: var(--ip-brand-dark);
}

.dash-action .ico {
  font-size: 1.35rem;
  margin-bottom: 8px;
  line-height: 1;
}

.dash-action.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f8fafc;
}

.dash-action.is-locked:hover {
  transform: none;
  border-color: var(--ip-border);
  box-shadow: none;
}

.dash-panel {
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-lg);
  padding: 20px 22px;
  margin-top: 24px;
}

.dash-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.dash-warn {
  color: #b91c1c;
  font-weight: 600;
}

.dash-blurb {
  margin-top: 20px;
  line-height: 1.65;
  color: #475569;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
}

.table-wrap table {
  margin: 0;
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand .logo {
  font-family: var(--ip-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ip-brand-dark);
}

.plan-feat-list {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 24px;
}

@media (max-width: 600px) {
  .plan-feat-list {
    columns: 1;
  }
}

.plan-feat-list li {
  margin: 4px 0;
  font-size: 0.9rem;
}

/* Subscription cards */
.sub-plan-card {
  border: 1px solid var(--ip-border) !important;
  border-radius: var(--ip-radius-lg) !important;
  padding: 20px 22px !important;
  margin-bottom: 14px !important;
  background: #fff;
  box-shadow: var(--ip-shadow);
}

.sub-plan-disabled {
  opacity: 0.65;
  background: #f8fafc;
}

/* Plan matrix (marketing) */
.plan-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 12px;
}

.plan-matrix th,
.plan-matrix td {
  border: 1px solid var(--ip-border);
  padding: 10px;
  text-align: center;
}

.plan-matrix th:first-child,
.plan-matrix td:first-child {
  text-align: left;
}

.plan-matrix .yes {
  color: #047857;
  font-weight: 700;
}

.plan-matrix .no {
  color: #cbd5e1;
}

.mtx-note {
  color: var(--ip-muted);
  margin-top: 10px;
  font-size: 0.88rem;
}

/* Password eye */
.pw-wrap {
  position: relative;
  display: block;
  max-width: 100%;
}

.pw-wrap input {
  padding-right: 48px;
}

.pw-wrap .pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.info-panel {
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
  padding: 14px 16px;
  margin: 14px 0;
  line-height: 1.55;
  color: #475569;
  font-size: 0.92rem;
}

/* UPI / payment blocks — keep existing class names */
.upi-checkout {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius-lg);
}

.upi-checkout img {
  max-width: 240px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.utr-flow {
  margin-top: 16px;
  text-align: left;
}

.utr-reveal-btn {
  width: 100%;
  margin-top: 8px;
}

.utr-form-panel {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--ip-border);
  border-radius: var(--ip-radius);
}

.utr-submit-form label {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ip-muted);
}

.utr-submit-form input[type="text"],
.utr-submit-form input:not([type="file"]):not([type="hidden"]) {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--ip-border);
  border-radius: 10px;
  box-sizing: border-box;
}

.utr-submit-form input.readonly-amt {
  background: #f1f5f9;
  color: #334155;
}

/* InnPlate platform super-admin (?q=sa) */
body.innplate-sa {
  margin: 0;
  background: #0f172a;
  min-height: 100vh;
}

body.innplate-sa .ia-shell {
  display: flex;
  min-height: 100vh;
}

body.innplate-sa .ia-sidebar {
  width: 248px;
  flex-shrink: 0;
  background: #020617;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

body.innplate-sa .ia-brand {
  padding: 24px 20px 16px;
}

body.innplate-sa .ia-brand .logo {
  font-family: var(--ip-display, Poppins, sans-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  display: block;
}

body.innplate-sa .ia-brand .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5eead4;
  margin-top: 6px;
  display: block;
}

body.innplate-sa .ia-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 4px;
  flex: 1;
}

body.innplate-sa .ia-nav a {
  color: #94a3b8;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

body.innplate-sa .ia-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body.innplate-sa .ia-nav a.is-active {
  background: rgba(20, 184, 166, 0.18);
  color: #fff;
}

body.innplate-sa .ia-sidebar-foot {
  padding: 16px 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.innplate-sa .ia-sidebar-foot a {
  color: #f87171;
  text-decoration: none;
  font-size: 0.88rem;
}

body.innplate-sa .ia-main {
  flex: 1;
  min-width: 0;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}

body.innplate-sa .ia-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

body.innplate-sa .ia-topbar h1 {
  margin: 0;
  font-size: 1.15rem;
  flex: 1;
}

body.innplate-sa .ia-menu-btn {
  display: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

body.innplate-sa .ia-logout {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f766e;
}

body.innplate-sa .ia-content {
  padding: 24px;
  flex: 1;
}

body.innplate-sa .ia-content .land-card {
  max-width: none;
  margin-bottom: 16px;
}

body.innplate-sa .ia-content h2 {
  scroll-margin-top: 80px;
}

body.innplate-sa-login {
  background: linear-gradient(145deg, #0f172a 0%, #134e4a 55%, #0f172a 100%);
}

body.innplate-sa .ia-login-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

body.innplate-sa .ia-login-brand {
  text-align: center;
  margin-bottom: 28px;
}

body.innplate-sa .ia-login-brand .logo {
  font-family: var(--ip-display, Poppins, sans-serif);
  font-weight: 700;
  font-size: 1.65rem;
  color: #fff;
  display: block;
}

body.innplate-sa .ia-login-brand .tag {
  color: #99f6e4;
  font-size: 0.85rem;
  margin-top: 8px;
  display: block;
}

body.innplate-sa .ia-login-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

body.innplate-sa .ia-login-card h2 {
  margin: 0 0 8px;
}

body.innplate-sa .ia-login-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d9488;
  font-weight: 600;
  margin: 0 0 8px;
}

body.innplate-sa .ia-login-foot {
  text-align: center;
  margin-top: 20px;
  color: #94a3b8;
}

body.innplate-sa .ia-login-foot a {
  color: #99f6e4;
}

body.innplate-sa .ia-promo-panel {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  body.innplate-sa .ia-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.innplate-sa.ia-nav-open .ia-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
  }

  body.innplate-sa .ia-menu-btn {
    display: inline-block;
  }
}

/* Platform — Print Templates manager */
body.innplate-sa .ia-print-card {
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.innplate-sa .ia-print-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

body.innplate-sa .ia-print-format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

body.innplate-sa .ia-print-tab {
  padding: 10px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
}

body.innplate-sa .ia-print-tab.is-active {
  background: #0d9488;
  color: #fff;
  border-color: #0f766e;
}

body.innplate-sa .ia-print-scope-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

body.innplate-sa .ia-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 4px;
}

body.innplate-sa .ia-select {
  min-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
}

body.innplate-sa .ia-print-badge {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

body.innplate-sa .ia-badge-global {
  background: #ecfdf5;
  color: #047857;
}

body.innplate-sa .ia-badge-override {
  background: #eff6ff;
  color: #1d4ed8;
}

body.innplate-sa .ia-print-placeholders {
  margin-bottom: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
}

body.innplate-sa .ia-print-placeholders summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

body.innplate-sa .ia-ph-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

body.innplate-sa .ia-ph-chip {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.78rem;
}

body.innplate-sa .ia-ph-chip:hover {
  border-color: #0d9488;
  background: #ecfdf5;
}

body.innplate-sa .ia-ph-chip code {
  display: block;
  font-size: 0.75rem;
  color: #0f766e;
}

body.innplate-sa .ia-ph-chip span {
  color: #64748b;
}

body.innplate-sa .ia-print-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1100px) {
  body.innplate-sa .ia-print-workspace {
    grid-template-columns: 1fr;
  }
}

body.innplate-sa .ia-print-editor {
  width: 100%;
  min-height: 380px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
  tab-size: 2;
}

body.innplate-sa .ia-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

body.innplate-sa .ia-apply-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

body.innplate-sa .ia-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #334155;
}

body.innplate-sa .ia-btn-primary {
  background: #2563eb;
  color: #fff;
}

body.innplate-sa .ia-btn-muted {
  background: #64748b;
  color: #fff;
}

body.innplate-sa .ia-btn-small {
  padding: 7px 12px;
  font-size: 0.82rem;
}

body.innplate-sa .ia-print-preview-pane {
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

body.innplate-sa .ia-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

body.innplate-sa .ia-print-preview-frame {
  width: 100%;
  flex: 1;
  min-height: 400px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

body.innplate-sa .ia-snapshot-gallery {
  margin-top: 12px;
}

body.innplate-sa .ia-snapshot-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

body.innplate-sa .ia-snapshot-thumbs img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

body.innplate-sa .ia-print-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

body.innplate-sa .ia-print-btn {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

body.innplate-sa .ia-print-btn strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

body.innplate-sa .ia-print-btn span {
  font-size: 0.78rem;
  color: #64748b;
}

body.innplate-sa .ia-print-btn:hover {
  border-color: #0d9488;
  background: #ecfdf5;
}

body.innplate-sa .ia-print-btn-primary {
  background: #b45309;
  border-color: #92400e;
  color: #fff;
}

body.innplate-sa .ia-print-btn-primary span {
  color: #ffedd5;
}

body.innplate-sa .ia-print-btn-profile {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
  grid-column: 1 / -1;
}

body.innplate-sa .ia-print-btn-profile span {
  color: #cbd5e1;
}

body.innplate-sa .ia-print-mini-stats summary {
  cursor: pointer;
  font-weight: 600;
}

/* POS — full-width screen + catalog */
body.innplate-app .ip-card:has(.pos-screen) {
  max-width: 100%;
  padding: 20px 16px 24px;
}

.pos-screen {
  width: 100%;
}

.pos-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 300px);
  gap: 18px;
  align-items: start;
}

@media (max-width: 960px) {
  .pos-layout {
    grid-template-columns: 1fr;
  }
}

.pos-main {
  min-width: 0;
  width: 100%;
}

.pos-order-bar {
  background: linear-gradient(135deg, #1d3557 0%, #2a6f7a 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(29, 53, 87, 0.12);
}

.pos-order-bar strong {
  font-size: 1.1rem;
}

.pos-order-bar span {
  opacity: 0.92;
  font-size: 0.92rem;
}

.pos-alert {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #78350f;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Catalog shell: category sidebar + main grid */
.pos-catalog {
  display: grid;
  grid-template-columns: minmax(150px, 172px) minmax(320px, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-height: 480px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  width: 100%;
}

@media (max-width: 768px) {
  .pos-catalog {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
}

/* Category sidebar — vertical list (NOT buttons / pills) */
.pos-cat-sidebar {
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 160px);
}

.pos-cat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #e8edf2;
  flex-shrink: 0;
}

.pos-cat-sidebar-head strong {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
}

.pos-cat-sidebar-head span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}

.pos-cat-list {
  list-style: none;
  margin: 0;
  padding: 8px 8px 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.pos-cat-list li {
  margin: 0;
  padding: 0;
}

.pos-cat-sidebar a.pos-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 2px;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
  transition: background 0.12s, color 0.12s;
}

.pos-cat-sidebar a.pos-cat-link:hover {
  background: #fff;
  color: #0f172a;
  box-shadow: none;
}

.pos-cat-sidebar a.pos-cat-link.is-active {
  background: #fff;
  color: #0f766e;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  border-left: 3px solid #0d9488;
  padding-left: 9px;
}

.pos-cat-link-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.pos-cat-count {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 999px;
  min-width: 1.5em;
  text-align: center;
}

.pos-cat-sidebar a.pos-cat-link.is-active .pos-cat-count {
  background: #ccfbf1;
  color: #0f766e;
}

.pos-menu-anchor {
  height: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .pos-catalog {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .pos-cat-sidebar {
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .pos-cat-list {
    max-height: 150px;
  }
}

.pos-catalog-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.pos-toolbar {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #fff;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.9);
}

.pos-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pos-search {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1.02rem;
  box-sizing: border-box;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.06a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 14px center no-repeat;
}

.pos-search:focus {
  outline: none;
  border-color: #0d9488;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.pos-search-count {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.pos-menu-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 12px 16px 20px;
  max-height: calc(100vh - 220px);
}

.pos-menu-scroll::-webkit-scrollbar {
  width: 7px;
}

.pos-menu-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.pos-cat-section {
  margin-bottom: 28px;
}

.pos-cat-section.is-hidden {
  display: none !important;
}

.pos-cat-heading {
  margin: 0 0 12px;
  padding: 10px 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #334155;
  background: #fff;
  border-bottom: 2px solid #0d9488;
}

.pos-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .pos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .pos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Item cards — simple stacked layout (no letter-by-letter breaks) */
.pos-item-card {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.pos-item-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.pos-item-card.is-hidden {
  display: none !important;
}

.pos-item-form {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}

.pos-item-head {
  display: block;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.pos-item-line1 {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pos-item-name {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.pos-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-left: 24px;
}

.pos-item-variant {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

.pos-item-variant--none {
  display: none;
}

/* Veg / non-veg indicators (standard restaurant markers) */
.pos-diet-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 2px;
  position: relative;
  box-sizing: border-box;
}

.pos-diet-icon.veg {
  border: 2px solid #16a34a;
}

.pos-diet-icon.veg::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #16a34a;
  border-radius: 50%;
}

.pos-diet-icon.nveg {
  border: 2px solid #b91c1c;
}

.pos-diet-icon.nveg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid #b91c1c;
}

.pos-item-price {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f766e;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}

.pos-item-price.is-missing {
  font-size: 0.85rem;
  color: #b91c1c;
  font-weight: 700;
}

.pos-item-cat-label {
  margin: -4px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  display: none;
}

.pos-catalog.is-searching .pos-item-cat-label {
  display: block;
}

.pos-item-footer {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
}

.pos-qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.pos-qty-wrap button.pos-qty-btn {
  width: 34px;
  min-width: 34px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #f1f5f9;
  color: #334155;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
}

.pos-qty-wrap button.pos-qty-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  box-shadow: none;
  transform: none;
}

.pos-qty-input {
  width: 44px !important;
  min-width: 44px;
  padding: 8px 4px !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff !important;
  box-shadow: none !important;
}

.pos-item-form button.pos-add-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: 8px;
  background: #1d3557;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 53, 87, 0.2);
}

.pos-item-form button.pos-add-btn:hover:not(:disabled) {
  background: #152a45;
  box-shadow: 0 4px 10px rgba(29, 53, 87, 0.25);
  transform: none;
}

.pos-item-form button.pos-add-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.pos-add-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 400;
}

.pos-item-note {
  width: 100%;
  padding: 9px 11px !important;
  border: 1px dashed #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  background: #fafbfc !important;
  box-sizing: border-box;
  color: #475569;
}

.pos-item-note::placeholder {
  color: #94a3b8;
}

.pos-item-note:focus {
  border-style: solid !important;
  border-color: #0d9488 !important;
  background: #fff !important;
}

.pos-no-results {
  text-align: center;
  padding: 32px 16px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.pos-no-results.is-hidden {
  display: none !important;
}

/* Order basket (right column) */
.pos-basket {
  position: sticky;
  top: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.pos-basket h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #0f172a;
}

.pos-basket table {
  width: 100%;
  font-size: 0.88rem;
}

.pos-basket .pos-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed #e2e8f0;
}

.pos-basket .sub {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 6px;
}

.pos-empty {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 12px 0;
  text-align: center;
}

.pos-kot-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pos-kot-actions form {
  margin: 0;
}

.pos-kot-actions .btn-kot,
.pos-kot-actions a.btn-kot {
  background: #1d3557;
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
}

.pos-kot-actions a.btn-kot.secondary,
.pos-kot-actions .btn-kot.secondary {
  background: #fff;
  color: #1d3557;
  border: 2px solid #1d3557;
}

.kot-tick {
  font-size: 0.75rem;
  color: #15803d;
  font-weight: 600;
}

.kot-pend {
  font-size: 0.75rem;
  color: #c2410c;
  font-weight: 600;
}

/* POS / Orders / Billing operational toolbar */
.pos-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.pos-change-table-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.pos-inline-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.pos-change-table-form select {
  width: auto;
  min-width: 180px;
  max-width: 220px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.pos-footer-links {
  margin-top: 12px;
  font-size: 0.9rem;
}

.ops-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ops-inline-form {
  display: inline;
  margin: 0;
}

.ops-table td {
  vertical-align: middle;
}

.ops-table .ops-btn-row .btn,
.ops-table .ops-btn-row button {
  margin: 0;
  font-size: 0.85rem;
  padding: 8px 12px;
}
