:root {
  --bg: #F5F7FA;
  --paper: #fff;
  --ink: #142D4E;
  --muted: #64748B;
  --teal: #0F766E;
  --navy: #142D4E;
  --accent-soft: #99E0D8;
  --line: #E2E8F0;
  --blue: #3f7bd2;
  --orange: #cd8b43;
  --purple: #8970bd;
  --shadow: 0 4px 25px #142D4E06;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #0F766E;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #76BDB6;
  outline-offset: 1px;
  border-color: #0F766E;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.55;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 16px;
}
h3 {
  font-size: 14px;
}
small {
  font-size: 11px;
}
.icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.block {
  display: block;
  width: 100%;
}
.num {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  display: inline-block;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #fff;
}
.brand > span:last-child {
  font-size: 31px;
  font-weight: 700;
  line-height: 1.35;
}
.brand small {
  display: block;
  color: #AFBDCF;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--navy);
  width: 45px;
  height: 45px;
  border-radius: 13px;
}
.brand-mark .icon {
  width: 29px;
  height: 29px;
  stroke-width: 2;
}
.initial-loading {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--teal);
}
.app-shell {
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 248px;
  background: var(--navy);
  color: #C1CDDD;
  display: flex;
  flex-direction: column;
  padding: 31px 18px 16px;
  z-index: 20;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4B617F transparent;
}
.sidebar .brand {
  margin: 0 11px 39px;
}
.workspace-label {
  font-size: 10px;
  color: #A5B5C9;
  margin: 0 15px 13px;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #9EB0C8;
  margin: 26px 15px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 9px;
  margin-bottom: 5px;
  font-size: 11px;
  transition: 0.2s;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.nav-item:hover {
  background: #ffffff09;
  color: #fff;
}
.nav-item.active {
  background: #99E0D8;
  color: #142D4E;
  font-weight: 700;
}
.nav-chev {
  width: 13px !important;
  height: 13px !important;
  margin-inline-start: auto;
  transform: rotate(180deg);
  opacity: 0.6;
}
.subnav {
  padding-block: 3px 6px;
  padding-inline: 43px 4px;
  font-size: 10px;
}
.subnav a {
  display: block;
  padding: 7px 0;
  color: #BAC9DB;
  position: relative;
}
.subnav a:hover,
.subnav a.selected {
  color: #99E0D8;
}
.subnav a.selected:before {
  content: "";
  position: absolute;
  inset-inline-start: -13px;
  top: 15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sync-card {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ffffff15;
  border-radius: 10px;
  padding: 12px 10px;
  margin-bottom: 15px;
  font-size: 10px;
  color: #D9E3EF;
}
.sync-card small {
  display: block;
  color: #A8BACF;
  font-size: 8px;
  margin-top: 2px;
}
.sync-card > .icon {
  width: 17px;
  color: #A8CFCB;
  margin-inline-start: auto;
}
.sync-dot,
.live-dot {
  width: 6px;
  height: 6px;
  background: #77D2C5;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.sync-dot {
  box-shadow: 0 0 0 4px #77D2C51A;
}
.user-card {
  background: none;
  color: #EDF3FA;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff12;
  width: 100%;
  padding: 18px 8px 1px;
  text-align: start;
  font-size: 11px;
}
.avatar {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #D8E9EA;
  color: #142D4E;
  font-size: 16px;
  font-weight: 700;
}
.user-card small {
  display: block;
  color: #ADBDD2;
  font-size: 9px;
}
.user-card > .icon {
  width: 14px;
  margin-inline-start: auto;
  transform: rotate(180deg);
  color: #A8BACF;
}
.main-wrap {
  margin-inline-start: 248px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #79899E;
}
.breadcrumbs .icon {
  width: 12px;
  height: 12px;
  transform: rotate(180deg);
}
.breadcrumbs strong {
  font-weight: 400;
  color: #4D5A6A;
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 19px;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #697B91;
}
.search-wrap .icon {
  width: 16px;
  height: 16px;
}
.search-wrap input {
  border: 0;
  background: transparent;
  width: 195px;
  font-size: 10px;
  outline: 0;
}
.search-wrap input::placeholder {
  color: #8090A3;
}
.search-wrap kbd {
  display: grid;
  place-items: center;
  width: 21px;
  height: 22px;
  border: 1px solid #E4E8ED;
  border-radius: 4px;
  font-family: Arial;
  color: #919FB0;
  font-size: 11px;
}
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}
.company-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #4D5A6A;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.company-label .icon {
  width: 17px;
  height: 17px;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 7px;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: transparent;
  color: #627287;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.icon-button:hover {
  background: #EDF0F4;
  color: var(--teal);
}
.notification {
  position: relative;
}
.notification .icon {
  width: 20px;
  height: 20px;
}
.notification-count {
  position: absolute;
  inset-block-start: -5px;
  inset-inline-end: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 20px;
  padding-inline: 4px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #b42318;
  color: #fff;
  font: 700 11px/1 Arial, sans-serif;
  box-shadow: 0 1px 4px #142d4e20;
  pointer-events: none;
}
.notification-count.is-zero {
  background: #627287;
}
.notification i {
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  background: #e5a168;
  width: 5px;
  height: 5px;
  border: 1px solid white;
  border-radius: 50%;
}
.menu-toggle {
  display: none;
}
.main-content {
  padding: 30px 36px 24px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 9px;
  color: #718398;
  margin-bottom: 4px;
  font-weight: 400;
}
.eyebrow span {
  margin: 0 7px;
  color: #A5B0BE;
}
.page-heading h1 {
  font-size: 24px;
  font-weight: 700;
}
.page-heading p {
  color: #708298;
  font-size: 11px;
  margin-top: 6px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.date-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 9px;
  color: #4D5A6A;
  white-space: nowrap;
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-chip .icon {
  width: 14px;
  height: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
  border: 1px solid transparent;
  font-weight: 500;
  white-space: nowrap;
  min-height: 37px;
  transition: 0.16s;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.primary {
  color: #fff;
  background: var(--teal);
}
.btn.primary:hover {
  background: #0B625B;
  box-shadow: 0 3px 10px #0F766E26;
}
.btn.secondary {
  background: #fff;
  border-color: #DDE2E9;
  color: #142D4E;
}
.btn.secondary:hover {
  border-color: #90B8BC;
  background: #FAFBFC;
}
.btn.ghost {
  background: transparent;
  color: #59687B;
}
.btn.danger {
  background: #fff2ef;
  color: #b96358;
  border-color: #f4ddd7;
}
.btn.block {
  display: flex;
  width: 100%;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 9px;
  background: #fff8;
  color: #0F766E;
}
.pill .icon {
  width: 13px;
  height: 13px;
}
.pill.light {
  background: #ffffff0e;
  color: #D0E7E5;
  border: 1px solid #ffffff16;
}
.pill .live-dot {
  width: 4px;
  height: 4px;
}
.pill.green {
  background: #E8F5F2;
  color: #0F766E;
}
.welcome-banner {
  height: 244px;
  background: #142D4E;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 29px 35px;
  margin-bottom: 22px;
  background-image: radial-gradient(ellipse at 0 0, #245976 0, transparent 65%);
}
.welcome-banner > div:first-child {
  position: relative;
  z-index: 2;
}
.welcome-banner h2 {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.6;
  margin-top: 9px;
  letter-spacing: -0.5px;
}
.welcome-banner h2 br {
  display: none;
}
.welcome-banner em {
  color: #99E0D8;
  font-style: normal;
}
.welcome-banner p {
  color: #BECFE0;
  font-size: 10px;
  margin-top: 8px;
  line-height: 1.9;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #C5F0EA;
  font-size: 9px;
  margin-top: 15px;
}
.hero-link .icon {
  width: 15px;
  height: 15px;
}
.banner-tag {
  position: absolute;
  bottom: 16px;
  inset-inline-end: 24px;
  letter-spacing: 2.5px;
  font-size: 6px;
  color: #A9BFCE;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-art {
  position: relative;
  width: 420px;
  height: 235px;
  flex-shrink: 0;
  margin-inline-end: 18px;
}
.hero-rings {
  width: 310px;
  height: 310px;
  position: absolute;
  border: 1px solid #ffffff0a;
  inset-inline-end: 40px;
  top: -36px;
  border-radius: 50%;
  box-shadow:
    0 0 0 40px #ffffff03,
    0 0 0 80px #ffffff02;
}
.hero-rings:before {
  content: "";
  position: absolute;
  inset: 43px;
  border: 1px dashed #99E0D82E;
  border-radius: 50%;
}
.hero-core {
  position: absolute;
  inset-inline-end: 148px;
  top: 58px;
  width: 116px;
  height: 116px;
  border: 1px solid #99E0D844;
  border-radius: 27px;
  transform: rotate(-10deg);
  background: linear-gradient(130deg, #246D7A, #1B465E);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 14px 25px #091B302C;
}
.hero-core > .icon {
  width: 29px;
  height: 29px;
  color: #99E0D8;
  transform: rotate(10deg);
}
.hero-core > span {
  font-size: 25px;
  line-height: 1.2;
  margin-top: 7px;
  color: #F2FAFC;
  transform: rotate(10deg);
}
.hero-core > small {
  font-size: 7px;
  color: #BFD6DE;
  transform: rotate(10deg);
  margin-top: 4px;
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #99E0D83B;
  z-index: 1;
  border-radius: 10px;
  background: #1A4263ED;
  box-shadow: 0 8px 25px #091B301F;
}
.float-card > .icon {
  width: 25px;
  height: 25px;
  color: #99E0D8;
}
.float-card > span {
  font-size: 10px;
  color: #F1FAFC;
}
.float-card small {
  display: block;
  font-size: 7px;
  color: #BCD2E0;
  margin-top: 3px;
}
.float-card > .icon:last-child {
  width: 14px;
  height: 14px;
  margin-inline-start: 9px;
}
.inventory-float {
  top: 25px;
  inset-inline-end: 31px;
  transform: rotate(5deg);
}
.finance-float {
  bottom: 28px;
  inset-inline-start: 0;
  transform: rotate(4deg);
}
.finance-float > .icon:first-child {
  background: #99E0D824;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  padding: 6px;
}
.mini-dot {
  height: 5px;
  width: 5px;
  background: #99E0D8;
  border-radius: 50%;
  margin-inline-start: 14px;
}
.float-mini {
  position: absolute;
  inset-inline-end: 60px;
  bottom: 24px;
  background: #ffffff0a;
  border: 1px solid #ffffff11;
  border-radius: 12px;
  transform: rotate(-10deg);
  padding: 12px;
  color: #99E0D8;
}
.hero-cross {
  position: absolute;
  color: #99E0D88C;
  font-size: 19px;
  font-weight: 300;
}
.cross-one {
  inset-inline-start: 22px;
  top: 24px;
}
.cross-two {
  inset-inline-end: 20px;
  top: 129px;
  font-size: 13px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 27px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #5C6C7F;
  font-size: 10px;
  gap: 8px;
}
.icon-tile {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-tile .icon {
  width: 20px;
  height: 20px;
}
.icon-tile.small {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.icon-tile.small .icon {
  width: 16px;
  height: 16px;
}
.blue.icon-tile,
.blue.attention-icon {
  color: #6795cc;
  background: #eef4fc;
}
.green.icon-tile,
.green.attention-icon {
  color: #0F766E;
  background: #E8F5F2;
}
.orange.icon-tile,
.orange.attention-icon {
  color: #cb9a63;
  background: #fcf4e9;
}
.purple.icon-tile,
.purple.attention-icon {
  color: #9c87c1;
  background: #f4effb;
}
.red.attention-icon {
  color: #be786b;
  background: #fbedeb;
}
.stat-number {
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 27px;
  font-weight: 600;
  margin-top: 6px;
  white-space: nowrap;
  color: #142D4E;
  letter-spacing: -0.7px;
}
.stat-number small {
  font-size: 10px;
  font-weight: 400;
  color: #738499;
  margin-inline-start: 4px;
  letter-spacing: 0;
}
.stat-meta {
  font-size: 8px;
  color: #738499;
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tiny-dot {
  width: 4px;
  height: 4px;
  display: inline-block;
  border-radius: 50%;
  background: #86BFB8;
}
.tiny-dot.blue {
  background: #99b5da;
}
.tiny-dot.orange {
  background: #dcb388;
}
.tiny-dot.purple {
  background: #b4a4ce;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
  margin-top: 22px;
}
.section-label h2 {
  font-size: 14px;
}
.section-label > span {
  font-size: 9px;
  color: #728499;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}
.module-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  transition: 0.2s;
}
.module-card:hover {
  border-color: #8D9BAC;
  box-shadow: 0 6px 18px #4D5A6A10;
  transform: translateY(-2px);
}
.module-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-card-top > .icon {
  width: 14px;
  height: 14px;
  color: #A0ACBA;
}
.module-card h3 {
  font-size: 12px;
  margin-top: 14px;
}
.module-card p {
  font-size: 8px;
  color: #76879C;
  margin-top: 5px;
  line-height: 1.8;
  white-space: nowrap;
}
.module-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #0F766E;
  border-top: 1px solid #EBEFF3;
  padding-top: 12px;
  margin-top: 14px;
}
.module-card-link > .icon {
  width: 12px;
  height: 12px;
  transform: rotate(180deg);
}
.module-card.orange .module-card-link {
  color: #b69064;
}
.module-card.blue .module-card-link {
  color: #7498c8;
}
.module-card.purple .module-card-link {
  color: #9a85bc;
}
.dashboard-middle {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 19px;
  margin-bottom: 23px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 16px;
  gap: 10px;
}
.panel-header h2 {
  font-size: 13px;
}
.panel-header p {
  font-size: 9px;
  color: #79899E;
  margin-top: 3px;
}
.chart-legend {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 8px;
  color: #73859A;
}
.chart-legend i {
  background: #0F766E;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 23px;
  font-size: 23px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  line-height: 1.4;
}
.chart-summary small {
  color: #79899E;
  font-size: 9px;
  font-weight: 400;
}
.chart-summary > span {
  color: #8897A9;
  font-size: 8px;
  font-family: Tahoma, sans-serif;
  font-weight: 400;
}
.sales-chart {
  display: block;
  width: 100%;
  height: 175px;
  padding: 3px 18px 12px;
  direction: ltr;
}
.attention-list {
  padding: 0 21px 10px;
}
.attention-list > a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #EEF1F4;
  padding: 13px 0;
}
.attention-list > a:last-child {
  border-bottom: 0;
}
.attention-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  flex-shrink: 0;
}
.attention-icon > .icon {
  width: 16px;
  height: 16px;
}
.attention-list b {
  font-size: 9px;
  display: block;
  font-weight: 500;
}
.attention-list small {
  font-size: 7px;
  color: #7D8DA1;
  display: block;
  margin-top: 4px;
  max-width: 185px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.attention-list > a > .icon {
  margin-inline-start: auto;
  width: 12px;
  height: 12px;
  transform: rotate(180deg);
  color: #9EAAB9;
}
.text-link {
  font-size: 9px;
  color: #0F766E;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.text-link > .icon {
  width: 13px;
  height: 13px;
}
.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #D0D8E1 transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 10px;
  white-space: nowrap;
}
th {
  background: #F9FAFB;
  color: #6F8197;
  font-size: 9px;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid #EEF1F4;
  color: #505E6F;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #FBFCFD;
}
.first-col {
  color: #142D4E;
  font-weight: 500;
}
.table-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.table-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #EEF1F4;
  color: #67798E;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.actions-col {
  width: 90px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.row-actions .icon-button {
  width: 27px;
  height: 27px;
}
.row-actions .icon-button .icon {
  width: 14px;
  height: 14px;
}
.danger-text {
  color: #c58b80;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 8px;
  line-height: 1.6;
  color: #6A7D93;
  background: #EEF1F4;
  font-weight: 400;
}
.badge > i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.green {
  background: #E8F5F2;
  color: #0F766E;
}
.badge.orange {
  background: #fcf5e9;
  color: #c29b5e;
}
.badge.purple {
  background: #f5effb;
  color: #a088bd;
}
.badge.red {
  background: #fbefeb;
  color: #c18c7d;
}
.doc-type {
  font-size: 9px;
}
.demo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #EAF4F5;
  border: 1px dashed #C7DEDF;
  padding: 16px 20px;
  border-radius: 11px;
  margin-top: 22px;
}
.demo-banner b {
  font-size: 11px;
}
.demo-banner p {
  font-size: 9px;
  color: #64748B;
  margin-top: 2px;
}
.demo-banner > .btn {
  margin-inline-start: auto;
}
.page-footer {
  font-size: 8px;
  color: #8594A6;
  display: flex;
  justify-content: space-between;
  padding: 18px 36px 22px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.page-footer b {
  font-size: 7px;
  font-weight: 400;
}
.page-footer i:not(.live-dot) {
  font-style: normal;
  margin: 0 7px;
}
.page-footer .live-dot {
  width: 4px;
  height: 4px;
  margin-inline-end: 5px;
}
.module-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #EAF4F5;
  border: 1px solid #D4E6E7;
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 28px;
}
.module-intro .intro-icon {
  width: 70px;
  height: 70px;
  background: #fff8;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #0F766E;
}
.intro-icon > .icon {
  width: 34px;
  height: 34px;
}
.module-intro h2 {
  font-size: 20px;
}
.module-intro p {
  font-size: 11px;
  color: #5E7989;
  margin-top: 7px;
}
.module-intro > .pill {
  margin-inline-start: auto;
  white-space: nowrap;
}
.module-intro.blue {
  background: #eef3fb;
  border-color: #dde7f5;
}
.module-intro.orange {
  background: #fbf3e8;
  border-color: #f0e4d3;
}
.module-intro.purple {
  background: #f3eefb;
  border-color: #e5dcf4;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.feature-card {
  position: relative;
  display: block;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: 0.15s;
}
.feature-card:hover {
  border-color: #8291A4;
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 13px;
  margin-top: 17px;
}
.feature-card p {
  font-size: 9px;
  color: #7B8B9F;
  margin-top: 6px;
}
.feature-card > .icon {
  position: absolute;
  top: 26px;
  inset-inline-end: 23px;
  color: #94A2B2;
  width: 16px;
  height: 16px;
}
.table-tools {
  padding: 18px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.table-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #E1E6EC;
  background: #fff;
  border-radius: 7px;
  padding: 8px 11px;
  min-width: 230px;
}
.table-search > .icon {
  width: 15px;
  height: 15px;
  color: #6A7C92;
}
.table-search input {
  background: none;
  border: 0;
  font-size: 10px;
  outline: none;
  min-width: 0;
  width: 100%;
  padding: 0;
}
.table-search input::placeholder {
  color: #8F9DAE;
}
.table-controls {
  display: flex;
  align-items: center;
  gap: 13px;
}
.table-controls select {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #66778C;
  padding: 6px 10px;
  background: white;
}
.record-count {
  color: #798A9E;
  font-size: 9px;
  white-space: nowrap;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 25px;
  text-align: center;
  color: #79899E;
}
.empty > .icon {
  width: 39px;
  height: 39px;
  stroke-width: 1;
  color: #8F9DAE;
  background: #F3F5F7;
  padding: 10px;
  box-sizing: content-box;
  border-radius: 16px;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 13px;
  color: #5A697C;
  font-weight: 500;
}
.empty p {
  margin-top: 6px;
  font-size: 10px;
  max-width: 430px;
  line-height: 1.9;
}
.no-search-results {
  padding: 30px;
  text-align: center;
  color: #79899E;
  font-size: 11px;
}
.loading {
  padding: 90px;
  text-align: center;
  color: #66778C;
}
.inline-note {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 20px;
  border-radius: 9px;
  background: #EDF5F6;
  border: 1px solid #D6E7E8;
  color: #4F7180;
  font-size: 10px;
  margin-top: 20px;
  line-height: 1.9;
}
.inline-note > .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.inline-note .btn {
  margin-inline-start: auto;
}
.inline-note.compact {
  margin: 0 0 22px;
  font-size: 10px;
  align-items: flex-start;
  background: #F3F5F8;
  padding: 12px 15px;
  border-color: #E0E5EC;
}
.reports-intro {
  padding: 28px;
  display: flex;
  gap: 23px;
  align-items: center;
  background: #EBF2F8;
  border: 1px solid #D5E2EE;
  border-radius: 12px;
  margin-bottom: 30px;
}
.reports-intro > .icon {
  width: 42px;
  height: 42px;
  color: #0F766E;
  stroke-width: 1.2;
}
.reports-intro h2 {
  font-size: 20px;
}
.reports-intro p {
  font-size: 11px;
  color: #64748B;
  margin-top: 6px;
}
.reports-intro > .pill {
  margin-inline-start: auto;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}
.report-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.report-card:hover {
  border-color: #77889D;
}
.report-card h3 {
  font-size: 12px;
}
.report-card small {
  font-size: 9px;
  color: #8191A4;
  display: block;
  margin-top: 3px;
}
.report-card > .icon {
  margin-inline-start: auto;
  width: 15px;
  height: 15px;
  color: #8594A6;
}
.report-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 15px;
  padding: 22px;
}
.report-filter .field {
  flex: 1;
  min-width: 135px;
}
.report-filter .btn {
  height: 38px;
}
.report-note {
  font-size: 10px;
  padding: 0 22px 18px;
  color: #67798F;
  display: flex;
  gap: 8px;
  align-items: center;
}
.report-note > .icon {
  width: 15px;
  height: 15px;
}
.report-totals {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  padding: 19px 23px;
  background: #F0F5F9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #64748B;
  font-size: 10px;
}
.report-totals > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-totals b {
  font-weight: 600;
  font-size: 16px;
  color: #142D4E;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.report-totals small {
  font-weight: 400;
  font-size: 9px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #0D203A88;
  backdrop-filter: blur(4px);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.modal {
  background: #fff;
  border: 1px solid #DEE3EA;
  border-radius: 17px;
  width: 660px;
  max-width: 100%;
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  box-shadow: 0 25px 90px #142D4E30;
  outline: none;
}
.modal.wide {
  width: 1000px;
}
.modal-header {
  padding: 23px 27px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}
.modal-header h2 {
  font-size: 19px;
}
.modal-header .eyebrow {
  font-size: 9px;
  color: #7F8FA2;
}
.modal-body {
  padding: 25px 27px;
}
.modal-footer {
  padding: 18px 27px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
}
.has-modal {
  overflow: hidden;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid.one {
  grid-template-columns: 1fr;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  font-size: 10px;
  color: #4F5D6E;
  line-height: 1.8;
}
.field b {
  color: #c09e7c;
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #D9DFE7;
  border-radius: 7px;
  background: #fff;
  color: #142D4E;
  min-height: 40px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #94A2B2;
  font-size: 10px;
}
.field input[type="number"],
.field input[type="date"],
.field input[type="time"],
.field input[type="month"] {
  direction: ltr;
  text-align: match-parent;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.field input[type="password"] {
  direction: ltr;
  text-align: left;
}
.field select {
  font-size: 10px;
}
.field textarea {
  resize: vertical;
  min-height: 75px;
}
.field.full {
  grid-column: 1/-1;
}
.form-error {
  color: #b96053;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 15px;
}
.form-error:empty {
  margin: 0;
}
.form-error:not(:empty) {
  background: #fff4f1;
  border: 1px solid #f2dcd4;
  border-radius: 7px;
  padding: 10px 13px;
}
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0F766E;
  background: #EAF4F5;
  padding: 7px 12px;
  border-radius: 6px;
  margin-bottom: 17px;
  font-size: 11px;
}
.source-chip > .icon {
  width: 16px;
  height: 16px;
}
.line-add {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F6F7F9;
  border: 1px solid #E3E7ED;
  padding: 14px;
  border-radius: 8px;
  margin: 22px 0 15px;
}
.line-add select,
.line-add input {
  border: 1px solid #D9DFE7;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 10px;
  color: #566476;
  background: #fff;
  min-width: 0;
  min-height: 36px;
}
.line-add select {
  flex: 1;
}
.line-add input {
  width: 180px;
}
.line-add .btn {
  padding: 8px 13px;
}
.line-table th {
  padding: 10px 12px;
}
.line-table td {
  padding: 12px;
}
.line-table strong {
  font-size: 10px;
  font-weight: 500;
}
.line-table small {
  font-size: 8px;
  margin-top: 3px;
}
.line-input {
  width: 90px;
  min-width: 70px;
  border: 1px solid #D9DFE7;
  padding: 7px 8px;
  font-size: 11px;
  border-radius: 5px;
  direction: ltr;
  text-align: center;
  color: #4D5A6A;
}
.document-bottom {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 35px;
  align-items: start;
  margin-top: 25px;
}
.invoice-summary {
  border: 1px solid #DAE0E8;
  border-radius: 9px;
  background: #F8F9FA;
  padding: 17px 19px;
}
.invoice-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 10px;
  color: #65778C;
}
.invoice-summary > div:last-child {
  margin-bottom: 0;
}
.invoice-summary b {
  color: #4D5A6A;
  font-weight: 500;
  white-space: nowrap;
}
.invoice-summary small {
  font-size: 8px;
  color: #79899E;
}
.invoice-summary .grand-total {
  padding-top: 15px;
  border-top: 1px dashed #CED6DF;
  margin-top: 16px;
  font-size: 13px;
  color: #142D4E;
}
.grand-total b {
  font-size: 17px;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
}
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 25px;
}
.invoice-header h2 {
  font-size: 20px;
}
.invoice-header p {
  font-size: 10px;
  color: #687A8F;
  margin-top: 4px;
}
.invoice-header > div:last-child {
  text-align: end;
}
.invoice-header .badge {
  margin-top: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 0 25px;
}
.detail-grid small {
  display: block;
  color: #73859A;
  font-size: 10px;
  margin-bottom: 6px;
}
.detail-grid b {
  font-size: 12px;
  color: #142D4E;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.detail-summary {
  margin-block: 26px 22px;
  margin-inline: 0 auto;
  width: 300px;
}
.print-signatures {
  display: none;
}
.journal-line {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr 30px;
  gap: 10px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 10px;
}
.journal-line .field > span {
  font-size: 8px;
}
.journal-line .field input,
.journal-line .field select {
  min-height: 36px;
  font-size: 10px;
  padding: 7px;
}
.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 22px;
}
.profile-info p {
  font-size: 10px;
  color: #75869B;
}
.profile-info .avatar {
  width: 48px;
  height: 48px;
}
.profile-info h3 {
  font-size: 15px;
}
.profile-info + form > .btn {
  margin-top: 20px;
}
.notification-list > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: #0F766E;
  font-size: 11px;
}
.notification-list > a > .icon {
  width: 19px;
  height: 19px;
}
.notification-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-end: 18px;
}
.notification-item {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px;
  margin-block-end: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  text-align: start;
  color: var(--ink);
}
.notification-item.is-unread {
  border-color: #b9dcd6;
  background: #edf7f5;
}
.notification-item.is-read {
  color: #627287;
}
.notification-item:hover {
  border-color: var(--teal);
}
.notification-item > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.notification-item strong,
.notification-item small {
  display: block;
  overflow-wrap: anywhere;
}
.notification-item small {
  margin-block-start: 5px;
  font-size: 11px;
  line-height: 1.8;
}
.unread-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal);
}
.confirm-message {
  font-size: 13px;
  line-height: 2.2;
  color: #526071;
}
.settings-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 23px;
}
.settings-panel form {
  padding: 5px 24px 25px;
}
.settings-panel form > .btn {
  margin-top: 24px;
}
.settings-links {
  padding: 22px;
  margin-bottom: 22px;
}
.settings-links h3 {
  margin-bottom: 14px;
  font-size: 13px;
}
.settings-links > a,
.settings-links > button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: #5E6E82;
  line-height: 1.7;
  background: none;
  width: 100%;
  text-align: start;
}
.settings-links > *:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.settings-links .icon {
  width: 17px;
  height: 17px;
}
.settings-links .icon:last-child {
  margin-inline-start: auto;
  width: 13px;
  height: 13px;
  color: #8F9DAE;
}
.backup-card {
  padding: 24px;
}
.backup-card h3 {
  margin-top: 16px;
  font-size: 14px;
}
.backup-card p {
  font-size: 11px;
  line-height: 2;
  color: #74869B;
  margin: 9px 0 21px;
}
.backup-card small {
  display: block;
  margin-top: 12px;
  font-size: 8px;
  color: #8796A8;
}
.pos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.pos-product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  text-align: start;
  position: relative;
  transition: 0.18s;
}
.pos-product:hover {
  transform: translateY(-3px);
  border-color: #7D8DA1;
  box-shadow: 0 6px 20px #4D5A6A0A;
}
.product-illustration {
  background: linear-gradient(130deg, #E9EDF1, #F6F7F9);
  height: 120px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  color: #73859A;
}
.product-illustration .icon {
  width: 51px;
  height: 51px;
  stroke-width: 1;
}
.pos-product small {
  color: #7E8EA1;
  font-size: 9px;
}
.pos-product h3 {
  font-size: 12px;
  margin: 5px 0 10px;
}
.pos-product b {
  font-size: 18px;
  color: #0F766E;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.pos-product b small {
  font-size: 9px;
}
.round-plus {
  position: absolute;
  bottom: 20px;
  inset-inline-end: 20px;
  width: 28px;
  height: 28px;
  background: #EDF0F4;
  color: #0F766E;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.round-plus .icon {
  width: 16px;
  height: 16px;
}
.barcode-label {
  text-align: center;
}
.barcode-svg {
  max-width: 100%;
  height: 130px;
  color: #000;
  fill: #000;
  background: white;
  margin: 15px auto 5px;
  display: block;
}
.barcode-svg text {
  direction: ltr;
}
.barcode-label h3 {
  font-size: 16px;
}
.barcode-label p {
  font-size: 20px;
  color: #0F766E;
}
.barcode-label small {
  color: #7E8EA2;
  font-size: 9px;
}
.mobile-shade {
  display: none;
}
#toasts {
  position: fixed;
  inset-inline-end: 27px;
  bottom: 25px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 450px;
  background: #0F766E;
  border: 1px solid #419C94;
  box-shadow: 0 5px 25px #142D4E22;
  border-radius: 10px;
  color: #F4FAFA;
  padding: 14px 20px;
  animation: toast-in 0.2s ease-out;
  font-size: 12px;
}
.toast .icon {
  width: 18px;
  height: 18px;
  color: #BFF2E9;
}
.toast.error {
  background: #8c4a3e;
  border-color: #ab6959;
}
.toast.error .icon {
  color: #f3d5ca;
}
@keyframes toast-in {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
#print-area {
  display: none;
}
.auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100dvh;
}
.auth-story {
  min-width: 0;
  background: #142D4E;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 45px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 720px;
}
.auth-story:after {
  content: "";
  position: absolute;
  inset-inline-end: -230px;
  top: 170px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid #99E0D80F;
  box-shadow:
    0 0 0 70px #99E0D806,
    0 0 0 140px #99E0D804;
  pointer-events: none;
}
.auth-story .brand {
  position: relative;
  z-index: 1;
}
.auth-story > div {
  position: relative;
  z-index: 1;
}
.auth-story h1 {
  font-size: 45px;
  font-weight: 600;
  line-height: 1.7;
  margin-top: 20px;
}
.auth-story h1 em {
  font-style: normal;
  color: #99E0D8;
}
.auth-story p {
  color: #BECCDC;
  font-size: 13px;
  line-height: 2.2;
  margin-top: 20px;
}
.auth-story > small {
  font-size: 9px;
  color: #AEBED1;
}
.auth-orbit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  position: relative;
  padding-inline-start: 0;
  margin-top: 40px;
  max-width: 310px;
}
.auth-orbit .orbit-center {
  display: none;
}
.auth-orbit > span {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff05;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 10px;
  color: #DBE7F3;
}
.auth-orbit > span .icon {
  width: 18px;
  height: 18px;
  color: #99E0D8;
}
.auth-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 40px;
  background: #F5F7FA;
}
.auth-card {
  width: 360px;
  max-width: 100%;
}
.auth-card .eyebrow {
  font-size: 10px;
  color: #0F766E;
}
.auth-card h2 {
  font-size: 27px;
  margin-top: 9px;
  color: #142D4E;
}
.auth-card > p {
  font-size: 11px;
  color: #64748B;
  line-height: 1.9;
  margin: 10px 0 28px;
}
.auth-card .form-grid {
  gap: 17px;
}
.auth-card .field input {
  height: 44px;
  background: white;
  border-color: #D6DCE4;
}
.auth-card .field > span {
  font-size: 11px;
}
.auth-card form > .btn {
  margin-top: 24px;
  padding: 14px;
  font-size: 12px;
}
.auth-security {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #64748B;
  text-align: center;
  margin-top: 22px;
  line-height: 2;
}
.auth-security .icon {
  width: 14px;
  height: 14px;
}
.auth-bottom {
  position: absolute;
  bottom: 24px;
  font-size: 9px;
  color: #64748B;
}
.auth-panel .btn.primary {
  background: #0F766E;
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 36px;
  }
  .welcome-banner {
    height: 270px;
    padding-inline-start: 45px;
  }
  .hero-art {
    margin-inline-end: 65px;
  }
  .welcome-banner h2 {
    font-size: 34px;
  }
  .welcome-banner p {
    font-size: 12px;
  }
  .hero-link {
    font-size: 11px;
  }
  .stat-card {
    padding: 21px;
  }
  .stat-number {
    font-size: 31px;
  }
  .module-card {
    padding: 23px;
  }
  .module-card h3 {
    font-size: 14px;
  }
  .module-card p {
    font-size: 10px;
  }
  .module-card-link {
    font-size: 10px;
  }
  .sales-chart {
    height: 205px;
  }
  .attention-list b {
    font-size: 11px;
  }
  .attention-list small {
    font-size: 9px;
    max-width: 240px;
  }
  .attention-list > a {
    padding: 16px 0;
  }
  .panel-header h2 {
    font-size: 15px;
  }
  table {
    font-size: 12px;
  }
  th {
    font-size: 10px;
  }
  .badge {
    font-size: 9px;
  }
  .nav-item {
    font-size: 12px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 222px;
    padding-inline-start: 14px;
    padding-inline-end: 14px;
  }
  .main-wrap {
    margin-inline-start: 222px;
  }
  .main-content {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .topbar-tools {
    gap: 12px;
  }
  .company-label {
    display: none;
  }
  .topbar-divider {
    display: none;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .date-chip {
    font-size: 8px;
    padding: 9px;
  }
  .welcome-banner {
    padding: 25px;
    height: 230px;
  }
  .welcome-banner h2 {
    font-size: 26px;
  }
  .hero-art {
    width: 330px;
    margin-inline-end: 0;
    transform: scale(0.9);
    transform-origin: left center;
  }
  .hero-core {
    inset-inline-end: 119px;
  }
  .inventory-float {
    inset-inline-end: 0;
  }
  .finance-float {
    inset-inline-start: -20px;
  }
  .hero-rings {
    inset-inline-end: 0;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-number {
    font-size: 23px;
  }
  .stat-top {
    font-size: 9px;
  }
  .icon-tile {
    width: 32px;
    height: 32px;
  }
  .module-card {
    padding: 15px;
  }
  .module-card p {
    font-size: 7px;
  }
  .module-card h3 {
    font-size: 11px;
  }
  .module-grid,
  .stats-grid {
    gap: 11px;
  }
  .dashboard-middle {
    gap: 15px;
    grid-template-columns: 1.4fr 1fr;
  }
  .attention-list {
    padding: 0 15px 10px;
  }
  .attention-list small {
    max-width: 145px;
  }
  .attention-list b {
    font-size: 8px;
  }
  .panel-header {
    padding: 17px;
  }
  .panel-header p {
    font-size: 8px;
  }
  .chart-summary {
    padding: 0 17px;
  }
  .sales-chart {
    height: 175px;
    padding: 3px 9px 12px;
  }
  .module-intro {
    padding: 22px;
    gap: 15px;
  }
  .module-intro > .pill {
    display: none;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-layout {
    grid-template-columns: 1.6fr 1fr;
  }
  .pos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .auth-story {
    padding: 45px;
  }
  .auth-story h1 {
    font-size: 38px;
  }
  .journal-line {
    grid-template-columns: 1.8fr 1fr 1fr 1.5fr 1.5fr 28px;
    gap: 7px;
  }
}
@media (max-width: 1000px) {
  .heading-actions .date-chip {
    display: none;
  }
  .welcome-banner h2 {
    font-size: 24px;
  }
  .welcome-banner p {
    font-size: 9px;
  }
  .hero-art {
    width: 280px;
    transform: scale(0.8);
    margin-inline-end: -20px;
  }
  .hero-core {
    inset-inline-end: 105px;
  }
  .finance-float {
    inset-inline-start: -45px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module-card p {
    font-size: 9px;
  }
  .module-card h3 {
    font-size: 13px;
  }
  .module-card-top > .icon {
    width: 16px;
  }
  .dashboard-middle {
    grid-template-columns: 1fr;
  }
  .attention-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .attention-list > a:nth-child(2) {
    border-bottom: 0;
  }
  .attention-list small {
    max-width: 180px;
  }
  .attention-list b {
    font-size: 9px;
  }
  .attention {
    padding-bottom: 7px;
  }
  .sales-chart {
    height: 195px;
  }
  .demo-banner {
    flex-wrap: wrap;
  }
  .demo-banner > div {
    flex: 1;
  }
  .demo-banner > .btn {
    margin-inline-start: 50px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .settings-links {
    margin-bottom: 0;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .document-bottom {
    grid-template-columns: 1fr 250px;
    gap: 20px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 31px;
  }
  .auth-story p {
    font-size: 11px;
  }
  .auth-panel {
    padding: 40px 30px;
  }
  .auth-orbit > span {
    padding: 12px;
  }
  .journal-line {
    grid-template-columns: 1.8fr 1fr 1fr 30px;
  }
  .journal-line .field:nth-child(4) {
    grid-column: 1/3;
  }
  .journal-line .field:nth-child(5) {
    grid-column: 3/4;
  }
  .journal-line .icon-button {
    grid-column: 4;
    grid-row: 1;
  }
  .modal {
    width: 640px;
  }
}
@media (max-width: 780px) {
  .sidebar {
    transform: translateX(100%);
    transition: transform 0.22s;
    width: 248px;
  }
  .main-wrap {
    margin-inline-start: 0;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .mobile-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #142D4E66;
    z-index: 19;
    backdrop-filter: blur(2px);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 65px;
    gap: 10px;
    padding: 0 18px;
  }
  .breadcrumbs {
    margin-inline-end: auto;
    font-size: 9px;
  }
  .breadcrumbs > strong {
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .topbar-tools {
    gap: 8px;
  }
  .search-wrap input {
    width: 130px;
    font-size: 9px;
  }
  .search-wrap kbd {
    display: none;
  }
  .main-content {
    padding: 24px 20px;
  }
  .page-footer {
    padding: 18px 20px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .welcome-banner {
    height: 237px;
    padding: 25px 30px;
  }
  .hero-art {
    transform: scale(0.85);
    margin-inline-end: 0;
    width: 300px;
  }
  .hero-core {
    inset-inline-end: 110px;
  }
  .finance-float {
    inset-inline-start: -45px;
  }
  .welcome-banner h2 {
    font-size: 27px;
  }
  .welcome-banner p {
    font-size: 10px;
  }
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-story {
    min-height: unset;
    padding: 24px 32px 27px;
  }
  .auth-story .brand > span:last-child {
    font-size: 26px;
  }
  .auth-story .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .auth-story > div {
    margin-top: 26px;
  }
  .auth-story h1 {
    font-size: 30px;
    line-height: 1.55;
    margin-top: 10px;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story p,
  .auth-orbit,
  .auth-story > small {
    display: none;
  }
  .auth-panel {
    padding: 35px 25px 70px;
  }
  .auth-card {
    width: 400px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .auth-card > p {
    margin-bottom: 23px;
  }
  .auth-security {
    margin-top: 18px;
  }
  .feature-card {
    padding: 20px;
  }
  .module-intro h2 {
    font-size: 18px;
  }
  .pos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal {
    max-height: calc(100dvh - 30px);
  }
  .modal-header {
    padding: 18px 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 16px 20px;
  }
  .document-bottom {
    gap: 20px;
    grid-template-columns: 1fr 240px;
  }
  .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .line-add input {
    width: 155px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 12px;
  }
  .topbar {
    padding: 0 13px;
  }
  .breadcrumbs {
    gap: 6px;
  }
  .breadcrumbs > strong {
    max-width: 130px;
  }
  .search-wrap {
    display: none;
  }
  .main-content {
    padding: 22px 15px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading p {
    font-size: 9px;
    line-height: 1.9;
    max-width: 250px;
  }
  .heading-actions {
    gap: 6px;
    justify-content: flex-end;
    max-width: 145px;
  }
  .heading-actions .btn {
    padding: 9px 10px;
    font-size: 9px;
    gap: 5px;
  }
  .heading-actions .btn .icon {
    width: 13px;
    height: 13px;
  }
  .welcome-banner {
    height: 230px;
    padding: 24px 23px;
  }
  .welcome-banner h2 {
    font-size: 25px;
    line-height: 1.7;
  }
  .welcome-banner h2 br {
    display: block;
  }
  .welcome-banner p {
    font-size: 9px;
    max-width: 205px;
  }
  .welcome-banner .pill {
    font-size: 7px;
    padding: 4px 7px;
  }
  .hero-link {
    font-size: 8px;
    margin-top: 11px;
  }
  .hero-art {
    position: absolute;
    inset-inline-end: -75px;
    top: 17px;
    transform: scale(0.62);
    width: 300px;
    opacity: 0.8;
  }
  .hero-core {
    inset-inline-end: 125px;
  }
  .inventory-float {
    top: 35px;
    inset-inline-end: 18px;
    opacity: 0.7;
  }
  .finance-float {
    bottom: 20px;
    inset-inline-start: -45px;
  }
  .hero-rings {
    box-shadow: 0 0 0 40px #ffffff02;
  }
  .float-mini {
    inset-inline-end: 60px;
    bottom: -2px;
  }
  .banner-tag {
    display: none;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 22px;
  }
  .stat-card {
    padding: 14px 13px;
  }
  .stat-top {
    font-size: 9px;
  }
  .stat-number {
    font-size: 24px;
    margin-top: 7px;
  }
  .stat-number small {
    font-size: 8px;
  }
  .stat-meta {
    font-size: 7px;
  }
  .icon-tile {
    width: 29px;
    height: 29px;
    border-radius: 8px;
  }
  .icon-tile > .icon {
    width: 16px;
    height: 16px;
  }
  .module-grid {
    gap: 11px;
  }
  .module-card {
    padding: 15px 13px;
  }
  .module-card h3 {
    font-size: 11px;
    margin-top: 12px;
  }
  .module-card p {
    font-size: 7px;
    white-space: normal;
    min-height: 26px;
  }
  .module-card-link {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 7px;
  }
  .section-label h2 {
    font-size: 12px;
  }
  .section-label > span {
    font-size: 8px;
  }
  .dashboard-middle {
    gap: 18px;
  }
  .panel-header h2 {
    font-size: 12px;
  }
  .sales-chart {
    height: 170px;
    padding: 3px 0 12px;
  }
  .chart-summary {
    font-size: 22px;
  }
  .attention-list {
    display: block;
    padding: 0 18px 9px;
  }
  .attention-list > a:nth-child(2) {
    border-bottom: 1px solid #EEF1F4;
  }
  .attention-list > a:last-child {
    border-bottom: 0;
  }
  .attention-list small {
    max-width: 240px;
    font-size: 8px;
  }
  .attention-list b {
    font-size: 10px;
  }
  .attention-list > a {
    padding: 15px 0;
  }
  .attention-icon {
    width: 34px;
    height: 34px;
  }
  .panel {
    border-radius: 11px;
  }
  .text-link {
    font-size: 8px;
  }
  th {
    font-size: 8px;
    padding: 11px 14px;
  }
  td {
    font-size: 9px;
    padding: 13px 14px;
  }
  .badge {
    font-size: 7px;
  }
  .demo-banner {
    padding: 16px 14px;
    gap: 11px;
  }
  .demo-banner b {
    font-size: 10px;
  }
  .demo-banner p {
    font-size: 8px;
  }
  .demo-banner > .btn {
    margin-inline-start: 40px;
    font-size: 9px;
  }
  .page-footer {
    padding: 16px 16px 22px;
    font-size: 6px;
    gap: 5px;
  }
  .page-footer b {
    font-size: 6px;
  }
  .feature-grid {
    gap: 11px;
  }
  .feature-card {
    padding: 17px 14px;
  }
  .feature-card h3 {
    font-size: 11px;
    line-height: 1.9;
  }
  .feature-card p {
    font-size: 8px;
    line-height: 1.8;
  }
  .feature-card > .icon {
    inset-inline-end: 13px;
    top: 20px;
    width: 13px;
    height: 13px;
  }
  .module-intro {
    padding: 20px 17px;
    gap: 14px;
  }
  .module-intro .intro-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }
  .intro-icon > .icon {
    width: 25px;
    height: 25px;
  }
  .module-intro h2 {
    font-size: 15px;
  }
  .module-intro p {
    font-size: 9px;
  }
  .table-tools {
    padding: 15px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .table-search {
    min-width: 0;
    width: 100%;
  }
  .table-controls {
    justify-content: space-between;
    width: 100%;
  }
  .record-count {
    font-size: 8px;
  }
  .table-controls select {
    font-size: 9px;
  }
  .report-filter {
    gap: 13px;
    padding: 18px 15px;
  }
  .report-filter .field {
    min-width: calc(50% - 10px);
  }
  .report-filter > .btn {
    width: 100%;
    font-size: 10px;
  }
  .report-note {
    font-size: 8px;
    padding: 0 15px 16px;
    align-items: flex-start;
  }
  .report-totals {
    padding: 15px;
    gap: 15px;
  }
  .report-totals > span {
    font-size: 8px;
    gap: 6px;
  }
  .report-totals b {
    font-size: 13px;
  }
  .reports-intro {
    padding: 21px 17px;
    gap: 15px;
  }
  .reports-intro > .icon {
    width: 33px;
    height: 33px;
  }
  .reports-intro h2 {
    font-size: 16px;
  }
  .reports-intro p {
    font-size: 9px;
  }
  .reports-intro > .pill {
    display: none;
  }
  .report-card {
    padding: 18px 15px;
    gap: 13px;
  }
  .report-card h3 {
    font-size: 11px;
  }
  .report-card small {
    font-size: 8px;
  }
  .settings-layout > aside {
    grid-template-columns: 1fr;
  }
  .settings-panel form {
    padding: 5px 17px 20px;
  }
  .form-grid {
    gap: 16px;
  }
  .field > span {
    font-size: 9px;
  }
  .field input,
  .field select {
    font-size: 11px;
    padding: 9px;
    min-height: 41px;
  }
  .field input::placeholder {
    font-size: 9px;
  }
  .modal-backdrop {
    padding: 8px;
  }
  .modal {
    border-radius: 12px;
    max-height: calc(100dvh - 16px);
  }
  .modal-header {
    padding: 17px;
  }
  .modal-header h2 {
    font-size: 16px;
  }
  .modal-header .eyebrow {
    font-size: 8px;
  }
  .modal-body {
    padding: 18px 15px;
  }
  .modal-footer {
    padding: 14px 15px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    font-size: 10px;
    padding: 9px 12px;
  }
  .modal .form-grid {
    grid-template-columns: 1fr;
  }
  .modal .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inline-note {
    padding: 14px;
    font-size: 9px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .inline-note.compact {
    font-size: 9px;
  }
  .line-add {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 17px;
  }
  .line-add select {
    width: 100%;
    flex: auto;
  }
  .line-add input {
    flex: 1;
    width: auto;
  }
  .line-add .btn {
    font-size: 10px;
  }
  .document-bottom {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .document-bottom .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .line-input {
    width: 70px;
    min-width: 60px;
  }
  .line-table td,
  .line-table th {
    padding: 10px 8px;
  }
  .line-table td:first-child {
    min-width: 130px;
  }
  .invoice-summary {
    padding: 16px;
  }
  .detail-grid {
    gap: 18px;
  }
  .detail-grid b {
    font-size: 10px;
  }
  .detail-grid small {
    font-size: 8px;
  }
  .detail-summary {
    width: 100%;
    max-width: 300px;
  }
  .invoice-header {
    gap: 12px;
  }
  .invoice-header h2 {
    font-size: 15px;
  }
  .invoice-header p {
    font-size: 8px;
  }
  .invoice-header .eyebrow {
    font-size: 8px;
  }
  .journal-line {
    grid-template-columns: 1fr 1fr 28px;
    gap: 10px;
  }
  .journal-line .field:nth-child(1) {
    grid-column: 1/3;
  }
  .journal-line .field:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .journal-line .field:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .journal-line .field:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }
  .journal-line .field:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }
  .journal-line .icon-button {
    grid-column: 3;
    grid-row: 1;
  }
  .pos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .pos-product {
    padding: 15px;
  }
  .product-illustration {
    height: 95px;
  }
  .product-illustration .icon {
    width: 40px;
    height: 40px;
  }
  .pos-product h3 {
    font-size: 10px;
  }
  .pos-product b {
    font-size: 17px;
  }
  .pos-product .round-plus {
    inset-inline-end: 14px;
    bottom: 15px;
    width: 25px;
    height: 25px;
  }
  .auth-story {
    padding: 23px 25px;
  }
  .auth-story h1 {
    font-size: 25px;
    margin-top: 10px;
  }
  .auth-story > div {
    margin-top: 20px;
  }
  .auth-story .pill {
    font-size: 8px;
  }
  .auth-panel {
    padding: 28px 25px 66px;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .auth-card > p {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .auth-card .form-grid {
    gap: 14px;
  }
  .auth-card .field input {
    height: 43px;
  }
  .auth-card .field > span {
    font-size: 10px;
  }
  .auth-security {
    font-size: 8px;
  }
  .toast {
    padding: 13px 16px;
    font-size: 11px;
    max-width: calc(100vw - 30px);
  }
  #toasts {
    bottom: 17px;
    inset-inline-end: 15px;
    inset-inline-start: 15px;
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 15mm;
  }
  body {
    background: #fff !important;
    color: #111 !important;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
  }
  #app,
  #modal-root,
  #toasts {
    display: none !important;
  }
  #print-area {
    display: block !important;
    direction: inherit;
  }
  .print-report-header {
    border-bottom: 2px solid #142D4E;
    margin-bottom: 25px;
    padding-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .print-report-header h1 {
    font-size: 19px;
  }
  .print-report-header h2 {
    font-size: 15px;
  }
  .print-report-header p {
    font-size: 10px;
  }
  .printable {
    display: block;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    white-space: normal;
    font-size: 10px;
    width: 100%;
  }
  th,
  td {
    padding: 9px 7px;
    border-bottom: 1px solid #ddd;
    color: #222;
    font-size: 9px;
  }
  th {
    background: #F1F5F9 !important;
    print-color-adjust: exact;
  }
  thead {
    display: table-header-group;
  }
  tr {
    break-inside: avoid;
  }
  .row-actions {
    display: none;
  }
  .print-signatures {
    display: block;
    margin-top: 50px;
    font-size: 12px;
  }
  .badge {
    border: 1px solid #ddd;
    color: #333 !important;
    background: #fff !important;
  }
  .invoice-header h2 {
    font-size: 20px;
  }
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .invoice-summary {
    width: 310px;
    break-inside: avoid;
  }
  .report-totals {
    border: 1px solid #ddd;
    background: #fff;
    print-color-adjust: exact;
  }
  .barcode-label {
    max-width: 350px;
    margin: auto;
  }
  .barcode-svg {
    height: 130px;
  }
  .muted {
    color: #777;
  }
  .hidden {
    display: none !important;
  }
}
.btn.icon-button {
  padding: 7px;
  min-height: 32px;
  border: 0;
}
.btn.menu-toggle {
  display: none;
}
.qr-image {
  width: 230px;
  height: 230px;
  display: block;
  margin: 15px auto;
}
#file-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 18px;
}
#file-form > .btn {
  margin-top: 15px;
}
.welcome-banner h2 em {
  margin-inline-start: 0.25em;
}
.table-scroll table small {
  font-size: 8px;
}
@media (max-width: 780px) {
  .btn.menu-toggle {
    display: inline-flex;
  }
}

/* Direction follows the chosen interface language; business values keep their own text. */
html[dir="ltr"] .nav-chev,
html[dir="ltr"] .user-card > .icon,
html[dir="ltr"] .breadcrumbs .icon,
html[dir="ltr"] .module-card-link > .icon,
html[dir="ltr"] .attention-list > a > .icon {
  transform: none;
}
html[dir="ltr"] .hero-link > .icon,
html[dir="ltr"] .module-card-top > .icon,
html[dir="ltr"] .feature-card > .icon,
html[dir="ltr"] .report-card > .icon,
html[dir="ltr"] #auth-form > button > .icon {
  transform: rotate(180deg);
}
.notification-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.currency-panel {
  margin-block-end: 24px;
}
.currency-panel .form-grid {
  max-width: 480px;
}
#currency-help {
  display: block;
  margin-block-start: 8px;
  color: #627287;
  font-size: 11px;
  line-height: 1.8;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #DDE2E9;
  border-radius: 7px;
  background: #fff;
  color: var(--teal);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.language-toggle:hover {
  background: #EEF1F4;
  border-color: #90B8BC;
}
.auth-language {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 25px;
  z-index: 2;
}
html[dir="ltr"] .hero-art {
  transform-origin: right center;
}
html[lang="en"] .welcome-banner h2 br {
  display: initial;
}
html[lang="en"] .auth-story h1 em {
  margin-inline-start: 0.2em;
}
@media (max-width: 780px) {
  html[dir="ltr"] .sidebar {
    transform: translateX(-100%);
  }
  html[dir="ltr"] .menu-open .sidebar {
    transform: translateX(0);
  }
  .breadcrumbs {
    min-width: 0;
  }
  .topbar-tools {
    flex-shrink: 0;
  }
  .auth-panel {
    padding-block-start: 74px;
  }
  .auth-language {
    inset-block-start: 20px;
  }
}
@media (max-width: 560px) {
  .language-toggle {
    padding-inline: 8px;
    font-size: 10px;
  }
  .breadcrumbs > strong {
    max-width: 105px;
  }
  .page-heading,
  .module-intro > div,
  .module-card,
  .feature-card,
  .report-card > span {
    min-width: 0;
  }
  html[lang="en"] .welcome-banner h2 {
    font-size: 23px;
  }
  html[lang="en"] .welcome-banner p {
    max-width: 200px;
  }
}
.nav-module-row { display:flex; align-items:center; gap:2px; }
.nav-module-row > .nav-item { flex:1; min-width:0; }
.module-toggle { flex:0 0 32px; width:32px; height:36px; display:grid; place-items:center; border:0; border-radius:8px; color:inherit; background:transparent; cursor:pointer; }
.module-toggle:hover,.module-toggle:focus-visible { background:rgba(15,118,110,.12); outline:2px solid #0F766E; }
.module-toggle .nav-chev { width:16px; height:16px; transition:transform .15s; }
.module-toggle[aria-expanded="true"] .nav-chev { transform:rotate(90deg); }
.appointments-alert { padding:16px; background:#e8f5f2; color:#142D4E; border:1px solid #b7d9d3; border-radius:14px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.appointments-alert > span { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
.appointments-alert svg { width:22px; height:22px; }
.appointment-filters { padding:20px; display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:12px; align-items:end; border-bottom:1px solid #e5eaf0; }
.appointment-bulkbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:14px 20px; background:#F5F7FA; }
.appointment-table { min-width:1000px; }
.appointment-table td { vertical-align:top; }
.appointment-table input[type="checkbox"] { width:18px; height:18px; accent-color:#0F766E; cursor:pointer; }
.appointment-row-action { min-width:155px; max-width:220px; padding:8px; border:1px solid #d9e2eb; border-radius:8px; background:white; color:#142D4E; font:inherit; }
.appointment-context { background:#e8f5f2; color:#142D4E; border-radius:10px; padding:14px; margin-bottom:16px; line-height:1.7; }
@media(max-width:600px) { .appointment-filters { grid-template-columns:1fr 1fr; padding:12px; } .appointment-bulkbar { padding:12px; } .appointment-filters .field { min-width:0; } }
.purchase-images { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin:14px 0; }
.purchase-images article { border:1px solid #dbe3ec; padding:12px; border-radius:12px; min-width:0; }
.purchase-images img { width:100%; height:200px; object-fit:contain; background:#F5F7FA; border-radius:8px; }
.purchase-images strong { display:block; overflow-wrap:anywhere; margin:8px 0; }
.purchase-evidence { border-top:1px solid #dbe3ec; }
.purchase-evidence form { display:grid; gap:12px; }
.field > span > svg { width:18px; height:18px; vertical-align:middle; }
.supplier-controls { padding:20px; display:grid; grid-template-columns:2fr 1fr 1fr 1fr auto; gap:12px; align-items:end; }
@media(max-width:700px) { .supplier-controls { grid-template-columns:1fr 1fr; padding:14px; } .purchase-images { grid-template-columns:1fr; } }

/* Keep the purchase asset option compact beside the due date. */
.purchase-due-field {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}
.purchase-due-field > .field {
  flex: 1;
}
.purchase-asset-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #D9DFE7;
  border-radius: 7px;
  background: #fff;
  color: #142D4E;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.purchase-asset-option input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #0F766E;
  cursor: pointer;
}
.purchase-asset-option:focus-within {
  outline: 2px solid #0F766E;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .purchase-due-with-asset {
    grid-column: 1 / -1;
  }
}

/* Match every data column to its heading in both interface directions. */
table th, table td {
  text-align: center;
  vertical-align: middle;
}
table .table-name, table .row-actions {
  justify-content: center;
}
table td input:not([type="checkbox"]), table td select {
  text-align: center;
}
.company-logo {
  display: block;
  width: 160px;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
}
.logo-settings {
  margin-block: 24px;
  padding-block: 18px;
  border-block: 1px solid #D9DFE7;
}
.logo-settings .company-logo {
  margin-block: 12px;
}
.compact-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 10px;
  font-size: 12px;
  cursor: pointer;
}
.compact-check input, .permission-choices input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #0F766E;
  cursor: pointer;
}
.permission-choices {
  min-width: 0;
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid #D9DFE7;
  border-radius: 8px;
}
.permission-choices legend {
  padding-inline: 8px;
  font-size: 13px;
}
.permission-choices input:disabled {
  cursor: default;
}
.permission-choices small {
  display: block;
  margin-top: 12px;
  color: #4F5D6E;
}

/* A compact, right-aligned company identity on customer documents. */
.invoice-header, .print-report-header {
  direction: ltr;
  flex-direction: row-reverse;
  align-items: flex-start;
}
.document-company {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  text-align: right;
}
.document-company .company-logo {
  width: 104px;
  height: 52px;
  margin: 0 0 4px;
}
.document-company h1, .document-company h2, .document-company p {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}
.document-company h1, .document-company h2 {
  font-size: 14px;
}
.document-company p {
  font-size: 10px;
}
.invoice-header > .document-summary, .print-heading {
  text-align: left;
}
@media print {
  .print-report-header {
    flex-wrap: wrap;
  }
}

.invoice-header > .document-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

/* Let content determine widths: names stay complete, numeric columns stay compact. */
.data-table { table-layout:auto; min-width:100%; }
.data-table th, .data-table td { white-space:normal; overflow-wrap:normal; }
.data-table .first-col, .data-table .cell-name, .data-table .cell-reference,
.data-table .cell-compact { white-space:nowrap; }
.data-table .cell-reference, .data-table .cell-compact, .data-table .actions-col { width:1%; }
.data-table .table-name { display:block; white-space:nowrap; }
.data-table .row-actions { flex-wrap:nowrap; }
.activity-filters { display:flex; gap:12px; align-items:flex-end; padding:20px; }
.activity-filters .field { flex:1; }
.activity-pagination { padding:20px; text-align:center; }
@media print { .data-table { min-width:0; } }


@font-face { font-family:CairoQuote; src:url('/fonts/Cairo-Regular.ttf') format('truetype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:CairoQuote; src:url('/fonts/Cairo-Bold.ttf') format('truetype'); font-weight:700; font-style:normal; font-display:swap; }
#print-content:has(.invoice-header), #print-area:has(.invoice-header) { font-family:CairoQuote,Tahoma,sans-serif; }
#print-content:has(.invoice-header) .num, #print-area:has(.invoice-header) .num { font-family:inherit; }

.activity-preview tbody tr { cursor:pointer; }
@media print {
  .data-table .cell-name, .data-table .table-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.public-nav { min-height:72px; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 5%; background:#fff; border-bottom:1px solid #D9DFE7; flex-wrap:wrap; }
.public-logo { font-size:28px; font-weight:700; color:#142D4E; text-decoration:none; }
.public-nav-actions, .public-cta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.public-auth { min-height:calc(100vh - 72px); }
.public-home { max-width:1140px; margin:auto; padding:24px 32px 60px; }
.public-language { display:flex; justify-content:flex-end; }
.public-hero { max-width:820px; margin:44px auto; text-align:center; }
.public-hero h1 { font-size:clamp(26px,4vw,46px); color:#142D4E; line-height:1.6; }
.public-hero p { font-size:16px; color:#4F5D6E; line-height:2; margin:20px 0; }
.public-cta { justify-content:center; margin:28px 0; }
.public-features { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.public-features article { border:1px solid #D9DFE7; border-radius:12px; padding:24px; background:#fff; text-align:center; }
.public-features .icon { width:30px; height:30px; color:#0F766E; }
.public-features h2 { font-size:14px; margin-top:16px; color:#142D4E; }
.public-isolation { text-align:center; color:#4F5D6E; margin:28px 0; }
.auth-alternative { margin-top:20px; }
.restore-confirm { display:flex; align-items:center; gap:10px; margin:20px 0; }
.restore-confirm input { width:16px; height:16px; flex:0 0 16px; }
@media(max-width:600px) {
 .public-nav { gap:10px; padding:12px 16px; }
 .public-logo { font-size:23px; }
 .public-nav-actions { gap:8px; }
 .public-nav-actions .btn { font-size:11px; padding:9px 10px; }
 .public-home { padding:18px 18px 40px; }
 .public-features { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .public-features article { padding:18px 10px; }
 .public-hero { margin:28px auto; }
}

.permission-module { border:1px solid var(--line,#e5eaf0); border-radius:12px; margin-block:12px; overflow:hidden; }
.permission-module table { margin:0; min-width:0; width:100%; table-layout:fixed; }
.permission-module th, .permission-module td { padding:12px 8px; white-space:normal; font-size:12px; line-height:1.6; }
.permission-module tbody th { color:#142D4E; font-weight:500; }
.permission-module th:first-child { width:55%; white-space:normal; }
.permission-module th:not(:first-child), .permission-module td { width:22.5%; text-align:center; }
.permission-parts summary { cursor:pointer; padding:12px 16px; color:var(--teal,#0f766e); background:var(--bg,#f5f7fa); font-weight:600; }
.permission-parts[open] summary { border-bottom:1px solid var(--line,#e5eaf0); }

.saas-gate,.saas-banner{background:white;border:1px solid #D9E7E5;border-radius:16px;padding:24px;margin-bottom:22px}.saas-gate{border-inline-start:5px solid #0F766E}.saas-gate h2{font-size:23px;color:#142D4E;margin-block:8px 12px}.saas-gate p,.saas-banner p{white-space:pre-wrap;line-height:1.9;margin-block:10px;color:#536577}.saas-banner h3{font-size:17px}.saas-kicker{color:#0F766E;font-weight:700}.saas-planline{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;background:#E5F3EE;border-radius:12px;padding:14px 18px;margin-bottom:20px;font-size:12px}.saas-invoice{border:1px solid #DDE6EE;border-radius:12px;padding:18px;margin-bottom:18px}.saas-invoice-values{display:flex;gap:20px;flex-wrap:wrap;margin-block:12px}.saas-payment-form{padding-top:12px;margin-top:12px;border-top:1px solid #E5EAF0}

.saas-lockscreen{position:fixed;inset:0;z-index:70;overflow:auto;display:grid;place-items:center;padding:24px;background:linear-gradient(140deg,#142D4E,#0b434b);min-height:100dvh}.saas-lockcard{background:#fff;max-width:620px;width:100%;padding:36px;border-radius:24px;text-align:center;box-shadow:0 24px 80px #0004}.saas-lockcard h1{font-size:26px;color:#142D4E}.saas-lockcard p{line-height:1.9;color:#536577;white-space:pre-wrap}.saas-lock-icon{font-size:48px;color:#0F766E;margin:12px}.saas-lock-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px}.saas-lock-actions .primary{width:100%}@media(max-width:600px){.saas-lockscreen{padding:16px}.saas-lockcard{padding:24px 18px}.saas-lockcard h1{font-size:22px}}

.support-session-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 25px;background:#fff2d7;border-block:1px solid #ead098;color:#785010;font-size:12px;flex-wrap:wrap}.support-session-bar .btn{padding:6px 12px;font-size:11px}@media print{.support-session-bar{display:none!important}}
.cleaning-floor,.cleaning-options,.cleaning-preview{border:1px solid var(--border,#dde4ed);border-radius:12px;padding:16px;margin:16px 0;min-width:0}.cleaning-options label{display:inline-flex;align-items:center;gap:8px;margin:8px}.cleaning-options input[type=checkbox]{width:17px;height:17px;min-height:0;padding:0}.cleaning-floor fieldset{min-width:0}.cleaning-preview dd{margin:4px 0 12px}.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.btn.app-download{background:#7c3aed;color:#fff;border-color:#7c3aed;white-space:nowrap}.btn.app-download:hover{background:#6d28d9}.public-language{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cleaning-repeat-item{min-width:0;border:1px dashed #cbd5e1;border-radius:10px;padding:14px;margin:12px 0}.cleaning-floor>.field{max-width:220px}
.field[hidden]{display:none!important}@media(max-width:520px){.topbar-tools .app-download{padding:8px;font-size:10px}.topbar-tools{gap:6px}}
.cleaning-options>select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line,#dce4ef);border-radius:10px;background:#fff;color:inherit;font:inherit}
/* Survey cases use the available width, with a single-column fallback on phones. */
#cleaning-editor .cleaning-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;align-items:start}
#cleaning-editor .cleaning-group,#cleaning-editor .cleaning-repeat.has-items{grid-column:1/-1}
#cleaning-editor .cleaning-floor,#cleaning-editor .cleaning-options{margin:0;padding:12px;border-radius:10px}
#cleaning-editor>.cleaning-grid,#cleaning-editor>[data-clean-floor]{margin-top:14px}
#cleaning-editor [data-clean-floor]{padding:14px}
#cleaning-editor .field{margin:0;gap:6px}
#cleaning-editor .cleaning-options{height:100%;box-sizing:border-box}
#cleaning-editor .cleaning-options label{margin:5px 8px;gap:6px;font-size:12px}
#cleaning-editor .cleaning-repeat-item{margin:12px 0 0;padding:12px}
#cleaning-editor textarea{min-height:76px}
.survey-shortcut{margin:16px 0}
@media(max-width:520px){#cleaning-editor .cleaning-grid{grid-template-columns:minmax(0,1fr);gap:10px}#cleaning-editor .cleaning-floor,#cleaning-editor [data-clean-floor]{padding:10px}}
#cleaning-editor .cleaning-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#cleaning-editor .cleaning-text{grid-column:1/-1}
@media(max-width:900px){#cleaning-editor .cleaning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#cleaning-editor .cleaning-grid{grid-template-columns:minmax(0,1fr)}}
