@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-2193, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-2193, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/ibm-plex-sans-arabic-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --app-page: #f4f3ef;
  --app-surface: #fff;
  --app-sidebar: #15314b;
  --app-sidebar-text: #c3d0dd;
  --app-ink: #1b2330;
  --app-ink-2: #4a5566;
  --app-ink-3: #636c7b;
  --app-line: #eae7e0;
  --app-divider: #f1efea;
  --app-input-line: #e2dfd7;
  --app-head: #faf9f6;
  --app-primary: #1f4e79;
  --app-ring: #dce6f0;
  --app-shadow: 0 1px 2px rgba(21, 49, 75, .04), 0 6px 20px rgba(21, 49, 75, .04);
  --bs-body-font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-color: var(--app-ink);
  --bs-body-bg: var(--app-page);
  --bs-secondary-color: var(--app-ink-3);
  --bs-border-color: var(--app-line);
  --bs-border-radius: 10px;
  --bs-border-radius-sm: 9px;
  --bs-border-radius-lg: 16px;
  --bs-link-color: var(--app-primary);
  --bs-link-color-rgb: 31, 78, 121;
  --bs-link-hover-color: var(--app-primary);
  --bs-link-hover-color-rgb: 31, 78, 121;
  --bs-danger: #8e3326;
  --bs-danger-rgb: 142, 51, 38;
  --bs-danger-text-emphasis: #8e3326;
  --bs-danger-bg-subtle: #f6e6e3;
  --bs-danger-border-subtle: #f6e6e3;
  --bs-form-invalid-color: #8e3326;
  --bs-form-invalid-border-color: #8e3326;
  --bs-box-shadow: var(--app-shadow);
  --bs-box-shadow-sm: none;
  --bs-focus-ring-width: 0;
}

*, *::before, *::after {
  transition: none !important;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-weight: 600;
}
.page-title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
}
.page-context {
  margin: 0 0 .25rem;
  font-size: 13px;
  color: var(--app-ink-3);
}
.card-title {
  font-size: 16px;
  font-weight: 600;
}

.btn {
  --bs-btn-border-radius: 10px;
  min-height: 40px;
  padding-inline: 1rem;
  font-weight: 600;
}
.btn-sm {
  --bs-btn-border-radius: 9px;
  min-height: 34px;
  padding-inline: .85rem;
}
.btn-link {
  min-height: 0;
  padding-inline: 0;
  font-weight: 400;
}
.btn-primary {
  --bs-btn-bg: var(--app-primary);
  --bs-btn-border-color: var(--app-primary);
  --bs-btn-hover-bg: var(--app-primary);
  --bs-btn-hover-border-color: var(--app-primary);
  --bs-btn-active-bg: var(--app-primary);
  --bs-btn-active-border-color: var(--app-primary);
  --bs-btn-disabled-bg: var(--app-primary);
  --bs-btn-disabled-border-color: var(--app-primary);
}
.btn-outline-secondary {
  --bs-btn-color: var(--app-ink);
  --bs-btn-bg: var(--app-surface);
  --bs-btn-border-color: var(--app-input-line);
  --bs-btn-hover-color: var(--app-ink);
  --bs-btn-hover-bg: var(--app-head);
  --bs-btn-hover-border-color: var(--app-input-line);
  --bs-btn-active-color: var(--app-ink);
  --bs-btn-active-bg: var(--app-page);
  --bs-btn-active-border-color: var(--app-input-line);
}

.form-control, .form-select {
  min-height: 40px;
  border-color: var(--app-input-line);
  border-radius: 10px;
  background-color: var(--app-surface);
}
.form-control-sm, .form-select-sm {
  min-height: 40px;
  font-size: 14px;
}
.form-label {
  color: var(--app-ink-2);
}
.form-text {
  color: var(--app-ink-3);
}
.btn, .form-control, .form-select, .form-check-input {
  box-shadow: none !important;
}
.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--app-primary);
  outline: 3px solid var(--app-ring);
  outline-offset: 0;
}
.form-check-input {
  border-color: var(--app-ink-3);
}
.form-check-input:checked {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}
.form-control.is-invalid {
  background-image: none;
  padding-inline-end: .75rem;
}

.alert {
  --bs-alert-padding-y: .65rem;
  --bs-alert-margin-bottom: 1rem;
  --bs-alert-border-radius: 10px;
  background: var(--app-surface);
  border-color: var(--app-line);
}
.alert-danger {
  color: #8e3326;
  background: #f6e6e3;
  border-color: #f6e6e3;
}

.pill {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-good {
  color: #285c4a;
  background: #e7f0eb;
}
.pill-warn {
  color: #7a4f0e;
  background: #f8eedd;
}
.pill-bad {
  color: #8e3326;
  background: #f6e6e3;
}
.pill-info {
  color: var(--app-primary);
  background: #eef3f8;
}

.table {
  --bs-table-bg: var(--app-surface);
  --bs-table-hover-bg: var(--app-head);
  --bs-table-border-color: var(--app-divider);
  font-size: 13.5px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--app-shadow);
}
.table > :not(caption) > * > * {
  padding: .6rem .85rem;
  border-width: 0 0 1px;
  border-color: var(--app-divider);
}
.table > tbody > tr:last-child > * {
  border-bottom-width: 0;
}
.table > thead th, .table > tbody > tr > th[scope="rowgroup"] {
  background: var(--app-head);
  color: var(--app-ink-2);
  font-weight: 600;
  white-space: nowrap;
  border-color: var(--app-line);
}
.table > thead th a {
  color: inherit;
  text-decoration: none;
}
tr[data-href] {
  cursor: pointer;
}
.table td.text-end {
  font-variant-numeric: tabular-nums;
}
input[type="number"] {
  text-align: end;
}
[dir="rtl"] input[type="number"] {
  text-align: start;
}

.nav-tabs {
  --bs-nav-tabs-border-width: 0;
  border-bottom: 1px solid var(--app-line);
  gap: 1.25rem;
}
.nav-tabs .nav-link {
  padding: .5rem 0;
  color: var(--app-ink-2);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.nav-tabs .nav-link.active {
  color: var(--app-primary);
  background: none;
  border-bottom-color: var(--app-primary);
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.side {
  position: sticky;
  inset-block-start: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 256px;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 14px 14px;
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
  font-size: 13.5px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 10px 18px;
  color: #fff;
}
.brand:hover {
  text-decoration: none;
}
.brand b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.brand small {
  color: #93a7bc;
  font-size: 12px;
}
.mark {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--app-page);
  color: var(--app-sidebar);
}
.side-filter {
  width: 100%;
  min-height: 36px;
  margin-block-end: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-size: 13px;
}
.side-filter::placeholder {
  color: #93a7bc;
}
.side-filter:focus {
  outline: 2px solid #7fa0c3;
  outline-offset: 1px;
}
.navlab {
  padding: 12px 12px 6px;
  color: #7f95ab;
  font-size: 11.5px;
}
.sec summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--app-sidebar-text);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.sec summary::-webkit-details-marker {
  display: none;
}
.sec summary:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.sec[open] summary {
  color: #fff;
}
.sec .chev {
  margin-inline-start: auto;
  opacity: .6;
  transition: transform .15s;
}
.sec[open] .chev {
  transform: rotate(180deg);
}
.sec .group {
  padding: 8px 12px 2px;
  padding-inline-start: 41px;
  color: #7f95ab;
  font-size: 11.5px;
}
.sub-link {
  display: block;
  padding: 6px 12px;
  padding-inline-start: 41px;
  border-radius: 9px;
  color: var(--app-sidebar-text);
}
.sub-link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
}
.sub-link.active {
  background: var(--app-page);
  color: var(--app-sidebar);
  font-weight: 600;
}
.sub-link.planned {
  opacity: .5;
}
.navlab + .sub-link, .navlab ~ .sub-link {
  padding-inline-start: 12px;
}
.who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: auto;
  padding: 14px 6px 2px 10px;
  border-block-start: 1px solid rgba(255, 255, 255, .08);
}
.av {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b4a68;
  color: #fff;
  font-weight: 600;
}
.who-name {
  flex: 1 1 auto;
  min-width: 0;
}
.who-name b, .who-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.who-name b {
  color: #fff;
  font-weight: 500;
}
.who-name small {
  color: #93a7bc;
  font-size: 12px;
}
.who form {
  margin-inline-start: auto;
}
.who-out {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--app-sidebar-text);
}
.who-out:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
[dir="rtl"] .who-out svg {
  transform: scaleX(-1);
}
.app-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.app-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
}
.app-company {
  color: var(--app-ink);
  font-size: 16px;
  font-weight: 600;
}
.app-search {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 260px;
  max-width: 440px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--app-input-line);
  border-radius: 10px;
  background: var(--app-surface);
  color: var(--app-ink-3);
  font: inherit;
  text-align: start;
}
.app-search span {
  flex: 1;
}
.app-search kbd {
  padding: 0 6px;
  border: 1px solid var(--app-input-line);
  border-block-end-width: 2px;
  border-radius: 5px;
  background: var(--app-surface);
  color: var(--app-ink-2);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
}
.app-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: #e9e6df;
}
.seg button, .seg span {
  min-height: 30px;
  padding: 4px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--app-ink-2);
  font: inherit;
  font-weight: 500;
}
.seg button:hover {
  color: var(--app-ink);
}
.seg .on {
  background: var(--app-surface);
  color: var(--app-ink);
  box-shadow: 0 1px 2px rgba(21, 49, 75, .12);
}
.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--app-input-line);
  border-radius: 10px;
  background: var(--app-surface);
  color: #3a4352;
}
.iconbtn:hover {
  border-color: #cbc6bb;
  text-decoration: none;
}
.iconbtn i {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-end: -6px;
  min-width: 20px;
  padding: 0 5px;
  border: 2px solid var(--app-page);
  border-radius: 999px;
  background: #b86e1c;
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.content {
  width: 100%;
  max-width: 1280px;
  padding: 8px 36px 48px;
}
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
label > .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}
div[id]:has(> div > label > input[type="checkbox"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding-block: 6px;
}
@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .side {
    position: static;
    height: auto;
    flex-basis: auto;
  }
  .app-top, .content {
    padding-inline: 16px;
  }
}
#page-form, .card-box {
  padding: 1.5rem;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  box-shadow: var(--app-shadow);
}
#page-form .table {
  box-shadow: none;
}
.list-search {
  max-width: 16rem;
}
.lines td {
  padding: 6px 4px !important;
  vertical-align: middle;
}
.lines .form-control, .lines .form-select {
  min-height: 38px;
  border-color: var(--app-input-line);
  border-radius: 9px;
  background-color: var(--app-surface);
}
.lines .form-control:focus, .lines .form-select:focus, .lines .is-invalid {
  border-color: var(--app-primary);
}
.lines .is-invalid {
  border-color: var(--bs-danger) !important;
}
.login-page {
  display: flex;
  min-height: 100vh;
}
.login-brand {
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
  background: var(--app-sidebar);
  color: var(--app-sidebar-text);
}
.login-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.login-mark span {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--app-page);
  color: var(--app-sidebar);
}
.login-headline {
  max-width: 520px;
  margin-block-end: 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.login-sub {
  max-width: 520px;
  font-size: 15px;
}
.login-points {
  max-width: 520px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.login-points li {
  padding-block: 14px;
  border-block-end: 1px solid rgba(195, 208, 221, .18);
}
.login-side {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.login-form {
  width: 100%;
  max-width: 400px;
}
.login-context {
  margin-block-end: 4px;
  color: var(--app-ink-3);
}
.login-form .form-control {
  min-height: 48px;
}
.login-submit {
  min-height: 48px;
}
.login-lang {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 24px;
}
.label-preview {
  background: var(--app-surface);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.tile-label {
  color: var(--app-ink-2);
  font-weight: 600;
}
.tile-value {
  display: inline-block;
  margin-block: .35rem .15rem;
  color: var(--app-ink);
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.tile-value:hover, .tile-value:focus-visible {
  color: var(--app-primary);
  text-decoration: underline;
}
.tile-note {
  color: var(--app-ink-3);
  font-size: 13px;
}
.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 1rem;
}
.dash-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
@media (max-width: 991px) {
  .dash-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.cash-chart svg {
  display: block;
  inline-size: 100%;
  block-size: 140px;
}
[dir="rtl"] .cash-chart svg {
  transform: scaleX(-1);
}
.cash-chart .bar {
  fill: #bcd0e2;
}
.cash-chart .bar-neg {
  fill: #7fa0c3;
}
.cash-chart .bar-low {
  fill: var(--app-primary);
}
.cash-chart .zero {
  stroke: var(--app-line);
  stroke-width: 1;
}
.chart-axis {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  margin-block-start: .35rem;
  white-space: nowrap;
}
.aging-bar {
  display: flex;
  block-size: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--app-divider);
}
.age-1 {
  background: #bcd0e2;
}
.age-2 {
  background: #7fa0c3;
}
.age-3 {
  background: #4a77a3;
}
.age-4 {
  background: #1f4e79;
}
.aging-list li, .short-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-block: .4rem;
  border-bottom: 1px solid var(--app-divider);
}
.aging-list li:last-child, .short-list li:last-child {
  border-bottom: 0;
}
.swatch {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 3px;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.setup-steps li {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.step-mark {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 26px;
  block-size: 26px;
  border: 1px solid var(--app-input-line);
  border-radius: 50%;
  color: var(--app-ink-2);
  font-size: 13px;
  font-weight: 600;
}
.setup-steps .done .step-mark {
  color: #285c4a;
  background: #e7f0eb;
  border-color: #e7f0eb;
}
.setup-steps .done a {
  color: var(--app-ink-3);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(27, 35, 48, .32);
}
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 1045;
  display: flex;
  flex-direction: column;
  inline-size: min(420px, 100vw);
  background: var(--app-surface);
  border-inline-start: 1px solid var(--app-line);
  outline: none;
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--app-divider);
}
.drawer-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--app-divider);
}
body.drawer-open {
  overflow: hidden;
}
.facts {
  margin: 0;
}
.facts > div {
  display: flex;
  gap: 1rem;
  padding-block: .5rem;
  border-bottom: 1px solid var(--app-divider);
}
.facts dt {
  flex: 0 0 45%;
  color: var(--app-ink-2);
  font-weight: 400;
}
.facts dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
tr[data-drawer] {
  cursor: pointer;
}

.context-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  margin-block-start: .75rem;
  color: var(--app-ink-2);
  font-size: 13px;
}
.context-strip:empty {
  display: none;
}
.line-hint {
  padding-inline: .5rem;
  color: var(--app-ink-3);
  font-size: 12px;
}
.line-hint:empty {
  display: none;
}
.price-warning {
  color: #7a4f0e;
}
.item-pick {
  position: relative;
  min-inline-size: 12rem;
}
.item-pick .form-control {
  padding-inline-end: 2.25rem;
}
.item-find {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  inline-size: 2.25rem;
  padding: 0;
  color: var(--app-ink-3);
  background: none;
  border: 0;
}
.item-find:hover {
  color: var(--app-primary);
}
.item-suggest {
  position: fixed;
  z-index: 1035;
  inline-size: min(640px, calc(100vw - 32px));
  max-block-size: 50vh;
  overflow-y: auto;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(21, 49, 75, .06), 0 12px 32px rgba(21, 49, 75, .12);
}
.item-results {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.item-results th {
  position: sticky;
  inset-block-start: 0;
  background: var(--app-head);
  color: var(--app-ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.item-results tr[data-label] {
  cursor: pointer;
}
.item-results span[dir="ltr"] {
  white-space: nowrap;
}
.item-results tr.active > td {
  background: var(--app-ring);
}
.item-window {
  inline-size: min(960px, calc(100vw - 32px));
  padding: 0;
  color: var(--app-ink);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  box-shadow: var(--app-shadow);
}
.item-window::backdrop {
  background: rgba(27, 35, 48, .32);
}
.item-window-box {
  padding: 1.25rem 1.5rem;
}
.item-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 1rem;
}
.item-window-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.item-window-results {
  max-block-size: 50vh;
  overflow: auto;
  margin-block-end: .75rem;
  border: 1px solid var(--app-line);
  border-radius: 12px;
}

.palette-open {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-inline-size: 260px;
  color: var(--app-ink-3);
  font-weight: 400;
}
.palette-open kbd, .palette-help kbd {
  padding: .05rem .35rem;
  color: var(--app-ink-2);
  background: var(--app-head);
  border: 1px solid var(--app-line);
  border-radius: 6px;
  font-size: 11.5px;
  font-family: inherit;
}
.palette-open kbd {
  margin-inline-start: auto;
}
.palette {
  position: fixed;
  inset: 0;
  z-index: 1050;
}
.palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 35, 48, .32);
}
.palette-box {
  position: relative;
  inline-size: min(600px, calc(100vw - 2rem));
  margin: 12vh auto 0;
  padding: .75rem;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  box-shadow: var(--app-shadow);
}
.palette-list {
  max-block-size: 50vh;
  overflow-y: auto;
  margin-block: .5rem;
}
.palette-heading {
  padding: .5rem .6rem .25rem;
  color: var(--app-ink-3);
  font-size: 12px;
  font-weight: 600;
}
.palette-item {
  display: block;
  padding: .45rem .6rem;
  border-radius: 9px;
  color: var(--app-ink);
  text-decoration: none;
}
.palette-item:hover, .palette-item.active {
  color: var(--app-ink);
  background: var(--app-ring);
}
.palette-help {
  padding: .25rem .6rem 0;
}
.period-bar {
  margin-inline: 36px;
  padding: 8px 12px;
  border: 1px solid var(--app-line) !important;
  border-radius: 12px;
  background: var(--app-surface);
}
.period-bar .form-control {
  inline-size: 8.5rem;
}
.period-bar .form-select {
  inline-size: 11rem;
}
.period-bar .form-control, .period-bar .form-select, .period-bar .btn-sm {
  min-height: 32px;
  padding-block: .2rem;
  font-size: 13px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding-block: .15rem;
  padding-inline: .7rem .35rem;
  background: var(--app-surface);
  border: 1px solid var(--app-input-line);
  border-radius: 999px;
  font-size: 13px;
}
.chip a {
  color: var(--app-ink);
  text-decoration: none;
}
.chip-remove {
  padding: 0 .35rem;
  color: var(--app-ink-3);
  background: none;
  border: 0;
  border-radius: 999px;
  line-height: 1.4;
}
.save-filter summary {
  color: var(--app-primary);
  cursor: pointer;
}
.density-compact .content {
  padding: 4px 24px 28px;
}
.density-compact .app-top {
  padding-block: 10px;
  padding-inline: 24px;
}
.density-compact .form-control, .density-compact .form-select {
  min-height: 34px;
  padding-block: .25rem;
}
.density-compact .page-title {
  font-size: 22px;
}
.density-compact .st-page .st-row {
  padding: 12px 20px;
}
.density-compact .st-page .st-panel-head {
  padding: 14px 20px 12px;
}
.density-compact .table > :not(caption) > * > * {
  padding: .3rem .6rem;
}
.density-compact .card-box, .density-compact #page-form {
  padding: 1rem;
}
.density-compact .tiles, .density-compact .dash-row, .density-compact .dash-lists {
  gap: .6rem;
}
.density-compact .tile-value {
  font-size: 22px;
}

.cycle {
  position: relative;
  padding: 1rem 0 .25rem;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
}
.cycle ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps), 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cycle li > a, .cycle li > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 0 .25rem .5rem;
  color: var(--app-ink-3);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.cycle-track {
  position: absolute;
  inset-block-start: calc(1rem + 13px);
  inset-inline: calc(50% / var(--steps));
  block-size: 2px;
  background: var(--app-line);
}
.cycle-fill {
  block-size: 100%;
  inline-size: var(--progress);
  background: var(--app-primary);
  animation: cycle-fill 600ms ease-out;
}
.cycle-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 28px;
  block-size: 28px;
  border: 2px solid var(--app-line);
  border-radius: 50%;
  color: var(--app-ink-3);
  background: var(--app-surface);
  font-weight: 600;
}
.cycle-done .cycle-mark {
  color: #fff;
  background: var(--app-primary);
  border-color: var(--app-primary);
}
.cycle-done > a, .cycle-done > span {
  color: var(--app-ink);
}
.cycle-current .cycle-mark {
  color: var(--app-primary);
  border-color: var(--app-primary);
  animation: cycle-pulse 2s ease-out infinite;
}
.cycle-current > span, .cycle-current > a {
  color: var(--app-primary);
  font-weight: 600;
}
.cycle-skipped .cycle-mark {
  border-style: dashed;
}
@keyframes cycle-fill {
  from {
    inline-size: 0;
  }
}
@keyframes cycle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 78, 121, .28);
  }
  70%, 100% {
    box-shadow: 0 0 0 8px rgba(31, 78, 121, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cycle-fill, .cycle-current .cycle-mark {
    animation: none;
  }
}
.login-form .form-label {
  color: var(--app-ink);
  font-weight: 500;
}
div.form-check-input:has(input) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: none;
  appearance: none;
  float: none;
}
.btn-link {
  text-decoration: none;
}
.save-filter summary {
  color: var(--app-primary);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.save-filter summary::-webkit-details-marker {
  display: none;
}
.save-filter summary::before {
  content: "+";
  margin-inline-end: 6px;
  font-weight: 600;
}
.flatpickr-calendar {
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(21, 49, 75, .12);
  font-family: inherit;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after {
  display: none;
}
.flatpickr-day.today {
  border-color: var(--app-primary);
}
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--app-primary);
  border-color: var(--app-primary);
}
.company-logo {
  max-height: 72px;
  max-width: 240px;
  padding: 6px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-surface);
}
[x-cloak] {
  display: none !important;
}
.req {
  margin-inline-start: 2px;
  color: #8e3326;
}
.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 20px;
}
.record-sub {
  margin: 2px 0 0;
  color: var(--app-ink-3);
}
.code-box {
  display: grid;
  grid-template-columns: auto 8.5rem;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 12px;
}
.code-box label {
  color: var(--app-ink-2);
  font-weight: 600;
}
.code-box .form-control {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.code-box p {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 12px;
  color: var(--app-ink-3);
}
.user-editor #page-form {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.ue-body {
  padding: 4px 24px 22px;
}
.ue-flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  padding: 0 24px 10px;
  border-block-start: 1px solid var(--app-divider);
}
.st-page .ue-flag-grid .st-row.ue-flag {
  padding-inline: 0;
  border-block-start: 0;
  border-block-end: 1px solid var(--app-divider);
}
@media (max-width: 900px) {
  .ue-flag-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ue-err {
  width: 8px;
  height: 8px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--bs-danger);
}
.ue-role-note {
  margin: 16px 12px 0;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--app-line);
  color: var(--app-ink-3);
  font-size: 12.5px;
}
.st-page .st-row.ue-flag {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-block: 12px;
}
.ue-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 24px 14px;
}
.ue-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}
.ue-search .st-i {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 11px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--app-ink-3);
}
.ue-search input {
  width: 100%;
  height: 36px;
  padding-inline: 34px 12px;
  border: 1px solid var(--app-input-line);
  border-radius: 9px;
  font: inherit;
}
.ue-search input:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-ring);
}
.ue-perms {
  display: grid;
  gap: 8px;
  padding: 0 24px 22px;
}
.ue-sec {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 12px;
}
.ue-sec summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--app-head);
  cursor: pointer;
  list-style: none;
}
.ue-sec summary::-webkit-details-marker {
  display: none;
}
.ue-chev {
  width: 16px;
  height: 16px;
  color: var(--app-ink-3);
  transition: transform .15s;
}
.ue-sec:not([open]) .ue-chev {
  transform: rotate(-90deg);
}
[dir="rtl"] .ue-sec:not([open]) .ue-chev {
  transform: rotate(90deg);
}
.ue-sec-title {
  font-weight: 600;
}
.ue-sec-count {
  padding: 0 8px;
  border-radius: 999px;
  background: #ece9e2;
  color: var(--app-ink-3);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 20px;
}
.ue-sec-count.some {
  background: #eef3f8;
  color: var(--app-primary);
}
.ue-sec-count.full {
  background: #e7f0eb;
  color: #285c4a;
}
.ue-all {
  margin-inline-start: auto;
  color: var(--app-ink-2);
  font-size: 13px;
}
.ue-group {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  border-block-start: 1px solid var(--app-divider);
}
.ue-group-title {
  margin: 0;
  padding-block-start: 2px;
  color: var(--app-ink-3);
  font-size: 12.5px;
  font-weight: 600;
}
.ue-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 6px 18px;
}
.ue-pages label {
  font-size: 13.5px;
  white-space: normal;
}
@media (max-width: 700px) {
  .ue-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
.password-form {
  max-width: 60rem;
}
.records .table {
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.records-head {
  padding: 16px 18px 12px;
}
.records-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--app-ink-3);
}
.records td {
  vertical-align: middle;
}
.records .code-col {
  width: 6.5rem;
  font-variant-numeric: tabular-nums;
}
.records tfoot td {
  background: var(--app-head);
  border-block-start: 1px solid var(--app-line);
}
.row-actions {
  white-space: nowrap;
}
.row-actions form {
  display: inline-block;
}
@media (max-width: 700px) {
  .perm > .perm-group {
    grid-template-columns: 1fr;
  }
}
[x-cloak] {
  display: none !important;
}
.st-page .st-i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-page .st-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 22px;
}
.st-page .st-sub {
  margin: 6px 0 0;
  color: var(--app-ink-3);
}
.st-page .st-search {
  position: relative;
  width: 340px;
  flex-shrink: 0;
}
.st-page .st-search .st-i {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 12px;
  transform: translateY(-50%);
  color: var(--app-ink-3);
  pointer-events: none;
}
.st-page .st-search input {
  width: 100%;
  height: 40px;
  padding-inline: 38px 44px;
  border: 1px solid var(--app-input-line);
  border-radius: 10px;
  background: var(--app-surface);
  font: inherit;
}
.st-page .st-search input:focus {
  outline: none;
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-ring);
}
.st-page kbd {
  padding: 1px 6px;
  border: 1px solid var(--app-input-line);
  border-block-end-width: 2px;
  border-radius: 5px;
  background: var(--app-head);
  color: var(--app-ink-2);
  font: 600 11px/1.5 "IBM Plex Sans", sans-serif;
}
.st-page .st-search kbd {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 10px;
  transform: translateY(-50%);
}
.st-page .st-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-block-end: 24px;
}
.st-page .st-side {
  position: sticky;
  inset-block-start: 16px;
}
.st-page .st-side h4 {
  margin: 18px 12px 6px;
  color: var(--app-ink-3);
  font-size: 12px;
  font-weight: 600;
}
.st-page .st-side h4:first-child {
  margin-block-start: 0;
}
.st-page .st-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-page .st-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--app-ink-2);
  font-weight: 500;
}
.st-page .st-side a:hover {
  background: rgba(21, 49, 75, .05);
  color: var(--app-ink);
  text-decoration: none;
}
.st-page .st-side a .st-i {
  color: var(--app-ink-3);
}
.st-page .st-side a[aria-current="true"] {
  background: var(--app-surface);
  color: var(--app-primary);
  font-weight: 600;
  box-shadow: var(--app-shadow);
}
.st-page .st-side a[aria-current="true"] .st-i {
  color: var(--app-primary);
}
.st-page .st-count {
  min-width: 22px;
  margin-inline-start: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(21, 49, 75, .06);
  color: var(--app-ink-3);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
.st-page .st-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--app-primary);
}
.st-page .st-side a.has-changes .st-dot {
  display: block;
}
.st-page .st-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.st-page .st-panel {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}
.st-page .st-panel[hidden], .st-page .st-row[hidden] {
  display: none;
}
.st-page .st-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 18px;
}
.st-page .st-panel-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #eef3f8;
  color: var(--app-primary);
}
.st-page .st-panel-head h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
}
.st-page .st-panel-head p {
  margin: 3px 0 0;
  color: var(--app-ink-3);
}
.st-page .st-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 32px;
  align-items: start;
  padding: 18px 24px;
  border-block-start: 1px solid var(--app-divider);
}
.st-page .st-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.st-page .st-title label {
  cursor: pointer;
}
.st-page .st-changed {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--app-primary);
  font-size: 11.5px;
  font-weight: 600;
}
.st-page .st-changed::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.st-page .st-row.changed .st-changed {
  display: inline-flex;
}
.st-page .st-desc {
  max-width: 64ch;
  margin: 4px 0 0;
  color: var(--app-ink-3);
  font-size: 13px;
  line-height: 1.65;
}
.st-page .st-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.st-page .st-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--app-input-line);
  border-radius: 9px;
  background: #e9e6df;
}
.st-page .st-seg label {
  position: relative;
  display: block;
}
.st-page .st-seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.st-page .st-seg span {
  display: block;
  padding: 5px 14px;
  border-radius: 7px;
  color: var(--app-ink-2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.st-page .st-seg input:checked + span {
  background: var(--app-surface);
  color: var(--app-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(21, 49, 75, .12);
}
.st-page .st-seg input:focus-visible + span, .st-page .st-switch input:focus-visible + .st-track {
  box-shadow: 0 0 0 3px var(--app-ring);
}
.st-page .st-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.st-page .st-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.st-page .st-track {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cdd2d8;
  transition: background .2s;
}
.st-page .st-knob {
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(21, 49, 75, .25);
  transition: transform .2s;
}
.st-page .st-switch input:checked + .st-track {
  background: var(--app-primary);
}
.st-page .st-switch input:checked + .st-track .st-knob {
  transform: translateX(16px);
}
[dir="rtl"] .st-page .st-switch input:checked + .st-track .st-knob {
  transform: translateX(-16px);
}
.st-page .st-state {
  min-width: 40px;
  color: var(--app-ink-3);
  font-size: 13px;
  font-weight: 500;
}
.st-page .st-wide {
  min-width: 240px;
}
.st-page .st-addon {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--app-input-line);
  border-radius: 9px;
  background: var(--app-surface);
}
.st-page .st-addon:focus-within {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-ring);
}
.st-page .st-addon input {
  width: 160px;
  height: 36px;
  padding-inline: 12px;
  border: 0;
  background: transparent;
  font: inherit;
}
.st-page .st-addon input:focus {
  outline: none;
}
.st-page .st-unit {
  display: grid;
  place-items: center;
  padding-inline: 12px;
  border-inline-start: 1px solid var(--app-input-line);
  background: var(--app-head);
  color: var(--app-ink-3);
  font-size: 13px;
}
.st-page .st-error {
  display: flex;
  gap: 6px;
  color: var(--bs-danger);
  font-size: 12.5px;
}
.st-page .st-error .st-i {
  width: 15px;
  height: 15px;
}
.st-page .st-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--app-input-line);
  border-radius: 16px;
  background: var(--app-surface);
  color: var(--app-ink-3);
}
.st-page .st-empty h3 {
  margin: 0;
  color: var(--app-ink);
  font-size: 15px;
}
.st-page .st-savebar {
  position: sticky;
  inset-block-end: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline: -36px;
  padding: 12px 36px;
  border-block-start: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -6px 18px rgba(21, 49, 75, .07);
}
.st-page .st-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--app-ink-3);
}
.st-page .st-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #adb5bd;
}
.st-page .st-savebar.dirty .st-status {
  color: var(--app-ink);
  font-weight: 500;
}
.st-page .st-savebar.dirty .st-light {
  background: #b86e1c;
  box-shadow: 0 0 0 4px #f8eedd;
}
.st-page .st-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.st-page .st-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.st-page .st-actions .st-i {
  width: 16px;
  height: 16px;
}
.st-page .st-hint {
  margin-inline-end: 8px;
  color: var(--app-ink-3);
  font-size: 12px;
}
@media (max-width: 1100px) {
  .st-page .st-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .st-page .st-head {
    flex-direction: column;
    align-items: stretch;
  }
  .st-page .st-search {
    width: 100%;
  }
  .st-page .st-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .st-page .st-side {
    position: static;
    overflow-x: auto;
  }
  .st-page .st-side h4, .st-page .st-count {
    display: none;
  }
  .st-page .st-side nav, .st-page .st-side ul {
    display: flex;
    gap: 4px;
  }
  .st-page .st-side a {
    white-space: nowrap;
  }
  .st-page .st-savebar {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .st-page .st-hint {
    display: none;
  }
}

.ws-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-block-end: 16px;
}
.ws-number {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--app-surface);
  border: 1px solid var(--app-input-line);
  border-radius: 10px;
}
.ws-number:focus-within {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-ring);
}
.ws-number .form-control {
  inline-size: 7rem;
  min-height: 32px;
  padding-block: 2px;
  border: 0;
  box-shadow: none;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ws-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 8px;
  color: var(--app-ink-2);
}
a.ws-step:hover, a.ws-step:focus-visible {
  color: var(--app-primary);
  background: var(--app-head);
}
span.ws-step {
  color: var(--app-input-line);
}
[dir="rtl"] .ws-step svg {
  transform: scaleX(-1);
}
.ws-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.ws-delete {
  color: #8e3326;
}
.ws-find {
  margin-block-end: 16px;
  padding: 1rem 1.25rem;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  box-shadow: var(--app-shadow);
}
.ws-find .table {
  box-shadow: none;
}
.ws-doc fieldset {
  min-inline-size: 0;
}
.ws-serial {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  line-height: 38px;
  font-variant-numeric: tabular-nums;
}
.ws-totals {
  position: sticky;
  inset-block-end: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-block-start: 16px;
  padding: 12px 24px;
  background: var(--app-surface);
  border: 1px solid var(--app-line);
  border-radius: 16px;
  box-shadow: 0 -1px 2px rgba(21, 49, 75, .04), 0 -6px 20px rgba(21, 49, 75, .06);
}
.ws-sums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
}
.ws-sums > div {
  display: flex;
  flex-direction: column;
}
.ws-sums dt {
  color: var(--app-ink-3);
  font-size: 12px;
  font-weight: 400;
}
.ws-sums dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ws-sum-main dd {
  color: var(--app-primary);
  font-size: 20px;
}
.ws-words {
  max-inline-size: 52ch;
  margin: 0;
  margin-inline-start: auto;
  color: var(--app-ink-2);
  font-size: 13px;
  text-align: end;
}

.lb-head, .bp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-block-end: 16px;
}
.lb-keys, .bp-keys {
  margin: 0;
  color: var(--app-ink-3);
  font-size: 12.5px;
}
.lb kbd, .bp kbd {
  padding: 1px 5px;
  border: 1px solid var(--app-input-line);
  border-block-end-width: 2px;
  border-radius: 5px;
  background: var(--app-head);
  color: var(--app-ink-2);
  font: 600 11px/1.5 "IBM Plex Sans", sans-serif;
}
.lb-panel, .lb-top {
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}
.lb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  padding: 14px 18px;
  margin-block-end: 16px;
}
.lb-top-field.lb-open {
  flex: 1 1 220px;
  max-width: 300px;
}
.lb-top-field.lb-name {
  flex: 2 1 220px;
}
.lb-top-field.lb-size {
  flex: 0 0 110px;
}
.lb-top-actions {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
  padding-block-start: 23px;
}
.lb-errors {
  flex-basis: 100%;
}
.lb-body {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}
.lb-panel {
  padding: 16px;
}
.lb-panel-title {
  margin-block-end: 12px;
  font-size: 15px;
  font-weight: 600;
}
.lb-group {
  margin: 16px 0 8px;
  color: var(--app-ink-3);
  font-size: 12px;
  font-weight: 600;
}
.lb-panel-title + .lb-group {
  margin-block-start: 0;
}
.lb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lb-chip {
  margin: 0;
  padding: 5px 10px;
  border: 1px solid var(--app-input-line);
  border-radius: 8px;
  background: var(--app-surface);
  color: var(--app-ink);
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.lb-chip:hover {
  border-color: #c9d6e3;
  background: #f3f6f9;
}
.lb-chip:focus-visible, .lb-upload:focus-within {
  outline: 2px solid var(--app-primary);
  outline-offset: 1px;
}
.lb-ready {
  margin-block-start: 20px;
  padding-block-start: 4px;
  border-block-start: 1px solid var(--app-divider);
}
.lb-ready p, .lb-muted {
  margin: 0 0 10px;
  color: var(--app-ink-3);
  font-size: 12.5px;
}
.lb-canvas {
  padding: 0;
  overflow: hidden;
}
.lb-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border-block-end: 1px solid var(--app-line);
}
.lb-tools button, .lb-seg button {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--app-ink-2);
}
.lb-tools button:hover:not(:disabled), .lb-seg button:hover {
  background: rgba(21, 49, 75, .06);
  color: var(--app-ink);
}
.lb-tools button:disabled {
  color: #b9bec7;
}
.lb-tools button[aria-pressed="true"], .lb-seg button[aria-pressed="true"] {
  background: var(--app-ring);
  color: var(--app-primary);
}
.lb-tools svg, .lb-seg svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lb-sep {
  width: 1px;
  height: 20px;
  margin-inline: 4px;
  background: var(--app-line);
}
.lb-grow {
  flex: 1;
}
.lb-zoom {
  min-width: 44px;
  color: var(--app-ink-2);
  font: 600 12px "IBM Plex Sans", sans-serif;
  text-align: center;
}
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 460px;
  overflow: auto;
  background: #efede7;
}
.lb-sheet {
  position: relative;
  direction: ltr;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(21, 49, 75, .12), 0 8px 24px rgba(21, 49, 75, .1);
  outline: none;
  touch-action: none;
  user-select: none;
}
.lb-sheet.is-grid {
  background-image: linear-gradient(to right, rgba(31, 78, 121, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 78, 121, .07) 1px, transparent 1px);
}
.lb-sheet:focus-visible {
  box-shadow: 0 0 0 3px var(--app-ring), 0 8px 24px rgba(21, 49, 75, .1);
}
.lb-empty {
  position: absolute;
  inset-block-end: 16px;
  margin: 0;
  color: var(--app-ink-3);
  font-size: 13px;
}
.lb-el {
  position: absolute;
  color: #000;
  line-height: 1.16;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: move;
}
.lb-el > :not(.lb-handle) {
  pointer-events: none;
}
.lb-el.lb-text, .lb-el.lb-field, .lb-el.lb-barcode, .lb-el.lb-qr, .lb-el.lb-image {
  overflow: hidden;
}
.lb-el.lb-field:not(.is-selected) {
  background: rgba(31, 78, 121, .06);
}
.lb-el.is-selected {
  overflow: visible;
  outline: 1.5px solid var(--app-primary);
  outline-offset: 1px;
}
.lb-el.lb-frame {
  border: 1px solid #000;
}
.lb-el.lb-line {
  background: #000;
}
.lb-bars svg, .lb-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lb-digits {
  font-family: "IBM Plex Sans", sans-serif;
  text-align: center;
  white-space: nowrap;
  letter-spacing: .04em;
}
.lb-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lb-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--app-primary);
  border-radius: 3px;
  background: #fff;
}
.lb-handle.lb-resize {
  inset-block-end: -7px;
  inset-inline-end: -7px;
  cursor: nwse-resize;
}
.lb-handle.lb-rotate {
  inset-block-start: -20px;
  inset-inline-start: calc(50% - 5px);
  border-radius: 50%;
  cursor: grab;
}
.lb-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-block-start: 1px solid var(--app-line);
  color: var(--app-ink-3);
  font-size: 12px;
}
.lb-side {
  display: grid;
  gap: 16px;
}
.lb-props label {
  display: block;
  color: var(--app-ink-2);
  font-size: 12px;
}
.lb-props label > .form-control, .lb-props label > .form-select {
  margin-block-start: 3px;
}
.lb-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-block-end: 10px;
}
.lb-full {
  margin-block-end: 10px;
}
.lb-props [hidden] {
  display: none !important;
}
.lb-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-block-end: 10px;
  padding: 3px;
  border: 1px solid var(--app-input-line);
  border-radius: 9px;
}
.lb-seg b, .lb-seg i {
  font-family: Georgia, serif;
  font-size: 15px;
}
.lb-props .lb-check {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--app-ink);
}
.lb-live-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-block-end: 10px;
}
.lb-live-head .lb-muted {
  margin: 0;
}
.lb-muted.is-bad {
  color: #8e3326;
}
.lb-live iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: #efede7;
}
@media (max-width: 1199.98px) {
  .lb-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .lb-side {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 767.98px) {
  .lb-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .lb-top-actions {
    padding-block-start: 0;
  }
}
.bp-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.bp-main {
  display: grid;
  gap: 16px;
}
.bp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.bp-cards .bp-card {
  position: relative;
  display: grid;
  align-items: start;
  gap: 2px;
  white-space: normal;
  padding: 10px 12px 12px;
  border: 1px solid var(--app-input-line);
  border-radius: 12px;
  cursor: pointer;
}
.bp-card:hover {
  border-color: #c9d6e3;
}
.bp-card:has(input:checked) {
  border-color: var(--app-primary);
  box-shadow: 0 0 0 3px var(--app-ring);
}
.bp-card:has(input:focus-visible) {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
}
.bp-card input {
  position: absolute;
  opacity: 0;
}
.bp-thumb {
  display: grid;
  place-items: center;
  height: 112px;
  margin-block-end: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: #efede7;
}
.bp-card-name {
  font-weight: 600;
}
.bp-card-size {
  color: var(--app-ink-3);
  font-size: 12px;
  text-align: start;
}
.lp-label {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #000;
  box-shadow: 0 1px 2px rgba(21, 49, 75, .14), 0 4px 12px rgba(21, 49, 75, .08);
  zoom: var(--zoom, .6);
}
.lp-el {
  position: absolute;
  overflow: hidden;
}
.lp-text {
  line-height: 1.16;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lp-barcode svg, .lp-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lp-digits {
  font-family: "IBM Plex Sans", sans-serif;
  text-align: center;
  white-space: nowrap;
  letter-spacing: .04em;
}
.lp-frame {
  border: .3mm solid #000;
  border-radius: 1mm;
}
.lp-line {
  background: #000;
}
.lp-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bp-add {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
}
.bp-error {
  margin: 10px 0 0;
  color: #8e3326;
  font-size: 13px;
}
.bp-list {
  padding: 0;
  overflow: hidden;
}
.bp-list-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px;
}
.bp-list table th {
  background: var(--app-head);
  color: var(--app-ink-2);
  font-size: 12.5px;
  font-weight: 600;
}
.bp-list table th:first-child, .bp-list table td:first-child {
  padding-inline-start: 16px;
}
.bp-list table th:last-child, .bp-list table td:last-child {
  padding-inline-end: 16px;
}
.bp-code {
  color: var(--app-ink-3);
  font-variant-numeric: tabular-nums;
}
.bp-copies {
  width: 120px;
}
.bp-remove {
  color: var(--app-ink-3);
  text-decoration: none;
}
.bp-remove:hover {
  color: #8e3326;
}
.bp-empty {
  padding: 28px 16px !important;
  color: var(--app-ink-3);
  text-align: center;
}
.bp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  padding: 12px 16px;
  border-block-start: 1px solid var(--app-line);
  background: var(--app-head);
}
.bp-actions .lb-muted {
  margin-inline-end: auto;
}
.bp-preview {
  position: sticky;
  inset-block-start: 16px;
}
.bp-preview iframe {
  display: block;
  width: 100%;
  height: 340px;
  margin-block-end: 10px;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: #efede7;
}
@media (max-width: 1199.98px) {
  .bp-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .bp-preview {
    position: static;
  }
}
@media (max-width: 767.98px) {
  .bp-add {
    grid-template-columns: minmax(0, 1fr);
  }
}
.create-card {
  max-width: 760px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .6rem 1rem;
}
.module-grid .form-check {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 52px;
  margin: 0;
  padding: .6rem .9rem;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  cursor: pointer;
}
.module-grid .form-check-input {
  float: none;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1.5rem;
  margin: 0;
  cursor: pointer;
}
.module-grid .form-check-label {
  flex: 1;
  font-size: 14.5px;
  cursor: pointer;
}
.toasts {
  position: fixed;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  z-index: 1080;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  overflow: hidden;
  padding: 12px 12px 14px;
  border: 1px solid var(--app-line);
  border-radius: 12px;
  background: var(--app-surface);
  box-shadow: 0 1px 2px rgba(21, 49, 75, .06), 0 12px 32px rgba(21, 49, 75, .14);
  pointer-events: auto;
  animation: toast-in .22s ease-out;
}
.toast-card b {
  display: block;
  color: var(--app-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.toast-body span {
  display: block;
  color: var(--app-ink-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.toast-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.toast-icon svg, .toast-close svg, .confirm-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--app-ink-3);
}
.toast-close:hover {
  background: var(--app-head);
}
.toast-time {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 3px;
  background: currentColor;
  opacity: .45;
  transform-origin: right;
  animation: toast-time linear forwards;
}
[dir="ltr"] .toast-time {
  transform-origin: left;
}
.toast-card.success {
  color: #285c4a;
}
.toast-card.success .toast-icon {
  background: #e7f0eb;
}
.toast-card.error {
  color: #8e3326;
}
.toast-card.error .toast-icon {
  background: #f6e6e3;
}
.toast-card.warning {
  color: #7a4f0e;
}
.toast-card.warning .toast-icon {
  background: #f8eedd;
}
.toast-card.info {
  color: var(--app-primary);
}
.toast-card.info .toast-icon {
  background: #eef3f8;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes toast-time {
  to {
    transform: scaleX(0);
  }
}
.confirm {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--app-surface);
  color: var(--app-ink);
  box-shadow: 0 1px 2px rgba(21, 49, 75, .08), 0 20px 48px rgba(21, 49, 75, .22);
}
.confirm[open] {
  animation: confirm-in .18s ease-out;
}
.confirm::backdrop {
  background: rgba(21, 33, 48, .38);
}
.confirm header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 0;
}
.confirm-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef3f8;
  color: var(--app-primary);
}
.confirm.danger .confirm-icon {
  background: #f6e6e3;
  color: #8e3326;
}
.confirm h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.confirm-text {
  margin: 4px 0 0;
  color: var(--app-ink-2);
  font-size: 13.5px;
}
.confirm-text:empty {
  display: none;
}
.confirm-details {
  margin: 14px 20px 0;
  border: 1px solid var(--app-line);
  border-radius: 10px;
  background: var(--app-head);
}
.confirm-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
}
.confirm-details div + div {
  border-block-start: 1px solid var(--app-line);
}
.confirm-details dt {
  color: var(--app-ink-3);
  font-weight: 400;
}
.confirm-details dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.confirm footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px 18px;
}
@keyframes confirm-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast-card, .confirm[open] {
    animation: none;
  }
}
.fp-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px 10px;
  border-block-start: 1px solid var(--app-line);
}
.fp-actions button {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--app-input-line);
  border-radius: 8px;
  background: var(--app-surface);
  color: var(--app-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.fp-actions button[data-fp="today"] {
  border-color: var(--app-primary);
  color: var(--app-primary);
}
.fp-actions button:hover {
  background: var(--app-head);
}
.log-tabs {
  display: flex;
  gap: 4px;
  margin-block-end: 14px;
  border-block-end: 1px solid var(--app-line);
}
.log-tabs a {
  margin-block-end: -1px;
  padding: 8px 14px;
  border-block-end: 2px solid transparent;
  color: var(--app-ink-2);
  font-weight: 500;
}
.log-tabs a[aria-current="page"] {
  border-color: var(--app-primary);
  color: var(--app-primary);
}
.log-tabs a:hover {
  text-decoration: none;
  color: var(--app-ink);
}
.log-card {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
}
.log-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px 16px;
}
.log-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef3f8;
  color: var(--app-primary);
}
.log-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.log-lead {
  margin: 4px 0 0;
  color: var(--app-ink-3);
}
.log-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-block: 1px solid var(--app-line);
}
.log-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px;
}
.log-stats div + div {
  border-inline-start: 1px solid var(--app-line);
}
.log-stats b {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.log-stats span {
  color: var(--app-ink-3);
  font-size: 12.5px;
}
.log-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--app-head);
  border-block-end: 1px solid var(--app-line);
}
.log-bar .form-select, .log-bar .form-control {
  width: auto;
  min-width: 140px;
  min-height: 34px;
  font-size: 13px;
}
.log-periods {
  display: inline-flex;
  gap: 4px;
  margin-inline-end: auto;
}
.log-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--app-input-line);
  border-radius: 999px;
  background: var(--app-surface);
  color: var(--app-ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.log-chip.on {
  border-color: var(--app-primary);
  background: #eef3f8;
  color: var(--app-primary);
  font-weight: 600;
}
.log-dates {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--app-ink-3);
  font-size: 13px;
}
.log-dates .form-control {
  min-width: 120px;
}
.log-table-wrap {
  overflow-x: auto;
}
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.log-table th {
  padding: 10px 14px;
  border-block-end: 1px solid var(--app-line);
  background: var(--app-surface);
  color: var(--app-ink-3);
  font-size: 12.5px;
  font-weight: 500;
  text-align: start;
  white-space: nowrap;
}
.log-table td {
  padding: 12px 14px;
  border-block-end: 1px solid var(--app-divider);
  vertical-align: top;
}
.log-table tr.create td {
  background: #fbfdfb;
}
.log-n {
  width: 48px;
  color: var(--app-ink-3);
}
.log-what {
  margin-inline-end: 6px;
  color: var(--app-ink-2);
  font-size: 12.5px;
}
.log-doc {
  margin-block-start: 4px;
  font-weight: 600;
}
.log-changes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.log-changes li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-block: 4px;
}
.log-changes li + li {
  border-block-start: 1px dashed var(--app-line);
}
.log-field {
  min-width: 120px;
  font-size: 12.5px;
  font-weight: 600;
}
.log-val {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  padding: 1px 8px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-head);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-val.before {
  border-color: #edd0d0;
  background: #fdf1f1;
  color: #8e3326;
  text-decoration: line-through;
  text-decoration-color: #d8a6a2;
}
.log-val.after {
  border-color: #c6e3d0;
  background: #eef8f1;
  color: #285c4a;
  font-weight: 600;
}
.log-arrow, .log-dim, .log-more {
  color: var(--app-ink-3);
  font-size: 12px;
}
.log-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--app-ink-3);
  font-size: 13px;
}
.log-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--app-ink-3);
}
.log-empty b {
  display: block;
  color: var(--app-ink);
  font-size: 15px;
}
