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

:root {
  --app-bg: #f4f7f9;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-border: #dde5ee;
  --app-border-strong: #c8d3df;
  --app-text: #111827;
  --app-muted: #667085;
  --app-muted-2: #98a2b3;
  --app-primary: #0f766e;
  --app-primary-dark: #115e59;
  --app-primary-soft: #dff5f1;
  --app-danger: #b42318;
  --app-warning: #b45309;
  --app-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  --app-shadow-soft: 0 8px 22px rgba(15, 23, 42, .06);
  --bs-body-font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --bs-body-color: var(--app-text);
  --bs-primary: var(--app-primary);
  --bs-primary-rgb: 15, 118, 110;
}

html {
  background: var(--app-bg);
}

body.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15,118,110,.07), rgba(15,118,110,0) 280px),
    var(--app-bg);
  color: var(--app-text);
  font-size: 15px;
}

a {
  color: var(--app-primary);
}

a:hover {
  color: var(--app-primary-dark);
}

.app-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

.app-public-shell {
  min-height: 100vh;
}

.app-public-main {
  width: min(100%, 1740px);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.app-mobile-nav {
  display: none;
}

.app-navbar {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 8px 26px rgba(15, 23, 42, .04);
  backdrop-filter: blur(14px);
}

.navbar-brand.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-text);
  font-weight: 800;
  letter-spacing: 0;
}

.app-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-primary);
  color: #fff;
  font-size: .86rem;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .24);
}

.app-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .1);
}

.app-navbar .navbar-nav {
  gap: 3px;
  flex-wrap: wrap;
}

.app-navbar .nav-link {
  border-radius: 8px;
  color: #475467;
  font-size: .92rem;
  font-weight: 650;
  padding: .48rem .68rem;
  white-space: nowrap;
}

.app-navbar .nav-link:hover {
  background: var(--app-surface-soft);
  color: var(--app-text);
}

.app-navbar .nav-link.active {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.app-navbar .dropdown-menu {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  box-shadow: var(--app-shadow);
}

.app-navbar .dropdown-item {
  border-radius: 7px;
  font-weight: 600;
  margin: 2px 6px;
  width: auto;
}

.app-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 240px;
  padding: 6px 10px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface-soft);
  color: #344054;
  font-size: .86rem;
  font-weight: 650;
}

.app-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  flex: 0 0 auto;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: 272px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-right: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 10px 0 30px rgba(15, 23, 42, .05);
}

.app-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.app-sidebar-brand {
  padding: 6px 6px 12px;
  text-decoration: none;
}

.app-sidebar-identity {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.app-sidebar-brand-compact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--app-primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.app-sidebar-brand-compact:hover {
  color: var(--app-primary-dark);
}

.settings-logo-preview {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-soft);
}

.settings-logo-preview img {
  width: 68px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.signup-modules {
  display: grid;
  gap: 10px;
}

.signup-module {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
}

.signup-module input {
  margin-top: 4px;
}

.signup-module span {
  display: grid;
  gap: 2px;
}

.signup-module small,
.signup-module em {
  color: var(--app-muted);
  font-size: .84rem;
  font-style: normal;
}

.agreement-box {
  max-height: 190px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-soft);
  color: var(--app-muted);
  font-size: .9rem;
}

.modules-card-price {
  margin-top: 10px;
  color: var(--app-primary-dark);
  font-weight: 800;
}

.commercial-doc {
  max-width: 980px;
  margin: 0 auto;
}

.commercial-box {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-soft);
}

.commercial-box span {
  display: block;
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.commercial-box strong {
  display: block;
  margin-top: 6px;
}

.commercial-box p {
  margin: 8px 0 0;
  color: var(--app-muted);
}

.commercial-total {
  max-width: 360px;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.commercial-total > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--app-border);
}

.commercial-total .total {
  color: var(--app-primary-dark);
  font-size: 1.08rem;
  border-bottom: 0;
}

@media print {
  .app-navbar,
  .app-sidebar,
  .d-print-none {
    display: none !important;
  }
  .app-main {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }
  body {
    background: #fff !important;
  }
}

.app-sidebar-context {
  margin: 8px 0 12px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-soft);
}

.app-sidebar-customer {
  color: var(--app-text);
  font-size: .95rem;
  font-weight: 800;
}

.app-sidebar-role {
  color: var(--app-muted);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.app-sidebar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--app-border);
  border-radius: 999px;
  background: var(--app-surface-soft);
  color: #344054;
  font-size: .86rem;
  font-weight: 750;
}

.app-sidebar-user:hover {
  color: var(--app-text);
  background: #fff;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: auto;
  padding: 2px 2px 14px;
  margin: 0;
}

.app-sidebar .nav-item {
  width: 100%;
}

.app-sidebar .nav-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-radius: 10px;
  color: #475467;
  font-size: .94rem;
  font-weight: 700;
  padding: .56rem .72rem;
}

.app-sidebar .nav-link:hover {
  background: #eef4f7;
  color: var(--app-text);
}

.app-sidebar .nav-link.active {
  background: var(--app-primary);
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, .18);
}

.app-sidebar .dropdown-menu {
  position: static !important;
  transform: none !important;
  width: 100%;
  margin: 4px 0 6px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  box-shadow: none;
}

.app-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--app-border);
}

.hero {
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.94)),
    #fff !important;
  box-shadow: var(--app-shadow-soft);
}

.hero h1 {
  margin: 0;
  font-weight: 850;
}

.card {
  border: 1px solid var(--app-border);
  border-radius: 12px !important;
  box-shadow: var(--app-shadow-soft);
}

.card.shadow-sm {
  box-shadow: var(--app-shadow-soft) !important;
}

.card-body {
  padding: 1.15rem;
}

.module-page {
  display: grid;
  gap: 16px;
}

.module-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,118,110,.9));
  box-shadow: var(--app-shadow);
}

.module-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  font-weight: 850;
}

.module-hero p {
  max-width: 700px;
  margin: 6px 0 0;
  color: rgba(255,255,255,.78);
}

.module-eyebrow,
.module-kicker {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

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

.module-stat {
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.module-stat span {
  display: block;
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.module-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--app-text);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 850;
}

.app-panel {
  overflow: hidden;
}

.crm-score {
  display: inline-grid;
  min-width: 42px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 850;
}

.crm-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--app-border);
}

.crm-score-row:last-child {
  border-bottom: 0;
}

.info-post-composer {
  border-color: rgba(15, 118, 110, .18);
}

.info-post-composer .card-body {
  padding: 20px;
}

.info-pin-check {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 750;
}

.crm-score-row span {
  color: var(--app-primary-dark);
  font-weight: 850;
}

.crm-timeline {
  display: grid;
  gap: 12px;
}

.crm-timeline-item {
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.crm-timeline-item p {
  margin: 8px 0 0;
  color: var(--app-muted);
}

.crm-linked-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.places-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, .82), rgba(220, 252, 231, .75)),
    #fff;
  box-shadow: var(--app-shadow-soft);
}

.places-quick-link h2 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
  font-weight: 850;
}

.places-quick-link p {
  max-width: 820px;
  margin: 0;
  color: var(--app-muted);
}

.places-quick-pills {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 220px;
}

.places-quick-pills span {
  padding: 7px 10px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--app-primary-dark);
  font-size: .82rem;
  font-weight: 800;
}

.places-table-wrap {
  overflow-x: auto;
}

.places-table {
  min-width: 1120px;
}

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

.places-table td:nth-child(4) {
  max-width: 310px;
  word-break: break-all;
}

.place-row-actions {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.25fr);
  align-items: start;
  gap: 10px;
}

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

.place-qr-actions .btn,
.place-qr-actions form {
  min-height: 34px;
}

.place-mode-form {
  display: grid;
  grid-template-columns: minmax(145px, 170px) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: start;
  justify-content: end;
}

.place-mode-form .ms-1 {
  margin-left: 0 !important;
}

.place-mode-form .redirect-url {
  min-width: 0;
}

.place-mode-form .btn {
  min-height: 34px;
}

.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.permission-row select {
  width: 150px;
  flex: 0 0 auto;
}

.app-panel-head,
.dashboard-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-eyebrow-dark {
  color: var(--app-primary-dark);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-inbox-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 14px;
}

.dashboard-inbox-stats div {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.dashboard-inbox-stats span {
  display: block;
  color: var(--app-muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dashboard-inbox-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 850;
}

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

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

.dashboard-inbox-column {
  min-width: 0;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fbfdfe;
  overflow: hidden;
}

.dashboard-inbox-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--app-border);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.dashboard-inbox-column-head span {
  display: block;
  color: var(--app-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-inbox-column-head strong {
  display: block;
  margin-top: 2px;
  font-size: .98rem;
}

.dashboard-inbox-list {
  display: grid;
}

.dashboard-inbox-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  color: var(--app-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, .07);
  transition: background .16s ease, transform .16s ease;
}

.dashboard-inbox-item:last-child {
  border-bottom: 0;
}

.dashboard-inbox-item:hover {
  color: var(--app-text);
  background: #fff;
  transform: translateX(2px);
}

.dashboard-inbox-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 850;
}

.dashboard-inbox-mark-inspection {
  color: #1d4ed8;
  background: #dbeafe;
}

.dashboard-inbox-mark-issue {
  color: #b42318;
  background: #fee4e2;
}

.dashboard-inbox-content {
  min-width: 0;
}

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

.dashboard-inbox-top strong {
  min-width: 0;
  font-size: .94rem;
  overflow-wrap: anywhere;
}

.dashboard-inbox-meta,
.dashboard-inbox-foot {
  color: var(--app-muted);
  font-size: .8rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-pill-ok {
  color: #067647;
  background: #dcfae6;
}

.dashboard-pill-danger {
  color: #b42318;
  background: #fee4e2;
}

.dashboard-pill-neutral {
  color: #344054;
  background: #eef2f6;
}

.dashboard-polished-empty {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  color: #344054;
}

.dashboard-polished-empty-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--app-primary-dark);
  background: var(--app-primary-soft);
  font-weight: 850;
}

.dashboard-polished-empty strong,
.dashboard-polished-empty span {
  display: block;
}

.dashboard-polished-empty span {
  color: var(--app-muted);
  font-size: .9rem;
  margin-top: 2px;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: #f8fafc;
  margin-bottom: 0;
}

.table thead th {
  color: #667085;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom-color: var(--app-border);
}

.table tbody td {
  color: #344054;
  border-bottom-color: #edf1f5;
  vertical-align: middle;
}

.table-responsive {
  border-radius: 10px;
}

.form-label {
  color: #344054;
  font-size: .86rem;
  font-weight: 750;
}

.form-control,
.form-select {
  border-color: var(--app-border-strong);
  border-radius: 8px;
  color: var(--app-text);
  min-height: 40px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}

.btn {
  border-radius: 8px !important;
  font-weight: 750;
}

.btn-primary {
  --bs-btn-bg: var(--app-primary);
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary-dark);
  --bs-btn-hover-border-color: var(--app-primary-dark);
  --bs-btn-active-bg: var(--app-primary-dark);
  --bs-btn-active-border-color: var(--app-primary-dark);
  box-shadow: 0 10px 18px rgba(15, 118, 110, .18);
}

.btn-outline-dark {
  --bs-btn-color: #344054;
  --bs-btn-border-color: #c8d3df;
  --bs-btn-hover-bg: #111827;
  --bs-btn-hover-border-color: #111827;
}

.btn-outline-primary {
  --bs-btn-color: var(--app-primary);
  --bs-btn-border-color: rgba(15, 118, 110, .36);
  --bs-btn-hover-bg: var(--app-primary);
  --bs-btn-hover-border-color: var(--app-primary);
}

.badge {
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0;
}

.alert {
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: var(--app-shadow-soft);
}

.list-group-item {
  border-color: #edf1f5;
}

code {
  color: var(--app-primary-dark);
  background: var(--app-primary-soft);
  border-radius: 6px;
  padding: 2px 6px;
}

.kanban-column {
  border-radius: 12px !important;
  background: #eef4f7 !important;
}

.kanban-card {
  border-radius: 10px !important;
}

.dashboard-page {
  display: grid;
  gap: 20px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.99), rgba(15,118,110,.9)),
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.24), transparent 28%);
  box-shadow: var(--app-shadow);
}

.dashboard-hero:before {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.dashboard-hero-main {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1;
}

.dashboard-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 850;
  letter-spacing: 0;
}

.dashboard-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-subtitle {
  color: rgba(255,255,255,.78);
}

.dashboard-hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.dashboard-hero-metrics div {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}

.dashboard-hero-metrics div:nth-child(6) {
  border-color: rgba(254,202,202,.36);
  background: rgba(127,29,29,.18);
}

.dashboard-hero-metrics span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dashboard-hero-metrics strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 850;
}

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

.dashboard-quick-actions .btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255,255,255,.42);
  --bs-btn-hover-bg: rgba(255,255,255,.16);
  --bs-btn-hover-border-color: rgba(255,255,255,.72);
}

.dashboard-stat {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border: 1px solid rgba(15, 23, 42, .07);
  background: linear-gradient(180deg, #fff, #fbfdfe);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dashboard-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, .24);
  box-shadow: var(--app-shadow);
}

.dashboard-stat .card-body {
  position: relative;
  z-index: 1;
}

.dashboard-stat:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--app-primary);
}

.dashboard-stat:after {
  content: "";
  position: absolute;
  inset: auto -34px -44px auto;
  width: 116px;
  height: 116px;
  border-radius: 32px;
  background: rgba(15,118,110,.08);
  transform: rotate(18deg);
}

.dashboard-stat-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  font-size: .86rem;
  font-weight: 850;
}

.dashboard-stat-platform {
  border-color: rgba(180,83,9,.32);
  background: linear-gradient(180deg, #fff, #fffbeb);
}

.dashboard-stat-accent {
  background: linear-gradient(180deg, #fff, #eefdf9);
}

.dashboard-stat-people:before { background: #0f766e; }
.dashboard-stat-places:before { background: #2563eb; }
.dashboard-stat-live:before { background: #16a34a; }
.dashboard-stat-today:before { background: #7c3aed; }
.dashboard-stat-places .dashboard-stat-icon { background: #dbeafe; color: #1d4ed8; }
.dashboard-stat-live .dashboard-stat-icon { background: #dcfce7; color: #15803d; }
.dashboard-stat-today .dashboard-stat-icon { background: #ede9fe; color: #6d28d9; }

.dashboard-stat-danger {
  background: linear-gradient(180deg, #fff, #fff5f5);
}

.dashboard-stat-danger:before {
  background: #dc2626;
}

.dashboard-stat-danger:after {
  background: rgba(220,38,38,.08);
}

.dashboard-stat-danger .dashboard-stat-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.dashboard-stat-label {
  color: var(--app-muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dashboard-stat-value {
  margin-top: 6px;
  color: var(--app-text);
  font-size: 2.05rem;
  line-height: 1;
  font-weight: 850;
}

.dashboard-stat-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: .86rem;
  font-weight: 750;
}

.dashboard-panel {
  overflow: hidden;
  border-color: rgba(15, 23, 42, .08);
  border-radius: 14px !important;
}

.dashboard-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  grid-template-areas:
    "latest actions"
    "latest activity";
  gap: 16px;
}

.dashboard-work-main {
  grid-area: latest;
}

.dashboard-work-grid > div:nth-child(2) {
  grid-area: activity;
}

.dashboard-work-grid > div:nth-child(3) {
  grid-area: actions;
}

.dashboard-activity-item {
  padding: 12px 0;
  background: transparent;
}

.dashboard-action-card {
  border-color: var(--app-border);
  box-shadow: none;
}

.dashboard-empty-state {
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 650;
}

.dashboard-module-overview {
  padding: 18px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: var(--app-shadow-soft);
}

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

.module-dashboard-card {
  display: flex;
  gap: 12px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  color: var(--app-text);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.module-dashboard-card:hover {
  border-color: rgba(15, 118, 110, .32);
  color: var(--app-text);
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-soft);
}

.module-dashboard-card span {
  display: block;
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.module-dashboard-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.module-dashboard-card small {
  display: block;
  margin-top: 8px;
  color: var(--app-muted);
  line-height: 1.35;
}

.module-dashboard-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  font-weight: 850;
}

.inspection-page {
  display: grid;
  gap: 16px;
}

.inspection-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,118,110,.9)),
    radial-gradient(circle at 80% 12%, rgba(255,255,255,.22), transparent 30%);
  box-shadow: var(--app-shadow);
}

.inspection-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  font-weight: 850;
  letter-spacing: 0;
}

.inspection-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.inspection-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.inspection-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.inspection-hero-actions .btn-primary {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-color: var(--app-primary-dark);
  --bs-btn-hover-bg: var(--app-primary-soft);
  --bs-btn-hover-border-color: var(--app-primary-soft);
  --bs-btn-hover-color: var(--app-primary-dark);
  box-shadow: none;
}

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

.inspection-stat {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdfe);
  box-shadow: var(--app-shadow-soft);
}

.inspection-stat span {
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inspection-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--app-text);
  font-size: 2rem;
  line-height: 1;
}

.inspection-stat-danger {
  background: linear-gradient(180deg, #fff, #fff5f5);
  border-color: #fecaca;
}

.inspection-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.inspection-tool-card,
.inspection-filter-card,
.inspection-table-card,
.inspection-template-card {
  border-radius: 14px !important;
}

.inspection-template-card {
  overflow: hidden;
}

.inspection-template-card > .card-body {
  padding: 18px;
}

.inspection-block-title {
  margin-bottom: 8px;
  color: #344054;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inspection-list {
  border: 1px solid var(--app-border);
  border-radius: 10px;
  overflow: hidden;
}

.inspection-list-item {
  padding: 12px 14px;
}

.inspection-table-card .table tbody tr:hover {
  background: #f8fafc;
}

.forms-page {
  display: grid;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.forms-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.96), rgba(20,83,45,.86)),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.24), transparent 30%);
  box-shadow: var(--app-shadow);
}

.forms-hero-compact {
  padding: 22px 24px;
}

.forms-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  font-weight: 850;
  letter-spacing: 0;
}

.forms-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.forms-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

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

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

.forms-quickstart > div {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.forms-quickstart span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--app-primary);
  font-weight: 850;
}

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

.forms-quickstart p {
  margin: 0;
  color: var(--app-muted);
  font-size: .9rem;
}

.forms-stat {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdfe);
  box-shadow: var(--app-shadow-soft);
}

.forms-stat span {
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.forms-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--app-text);
  font-size: 1.8rem;
  line-height: 1;
}

.forms-table-card,
.forms-editor-card,
.forms-builder-card,
.forms-question-card,
.forms-answer-card,
.forms-response-meta {
  border-radius: 14px !important;
}

.forms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.forms-list-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdfe);
  box-shadow: var(--app-shadow-soft);
}

.forms-list-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.forms-list-card h3 {
  margin: 4px 0 2px;
  font-size: 1.05rem;
  font-weight: 850;
}

.forms-list-card small {
  color: var(--app-muted);
}

.forms-list-id {
  color: var(--app-primary-dark);
  font-size: .78rem;
  font-weight: 850;
}

.forms-list-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.forms-list-meta span {
  color: var(--app-muted);
  font-size: .8rem;
  font-weight: 800;
}

.forms-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.forms-editor-card {
  max-width: 840px;
}

.forms-builder-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.forms-builder-card {
  position: sticky;
  top: 18px;
}

.forms-question-item {
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-soft);
}

.forms-question-item + .forms-question-item {
  margin-top: 10px;
}

.forms-empty {
  padding: 28px;
  border: 1px dashed var(--app-border-strong);
  border-radius: 12px;
  color: var(--app-muted);
  text-align: center;
  background: var(--app-surface-soft);
}

.forms-response-meta .card-body {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.forms-response-meta span {
  display: block;
  color: var(--app-muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.forms-response-meta strong {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.forms-answer-card {
  background: linear-gradient(180deg, #fff, #fbfdfe);
}

.modules-page {
  display: grid;
  gap: 20px;
}

.modules-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 22px;
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.98), rgba(15,118,110,.88)),
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.25), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(34,197,94,.22), transparent 30%);
  box-shadow: var(--app-shadow);
}

.modules-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  font-weight: 850;
  letter-spacing: 0;
}

.modules-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.modules-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.modules-hero-panel {
  width: min(100%, 300px);
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.modules-hero-panel span,
.modules-hero-panel small {
  color: rgba(255,255,255,.75);
  font-weight: 750;
}

.modules-hero-panel span {
  font-size: .76rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.modules-hero-panel strong {
  font-size: 2.35rem;
  line-height: 1;
}

.modules-hero-panel .btn {
  justify-self: start;
  margin-top: 6px;
}

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

.modules-stat {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fbfdfe);
  box-shadow: var(--app-shadow-soft);
}

.modules-stat span {
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.modules-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.modules-stat small {
  display: block;
  margin-top: 8px;
  color: var(--app-muted);
  font-weight: 650;
}

.modules-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.modules-section-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
}

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

.modules-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 248px;
  padding: 22px 20px 20px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)),
    radial-gradient(circle at 100% 0%, rgba(15,118,110,.13), transparent 34%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.modules-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,118,110,.32);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .11);
}

.modules-card:after {
  content: "";
  position: absolute;
  inset: auto -34px -34px auto;
  width: 120px;
  height: 120px;
  border-radius: 34px;
  background: var(--app-primary-soft);
  opacity: .72;
  transform: rotate(12deg);
}

.modules-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--app-primary);
  opacity: .9;
}

.modules-card > * {
  position: relative;
  z-index: 1;
}

.modules-card.is-active {
  border-color: rgba(15,118,110,.35);
}

.modules-card.is-available {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98)),
    radial-gradient(circle at 100% 0%, rgba(100,116,139,.13), transparent 34%);
  opacity: .86;
}

.modules-card.is-available:after {
  background: #eef2f7;
}

.modules-card.is-available:before {
  background: #94a3b8;
}

.modules-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 58px;
}

.modules-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 850;
}

.modules-card-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.modules-card-heading {
  min-width: 0;
  padding-top: 2px;
}

.modules-card-badge {
  display: flex;
  justify-content: flex-end;
  min-width: 88px;
  padding-top: 3px;
}

.modules-card-badge .badge {
  min-width: 78px;
  text-align: center;
}

.modules-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
  color: #fff;
  font-size: .94rem;
  font-weight: 850;
  box-shadow: 0 10px 18px rgba(15,118,110,.18);
}

.modules-card.is-available .modules-mark {
  background: linear-gradient(135deg, #64748b, #475569);
  box-shadow: none;
}

.modules-code {
  margin-top: 5px;
  color: var(--app-muted);
  font-size: .78rem;
  font-weight: 750;
}

.modules-card p {
  min-height: 72px;
  margin: 0;
  color: #475467;
  line-height: 1.55;
}

.modules-card-footerline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.modules-card-footerline span {
  height: 1px;
  flex: 1 1 auto;
  background: var(--app-border);
}

.modules-card-footerline small {
  color: var(--app-muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.modules-card-action {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
}

.modules-card-note {
  display: inline-flex;
  color: var(--app-muted);
  font-size: .84rem;
  font-weight: 700;
}

.modules-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--app-border-strong);
  border-radius: 12px;
  color: var(--app-muted);
  text-align: center;
  background: var(--app-surface-soft);
}

.wms-page {
  display: grid;
  gap: 16px;
}

.wms-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.wms-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #344054;
  text-decoration: none;
  font-weight: 800;
}

.wms-nav-link:hover,
.wms-nav-link.active {
  background: var(--app-primary);
  color: #fff;
}

.wms-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,118,110,.9)),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.22), transparent 30%);
  box-shadow: var(--app-shadow);
}

.wms-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.65rem, 2.7vw, 2.8rem);
  font-weight: 850;
  letter-spacing: 0;
}

.wms-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.wms-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wms-scan-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.wms-scan-card {
  width: min(100%, 760px);
  padding: 22px;
  border: 1px solid var(--app-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--app-shadow);
}

.wms-scan-card h1 {
  margin: 18px 0 4px;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 850;
  letter-spacing: 0;
}

.wms-scan-card p {
  color: var(--app-muted);
}

.wms-scan-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.wms-scan-meta div {
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.wms-scan-meta span {
  display: block;
  color: var(--app-muted);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wms-scan-meta strong {
  display: block;
  margin-top: 4px;
}

.wms-scan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

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

.wms-inventory-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.wms-inventory-row span {
  display: block;
  color: var(--app-muted);
  font-size: .86rem;
}

.wms-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--app-border-strong);
  border-radius: 14px;
  color: var(--app-muted);
  text-align: center;
  background: #fff;
}

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

.wms-product-stats > div {
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.wms-product-stats span {
  display: block;
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wms-product-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--app-text);
  font-size: 1.55rem;
  font-weight: 850;
}

.wms-product-stats small {
  color: var(--app-muted);
  font-weight: 650;
}

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

.wms-product-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.wms-product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.wms-product-card h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0;
}

.wms-product-sku {
  color: var(--app-primary-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

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

.wms-product-meta div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.wms-product-meta span {
  display: block;
  color: var(--app-muted);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wms-product-meta strong {
  display: block;
  overflow: hidden;
  color: var(--app-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wms-product-location {
  min-height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: var(--app-primary-soft);
}

.wms-product-location code,
.wms-product-location small {
  display: block;
}

.wms-product-location small {
  color: var(--app-muted);
}

.wms-product-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.wms-product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.wms-product-header h1 {
  margin: 2px 0 8px;
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  font-weight: 850;
  letter-spacing: 0;
}

.wms-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 16px;
  align-items: start;
}

.wms-product-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.wms-product-log {
  display: grid;
  gap: 8px;
}

.wms-product-log-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.wms-product-log-item strong,
.wms-product-log-item span {
  display: block;
}

.wms-product-log-item span,
.wms-product-log-item small {
  color: var(--app-muted);
}

.wms-product-log-item small {
  min-width: 128px;
  text-align: right;
}

.visit-page {
  display: grid;
  gap: 16px;
}

.visit-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 26px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.97), rgba(15,118,110,.9)),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.24), transparent 30%);
  box-shadow: var(--app-shadow);
}

.visit-hero h1 {
  max-width: 820px;
  margin: 5px 0 8px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: 0;
}

.visit-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.visit-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

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

.visit-stats > div,
.visit-how {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.visit-stats > div {
  padding: 16px;
}

.visit-stats span {
  display: block;
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.visit-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--app-text);
  font-size: 1.6rem;
  font-weight: 850;
}

.visit-stats small {
  color: var(--app-muted);
  font-weight: 650;
}

.visit-how {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
  padding: 20px;
}

.visit-how h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 850;
}

.visit-how p {
  margin: 0;
  color: var(--app-muted);
}

.visit-how-steps {
  display: grid;
  gap: 8px;
}

.visit-how-steps span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
  font-weight: 800;
}

.visit-activity {
  display: grid;
  gap: 8px;
}

.visit-activity-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.visit-activity-row strong,
.visit-activity-row span {
  display: block;
}

.visit-activity-row span,
.visit-activity-row small {
  color: var(--app-muted);
}

.visit-activity-row small {
  min-width: 126px;
  text-align: right;
}

.wms-print-note .wms-nav,
.wms-print-note .btn {
  display: none !important;
}

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

.wms-inbound-meta > div {
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.wms-inbound-meta span {
  display: block;
  color: var(--app-muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.wms-inbound-meta strong {
  display: block;
  margin-top: 4px;
  color: var(--app-text);
  font-weight: 850;
}

.migration-log {
  max-height: 320px;
  padding: 14px;
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  font-size: .86rem;
  white-space: pre-wrap;
}

@media print {
  .app-navbar,
  .app-sidebar,
  .wms-nav,
  .btn {
    display: none !important;
  }

  .app-main {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .card {
    border: 0 !important;
    box-shadow: none !important;
  }
}

.docs-page {
  display: grid;
  gap: 16px;
}

.docs-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,24,39,.96), rgba(15,118,110,.88)),
    radial-gradient(circle at 82% 10%, rgba(255,255,255,.2), transparent 30%);
  box-shadow: var(--app-shadow);
}

.docs-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  font-weight: 850;
  letter-spacing: 0;
}

.docs-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.78);
}

.docs-eyebrow {
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.docs-toc,
.docs-content {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.docs-toc {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 2px;
  padding: 14px;
}

.docs-toc-title {
  margin-bottom: 6px;
  color: var(--app-muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.docs-toc-link {
  padding: 7px 8px;
  border-radius: 8px;
  color: #344054;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
}

.docs-toc-link:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.docs-toc-level-2 {
  padding-left: 18px;
}

.docs-toc-level-3 {
  padding-left: 30px;
  font-size: .84rem;
  font-weight: 700;
}

.docs-content {
  padding: 28px;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  scroll-margin-top: 22px;
  letter-spacing: 0;
}

.docs-content h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  font-weight: 850;
}

.docs-content h2 {
  margin: 32px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--app-border);
  font-size: 1.35rem;
  font-weight: 850;
}

.docs-content h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 850;
}

.docs-content p,
.docs-content li {
  color: #344054;
  line-height: 1.65;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.35rem;
}

.docs-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2f7;
  color: #0f172a;
  font-size: .9em;
}

.docs-content pre {
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  background: #111827;
  color: #e5e7eb;
}

.docs-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

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

.chat-sidebar-panel,
.chat-main-panel {
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-soft);
}

.chat-sidebar-panel {
  padding: 16px;
}

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

.chat-section-title {
  margin: 14px 2px 8px;
  color: var(--app-muted);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chat-create-panel {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 10px;
  background: var(--app-surface-soft);
}

.chat-create-panel summary {
  cursor: pointer;
  color: var(--app-text);
  font-weight: 800;
}

.chat-create-panel form {
  margin-top: 10px;
}

.chat-check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: .86rem;
  font-weight: 700;
}

.chat-direct-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-channel {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475467;
  text-decoration: none;
  font-weight: 800;
}

.chat-channel small {
  color: var(--app-muted);
  font-weight: 600;
}

.chat-channel.active,
.chat-channel:hover {
  background: var(--app-primary-soft);
  color: var(--app-primary-dark);
}

.chat-main-panel {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  min-width: 0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--app-border);
}

.chat-messages {
  overflow: auto;
  padding: 18px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.chat-message-own {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.chat-message-own .chat-avatar {
  order: 2;
  background: #111827;
}

.chat-message-own .chat-message-body {
  order: 1;
  justify-self: end;
  text-align: right;
}

.chat-message-own .chat-message-meta {
  justify-content: flex-end;
}

.chat-message-own .chat-bubble {
  border-color: var(--app-primary);
  background: var(--app-primary);
  color: #fff;
  text-align: left;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--app-primary);
  color: #fff;
  font-weight: 850;
}

.chat-message-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--app-muted);
  font-size: .82rem;
}

.chat-message-meta b {
  color: var(--app-text);
}

.chat-bubble {
  display: inline-block;
  max-width: min(720px, 100%);
  margin-top: 3px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: #fff;
  color: #344054;
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--app-border);
}

@media (max-width: 991.98px) {
  body.app-shell {
    font-size: 14px;
  }

  .app-main {
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .app-public-main {
    padding: 14px 12px 32px;
  }

  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card-body {
    padding: 16px;
  }

  .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .table-responsive {
    border: 1px solid var(--app-border);
    border-radius: 10px;
  }

  .table {
    min-width: 720px;
  }

  .app-mobile-nav {
    display: flex;
  }

  .app-sidebar {
    display: none;
  }

  .app-navbar .navbar-collapse {
    padding-top: 12px;
  }

  .app-navbar .navbar-nav {
    max-height: 60vh;
    overflow: auto;
    flex-wrap: nowrap;
  }

  .app-user-chip {
    max-width: 100%;
  }

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

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

  .inspection-hero-actions,
  .forms-hero-actions {
    justify-content: flex-start;
  }

  .places-quick-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .places-quick-pills {
    justify-content: flex-start;
    min-width: 0;
  }

  .places-table {
    min-width: 960px;
  }

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

  .place-qr-actions {
    justify-content: flex-start;
  }

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

  .forms-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
  }

  .module-hero,
  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
    border-radius: 12px;
  }

  .dashboard-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-hero h1,
  .dashboard-hero h1 {
    font-size: 1.65rem;
  }

  .dashboard-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 18px;
  }

  .dashboard-work-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "actions"
      "latest"
      "activity";
  }

  .dashboard-inbox-grid {
    grid-template-columns: 1fr;
  }

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

  .module-actions,
  .dashboard-quick-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .module-actions .btn,
  .dashboard-quick-actions .btn {
    flex: 1 1 140px;
  }

  .module-stats {
    grid-template-columns: 1fr;
  }

  .module-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .module-dashboard-card {
    min-height: 0;
  }

  .forms-hero h1 {
    font-size: 1.65rem;
  }

  .forms-hero p {
    font-size: .98rem;
  }

  .forms-hero-actions {
    width: 100%;
  }

  .forms-hero-actions .btn {
    flex: 1 1 150px;
  }

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

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

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    position: static;
  }

  .modules-hero-panel {
    width: 100%;
  }

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

  .inspection-stats,
  .inspection-tools-grid,
  .forms-stats,
  .forms-quickstart,
  .forms-builder-grid,
  .forms-response-meta .card-body,
  .modules-summary,
  .modules-grid,
  .wms-product-stats,
  .wms-products-grid,
  .wms-product-layout,
  .wms-product-activity-grid,
  .wms-inbound-meta,
  .visit-stats,
  .visit-how,
  .wms-scan-meta,
  .wms-scan-actions {
    grid-template-columns: 1fr;
  }

  .wms-product-header,
  .wms-product-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .wms-product-log-item {
    flex-direction: column;
  }

  .wms-product-log-item small {
    min-width: 0;
    text-align: left;
  }

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

  .visit-hero-actions {
    justify-content: flex-start;
  }

  .visit-activity-row {
    flex-direction: column;
  }

  .visit-activity-row small {
    min-width: 0;
    text-align: left;
  }

  .forms-builder-card {
    position: static;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .app-sidebar + .app-main {
    margin-left: 272px;
    width: calc(100% - 272px);
    max-width: none;
    padding-left: 28px;
    padding-right: 28px;
  }
}

.floorplan-canvas {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 12px;
  background: #f8fafc;
  min-height: 260px;
}

.floorplan-image {
  display: block;
  width: 100%;
  height: auto;
}

.floorplan-marker {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
}

.floorplan-marker span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .module-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .dashboard-hero-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-inbox-stats,
  .dashboard-inbox-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-inbox-column-head,
  .dashboard-inbox-top {
    align-items: flex-start;
  }

  .dashboard-inbox-top {
    flex-direction: column;
  }
}
