:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #192821;
  background: #f4f6f2;
  font-synthesis: none;
  --green: #214e3c;
  --muted: #707b73;
  --line: #dde3db;
  --accent: #d6ee98;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #91b753;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.3;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #133c2b;
}
.secondary {
  background: white;
  border: 1px solid #d1dbcf;
}
.text-button {
  background: none;
  padding: 6px;
  font-size: 12px;
  color: var(--green);
}
.danger {
  background: #fff0ed;
  border: 1px solid #e7b7a9;
  color: #983e30;
}
.hidden {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: #142b23;
  color: #e9f0e5;
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.1px;
}
.brand small {
  display: block;
  color: #99ad9c;
  font-size: 9px;
  margin-top: 5px;
  letter-spacing: 2px;
}
.monogram {
  background: var(--accent);
  color: #182c20;
  border-radius: 8px;
  padding: 12px 7px;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -1px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #89a090;
  margin: 53px 12px 16px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  background: #2a4234;
  padding: 14px;
  font-size: 13px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}
.sidebar-note {
  border-top: 1px solid #3b5143;
  margin-top: 50px;
  padding: 25px 10px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.65px;
  font-weight: 700;
}
.sidebar-note .eyebrow {
  color: #9aae90;
  font-size: 8px;
}
.sidebar-note p {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 400;
}
.sidebar-note small {
  color: #9caf9b;
  font-size: 10px;
}
.sidebar-footer {
  margin-top: auto;
  font-size: 10px;
  color: #acbcac;
}
.sidebar-footer small {
  display: block;
  font-size: 9px;
  margin-top: 8px;
  color: #7b9586;
}
main {
  margin-left: 235px;
  padding: 0 46px 26px;
  max-width: 1800px;
}
.topbar {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.topbar strong {
  font-weight: 500;
  color: #344739;
}
.slash {
  margin: 0 12px;
  color: #a5aea4;
}
#identity {
  font-size: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 43px 0 29px;
}
.eyebrow {
  color: #70815e;
}
h1 {
  font-size: 43px;
  line-height: 1.1;
  font-weight: 640;
  letter-spacing: -1.7px;
  margin: 11px 0 13px;
}
.period {
  color: #88a052;
}
p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0;
}
h2 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.3px;
  margin: 0;
}
.banner {
  padding: 15px 18px;
  background: #ebf0dc;
  border: 1px solid #dbe4c5;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.banner.test {
  background: #fff0d8;
  border-color: #efce91;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 140px;
  padding: 23px 21px;
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #7a8276;
}
.metrics strong {
  font-size: 24px;
  font-weight: 590;
  letter-spacing: -0.5px;
  margin: 17px 0 8px;
}
.metrics span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.section-heading {
  margin: 36px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.section-heading p {
  font-size: 11px;
  margin: 6px 0 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tabs button {
  background: none;
  border-radius: 0;
  font-size: 12px;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  color: var(--green);
  border-bottom-color: var(--green);
}
.tabs span {
  border-radius: 5px;
  background: #e8ece5;
  padding: 3px 6px;
  font-size: 9px;
}
.empty {
  padding: 55px 25px;
  background: #fff;
  border: 1px dashed #cbd5c4;
  border-radius: 9px;
  text-align: center;
}
.empty .empty-icon {
  font-size: 31px;
  color: #8c9c7f;
  margin-bottom: 13px;
}
.empty p {
  max-width: 540px;
  margin: 10px auto;
}
.empty h3 {
  font-size: 17px;
  font-weight: 550;
}
.group-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 14px;
  padding: 22px;
}
.group-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
}
.group-top h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.group-top small {
  color: var(--muted);
  font-size: 10px;
}
.badge {
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #d8e2ce;
  background: #eff4e7;
  color: #496239;
  padding: 6px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.error {
  background: #fff0eb;
  color: #9c402c;
  border-color: #efccc0;
}
.stock-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin: 24px 0;
}
.stock-cell {
  background: #f7f8f5;
  padding: 14px;
  border-radius: 6px;
}
.stock-cell.common {
  background: #edf3df;
}
.stock-cell span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  line-height: 1.4;
}
.stock-cell strong {
  font-size: 28px;
  font-weight: 550;
  display: block;
  margin-top: 8px;
}
.stock-cell.common strong {
  color: var(--green);
}
.group-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.group-footer small {
  font-size: 10px;
  color: var(--muted);
}
.group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.group-actions button {
  font-size: 11px;
  padding: 8px 11px;
}
.group-warning,
.alert {
  font-size: 12px;
  line-height: 1.6;
  background: #fff3ee;
  border: 1px solid #ebcdbf;
  border-radius: 6px;
  padding: 12px 15px;
  margin: 12px 0;
  color: #864830;
}
.operations {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 33px;
}
.operations article {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.operations h2 {
  margin: 13px 0 10px;
  font-size: 17px;
}
.operations p {
  font-size: 11px;
  margin: 9px 0 18px;
  max-width: 470px;
}
.stop-card .eyebrow {
  color: #a56754;
}
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: #8b9589;
  gap: 15px;
}
.login-panel {
  max-width: 540px;
  margin: 90px auto;
  background: #fff;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.login-panel h1 {
  font-size: 32px;
}
.login-panel form {
  margin: 25px 0;
}
.login-panel button {
  width: 100%;
  margin-top: 10px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5c7;
  border-radius: 6px;
  padding: 11px;
  background: white;
  color: #233c2b;
  font-size: 13px;
}
textarea {
  min-height: 70px;
  resize: vertical;
}
code {
  font-size: 11px;
}
dialog {
  width: min(720px, 95vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  color: #192821;
  max-height: 90vh;
}
dialog::backdrop {
  background: #10261db3;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
}
.icon-button {
  font-size: 24px;
  background: #f1f4ed;
  padding: 4px 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
}
.toast {
  position: fixed;
  right: 28px;
  bottom: 25px;
  background: #173c2c;
  color: white;
  padding: 16px 22px;
  border-radius: 9px;
  max-width: 600px;
  font-size: 13px;
  box-shadow: 0 8px 30px #122a2233;
  z-index: 9;
}
.toast.error {
  background: #8c392c;
}
.log-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.log-row strong {
  font-size: 12px;
}
.log-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f3f6ed;
  padding: 12px;
  border-radius: 5px;
  font-size: 11px;
}
.detail-id {
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.preview-numbers {
  font-size: 23px;
  color: #274934;
  padding: 18px;
  background: #edf3df;
  border-radius: 7px;
  margin: 18px 0;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
}
.checkbox input {
  width: auto;
  margin: 0;
}
.suggestion-options {
  margin-top: 15px;
}
.suggestion-options label {
  max-width: 430px;
}
.error-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.error-list button {
  font-size: 11px;
}
@media (min-width: 1500px) {
  main {
    padding-left: 65px;
    padding-right: 65px;
  }
  .metrics article {
    min-height: 150px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
    padding: 28px 17px;
  }
  main {
    margin-left: 195px;
    padding: 0 25px 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-heading {
    gap: 15px;
  }
  .section-heading {
    align-items: start;
  }
  .operations {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 22px;
  }
  .sidebar-note,
  .sidebar-footer,
  .nav-label,
  .nav {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 18px 24px;
  }
  .topbar {
    height: 56px;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    margin-top: 28px;
  }
  h1 {
    font-size: 36px;
  }
  .metrics {
    gap: 9px;
  }
  .metrics article {
    padding: 18px 14px;
    min-height: 135px;
  }
  .metrics strong {
    font-size: 20px;
  }
  .section-heading,
  .group-footer,
  footer {
    flex-direction: column;
    align-items: start;
  }
  .stock-row {
    gap: 8px;
  }
  .stock-cell {
    padding: 10px;
  }
  .stock-cell strong {
    font-size: 23px;
  }
  .stock-cell span {
    font-size: 9px;
  }
  .group-card {
    padding: 17px;
  }
  .login-panel {
    margin: 30px auto;
    padding: 25px;
  }
  .topbar #identity {
    display: none;
  }
}
:root .sidebar-note p {
  color: #cbd7c8;
}
.workspace-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 16px;
  margin: 16px 0 28px;
}
.workspace-nav button {
  background: transparent;
  color: var(--green);
  min-height: 44px;
}
.workspace-nav button[aria-current="page"] {
  background: var(--green);
  color: white;
}
.workspace-nav span {
  border-radius: 20px;
  background: #dce8d4;
  color: #214e3c;
  min-width: 22px;
  padding: 2px 5px;
}
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.feature-card h3 {
  margin-top: 0;
}
.feature-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 32px;
}
.setup-steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.setup-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.setup-step h3 {
  margin: 0;
}
.setup-step p {
  margin: 8px 0;
}
.setup-step .text-button {
  margin-left: 12px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 38px;
  min-width: 38px;
  font-weight: 700;
}
.step-number.done {
  background: var(--accent);
  border-color: var(--accent);
}
.issue {
  border-left: 4px solid #d6ac5b;
}
.issue.critical {
  border-left-color: #ad4736;
}
.issue.info {
  border-left-color: #6689a4;
}
.variance-wrap {
  margin: 20px 0;
}
.variance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.variance-table th,
.variance-table td {
  padding: 12px 8px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.variance-table th:first-child,
.variance-table td:first-child {
  text-align: left;
  width: 43%;
}
.variance-table th {
  font-size: 11px;
  color: var(--muted);
}
.variance-wrap small {
  display: block;
  margin-top: 10px;
}
.next-action {
  background: #f4f7ef;
  padding: 16px;
  border-radius: 8px;
  line-height: 1.6;
}
.search-line {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 8px 0 18px;
}
.search-line input {
  min-width: 0;
  flex: 1;
  margin: 0;
}
.stock-search .toolbar {
  margin-top: 12px;
}
#barcode-video {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #142b23;
  border-radius: 12px;
  margin-top: 18px;
}
.registration-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 700px) {
  .workspace-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .workspace-nav button {
    font-size: 12px;
    padding: 10px 7px;
  }
  .feature-card,
  .setup-step {
    padding: 18px;
  }
  .setup-step {
    gap: 12px;
  }
  .setup-step .text-button {
    display: flex;
    margin: 8px 0 0;
    padding-left: 0;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .stock-search input {
    font-size: 16px;
  }
  .search-line {
    flex-direction: column;
  }
  .feature-card .toolbar button {
    min-height: 44px;
  }
  .variance-table th,
  .variance-table td {
    padding: 10px 4px;
  }
  .variance-table th:first-child,
  .variance-table td:first-child {
    width: 40%;
  }
}
:root {
  --sync-on: #17633c;
}
.live-product-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #e2e5e2;
}
.live-product-controls strong {
  margin-right: auto;
}
[role="switch"][aria-checked="true"].secondary {
  border-color: var(--sync-on);
  color: var(--sync-on);
}
.live-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0;
}
.live-check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin: 2px 0 0;
}
