:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f3f3f3;
  color: #20242a;
  --primary-nav-width: 96px;
}

* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

input[type="checkbox"] {
  accent-color: #0b72c9;
  height: 16px;
  min-height: 0;
  width: 16px;
}

body.auth-pending .app-shell,
body.auth-locked .app-shell {
  display: none;
}

.auth-lock {
  align-items: center;
  background:
    linear-gradient(135deg, rgb(15 108 153 / 78%), rgb(32 36 42 / 72%)),
    #20242a;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 32px;
  position: fixed;
  z-index: 20000;
}

.auth-card {
  background: transparent;
  display: grid;
  gap: 18px;
  max-width: 520px;
  padding: 28px;
  width: min(520px, calc(100vw - 64px));
}

.auth-card header {
  display: grid;
  gap: 8px;
}

.auth-card header span {
  color: #ffffff;
  display: block;
  font-size: 28px;
  font-weight: 600;
  text-align: center;
}

.auth-card p {
  color: #555555;
  margin: 0;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form input {
  border: 0;
  box-shadow: none;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
}

.auth-error {
  color: #b3261e;
}

.auth-error {
  margin: 0;
}

.app-shell {
  background: #ffffff;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.brandbar {
  align-items: center;
  background: #f5f5f5;
  border-bottom: 1px solid #d8d8d8;
  box-shadow: 0 1px 5px rgb(0 0 0 / 14%);
  display: flex;
  height: 68px;
  justify-content: space-between;
  padding: 0 18px 0 68px;
}

.brandbar h1 {
  color: #707070;
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0;
  margin: 0;
}

.brandbar-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.app-frame {
  display: grid;
  grid-template-columns: var(--primary-nav-width) 292px minmax(0, 1fr);
  height: calc(100vh - 68px);
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 160ms ease;
}

body.secondary-nav-collapsed .app-frame {
  grid-template-columns: var(--primary-nav-width) 38px minmax(0, 1fr);
}

.primary-nav {
  background: #0f6c99;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.primary-nav-item {
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  color: #dceff8;
  display: grid;
  font-size: 14px;
  gap: 6px;
  justify-items: center;
  min-height: 112px;
  padding: 13px 6px 12px;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 rgb(0 0 0 / 34%);
}

.primary-nav-item.active,
.primary-nav-item:hover {
  background: #095d87;
  color: #ffffff;
}

.nav-icon {
  --nav-icon-url: url("/assets/icons/backoffice-products.svg");
  background: currentColor;
  display: block;
  height: 44px;
  -webkit-mask: var(--nav-icon-url) center / contain no-repeat;
  mask: var(--nav-icon-url) center / contain no-repeat;
  opacity: .9;
  width: 44px;
}

.nav-icon-store {
  --nav-icon-url: url("/assets/icons/backoffice-home.svg");
}

.nav-icon-doc {
  --nav-icon-url: url("/assets/icons/backoffice-documents.svg");
}

.nav-icon-people {
  --nav-icon-url: url("/assets/icons/backoffice-employees.svg");
}

.nav-icon-client {
  --nav-icon-url: url("/assets/icons/backoffice-clients.svg");
}

.nav-icon-box {
  --nav-icon-url: url("/assets/icons/backoffice-products.svg");
}

.nav-icon-menu {
  --nav-icon-url: url("/assets/icons/backoffice-menu.svg");
}

.nav-icon-register {
  --nav-icon-url: url("/assets/icons/backoffice-registers.svg");
}

.nav-icon-marketing {
  --nav-icon-url: url("/assets/icons/backoffice-marketing.svg");
}

.nav-icon-finance {
  background: none;
  mask: none;
  -webkit-mask: none;
  position: relative;
}

.nav-icon-finance::before {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "₽";
  display: inline-flex;
  font-size: 18px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.nav-icon-chart {
  --nav-icon-url: url("/assets/icons/backoffice-reports.svg");
}

.nav-icon-admin {
  --nav-icon-url: url("/assets/icons/backoffice-admin.svg");
}

.secondary-nav {
  background: #eeeeee;
  border-right: 1px solid #dddddd;
  color: #666666;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 36px;
  position: relative;
}

.workspace-panel[hidden] {
  display: none;
}

.registers-list-panel {
  overflow: hidden;
}

.registers-list-panel .panel-header {
  display: none;
}

.registers-list-panel table {
  width: 100%;
}

.registers-workspace-row > td {
  padding: 0;
}

.cash-shifts-page {
  background: #ffffff;
  color: #20242a;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 137px);
  min-height: 0;
  overflow: hidden;
}

.cash-shifts-title-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr) auto;
  min-height: 30px;
  padding: 3px 6px;
}

.content-header-registers {
  margin-bottom: 8px;
}

.registers-header-controls {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  margin-bottom: 12px;
  min-width: 0;
}

.cash-shifts-filters {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 0;
}

.cash-shifts-filters label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.cash-shifts-filters span {
  font-size: 12px;
  white-space: nowrap;
}

.cash-shifts-filters input,
.cash-shifts-filters select {
  border: 1px solid #b9b9b9;
  font: inherit;
  font-size: 12px;
  height: 24px;
  min-width: 118px;
  padding: 1px 6px;
}

.cash-shifts-register-select {
  min-width: 0;
  width: 100%;
}

.cash-shifts-action-button {
  justify-self: end;
  min-width: 223px;
}

.cash-shifts-title-row .check-row {
  justify-self: end;
}

.cash-shifts-table-wrap {
  border-bottom: 1px solid #bfbfbf;
  border-top: 1px solid #c8c8c8;
  min-height: 0;
  overflow: auto;
}

.cash-shifts-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: max-content;
}

.cash-shifts-table th,
.cash-shifts-table td {
  border-right: 1px solid #d4d4d4;
  height: 22px;
  line-height: 22px;
  overflow: hidden;
  padding: 0 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-shifts-table tbody tr {
  height: 22px;
  max-height: 22px;
}

.cash-shifts-table tbody td {
  height: 22px;
  line-height: 22px;
  max-height: 22px;
  padding: 0 4px;
}

.cash-shifts-table th {
  background: #f5f5f5;
  border-bottom: 1px solid #c8c8c8;
  color: #283238;
  font-weight: 400;
  position: sticky;
  text-align: left;
  top: 0;
  z-index: 1;
}

.cash-shifts-table th > span {
  display: block;
  overflow: hidden;
  padding-right: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-shifts-column-resize-handle {
  cursor: col-resize;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
}

.cash-shifts-column-resize-handle:hover {
  background: rgb(47 49 50 / 12%);
}

.cash-shifts-column-resizing {
  cursor: col-resize;
  user-select: none;
}

.cash-shifts-column-resizing * {
  cursor: col-resize !important;
}

.cash-shifts-table tbody tr:nth-child(odd) {
  background: #f7f7f7;
}

.cash-shifts-table tbody tr:hover {
  background: #dceaf8;
}

.cash-shifts-table tbody tr.cash-shifts-row-open td {
  color: #0000ff;
}

.cash-shifts-table tbody tr.cash-shifts-row-pending td {
  color: #008000;
}

.cash-shifts-table tbody tr.cash-shifts-row-accepted td {
  color: #202020;
}

.cash-shifts-table tbody tr.cash-shifts-row-check td {
  color: #ff0000;
}

.cash-shifts-check-cell {
  text-align: center;
  width: 30px;
}

.cash-shifts-table th.cash-shifts-check-cell > span {
  display: grid;
  justify-items: center;
  padding-right: 7px;
  place-items: center;
}

.cash-shifts-table td.cash-shifts-check-cell {
  padding-right: 7px;
}

.cash-shifts-check-cell input {
  height: 15px;
  margin: 0;
  min-height: 15px;
  padding: 0;
  vertical-align: middle;
  width: 15px;
}

th.cash-shifts-check-cell.sorted-asc::after,
th.cash-shifts-check-cell.sorted-desc::after {
  content: none;
  display: none;
}

.cash-shifts-money {
  text-align: right;
}

.cash-shifts-empty {
  color: #6a6f73;
  text-align: center;
}

.cash-shifts-summary {
  border: 1px solid #202020;
  display: grid;
  font-size: 16px;
  gap: 2px;
  min-height: 76px;
  padding: 3px 4px 6px;
}

.cash-shifts-summary p {
  font-size: 15px;
  margin: 0;
}

.cash-shifts-blue {
  color: #0000ff;
}

.cash-shifts-green {
  color: #008000;
}

.cash-shifts-red {
  color: #ff0000;
}

.secondary-nav-pin,
.secondary-nav-tab {
  align-items: center;
  background: #ffffff;
  border: 1px solid #c8c8c8;
  color: #2d6c9f;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  min-height: 28px;
}

.secondary-nav-pin {
  border-radius: 3px;
  line-height: 1;
  min-width: 28px;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 7px;
  z-index: 2;
}

.secondary-nav-tab {
  border-radius: 0 4px 4px 0;
  display: none;
  font-size: 12px;
  left: 0;
  padding: 5px 6px;
  position: absolute;
  top: 8px;
  writing-mode: vertical-rl;
  z-index: 3;
}

.secondary-nav-pin:hover,
.secondary-nav-tab:hover {
  background: #f7fbff;
  border-color: #0789da;
}

.secondary-nav-pin::before {
  background: #2d6c9f;
  content: "";
  display: block;
  height: 20px;
  -webkit-mask: url("./assets/icons/secondary-nav-pin.svg") center / contain no-repeat;
  mask: url("./assets/icons/secondary-nav-pin.svg") center / contain no-repeat;
  width: 20px;
}

body.secondary-nav-collapsed .secondary-nav {
  padding-top: 0;
}

body.secondary-nav-collapsed .secondary-nav-pin,
body.secondary-nav-collapsed .workspace-panel {
  display: none;
}

body.secondary-nav-collapsed .secondary-nav-tab {
  display: inline-flex;
}

.section-title {
  color: #333333;
  font-size: 18px;
  margin: 0 0 18px;
  padding: 0 36px;
}

.tree-section {
  font-size: 17px;
  margin-bottom: 8px;
}

.tree-section:not(.open) .tree-link,
.tree-section:not(.open) .language-details,
.tree-section:not(.open) #admin-hierarchy-tree {
  display: none;
}

.tree-heading {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr) 22px 22px;
  min-height: 34px;
  padding: 5px 16px 5px 12px;
}

.tree-section.open .tree-heading,
.tree-heading:hover {
  background: #dddddd;
}

.tree-heading.active,
.tree-link.active {
  background: #d9d9d9;
  color: #303030;
}

.tree-heading strong {
  color: #666666;
  font-weight: 600;
}

.tree-heading-link {
  background: transparent;
  border: 0;
  color: #666666;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0;
  text-align: left;
}

.tree-heading-link.active,
.tree-heading-link:hover {
  color: #303030;
}

.tree-caret {
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #666666;
  cursor: pointer;
  display: block;
  height: 0;
  transition: transform 140ms ease;
  width: 0;
}

.tree-section:not(.open) .tree-caret {
  transform: rotate(-90deg);
}

.tree-caret:focus-visible {
  outline: 2px solid #0789da;
  outline-offset: 4px;
}

.tree-action {
  background: transparent;
  border: 0;
  color: #2d6c9f;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.tree-link {
  color: #676767;
  display: block;
  font-size: 17px;
  padding: 5px 20px 5px 64px;
  text-decoration: none;
}

.tree-link.active,
.tree-link:hover {
  color: #303030;
}

.admin-nav-node {
  border-left: 3px solid transparent;
  color: #565656;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 8px 20px 8px 36px;
  position: relative;
}

.admin-nav-node[draggable="true"] {
  cursor: grab;
}

.admin-nav-node[draggable="true"]:active {
  cursor: grabbing;
}

.admin-nav-node strong {
  color: #333333;
  font-size: 15px;
  font-weight: 600;
}

.admin-nav-node span {
  color: #7c7c7c;
  font-size: 13px;
}

.admin-nav-node.active {
  background: #dddddd;
  border-left-color: #0789da;
}

.admin-nav-children .admin-nav-node {
  padding-left: 54px;
}

.admin-nav-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: #0789da;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
}

.language-details {
  padding: 4px 20px 8px 64px;
}

.language-details summary {
  cursor: pointer;
  font-size: 15px;
}

.language-control {
  color: #606060;
  display: grid;
  font-size: 13px;
  gap: 5px;
  margin-top: 8px;
}

.content {
  background: #ffffff;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 48px 46px;
  --content-x-padding: 46px;
  --content-y-padding: 48px;
}

.content-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.content-header h2 {
  color: #20242a;
  font-size: 27px;
  font-weight: 300;
  letter-spacing: 0;
  margin: 0;
}

.status-strip {
  align-items: center;
  display: flex;
  gap: 10px;
}

.auth-logout-button {
  min-height: 30px;
  padding: 4px 12px;
}

.brandbar .auth-logout-button {
  flex: 0 0 auto;
}

.catalog-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
}

.catalog-toolbar[hidden] {
  display: none;
}

.catalog-action {
  font-size: 13px;
  min-height: 32px;
  padding: 5px 12px;
  white-space: nowrap;
}

.list-panel {
  background: #ffffff;
}

.egais-settings-list-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 118px);
  min-height: 0;
  overflow: hidden;
}

.egais-settings-list-panel > .table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.panel-header {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dddddd;
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: space-between;
  min-height: 50px;
  padding: 10px 0;
  position: sticky;
  top: calc(var(--content-y-padding) * -1);
  transition:
    margin 180ms ease,
    padding 180ms ease,
    box-shadow 180ms ease;
  z-index: 12;
}

.panel-header.search-stuck {
  box-shadow: 0 5px 12px rgb(0 0 0 / 8%);
  margin-left: calc(var(--content-x-padding) * -1);
  margin-right: calc(var(--content-x-padding) * -1);
  margin-top: calc(var(--content-y-padding) * -1);
  padding-left: var(--content-x-padding);
  padding-right: var(--content-x-padding);
  padding-top: 0;
}

.list-meta {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-width: max-content;
}

.muted {
  color: #8a8a8a;
  font-size: 14px;
}

.page-search {
  display: block;
  flex: 1 1 auto;
  max-width: none;
  min-width: 240px;
  transition:
    flex-basis 180ms ease,
    max-width 180ms ease,
    width 180ms ease;
  width: auto;
}

.panel-header.search-stuck .page-search {
  flex: 1 1 auto;
  max-width: none;
  width: auto;
}

.invoice-list-panel .panel-header {
  flex-wrap: wrap;
}

.supplier-list-panel .panel-header {
  align-items: center;
  flex-wrap: wrap;
}

.supplier-list-panel .list-meta {
  order: 0;
}

.supplier-list-panel .workspace-actions {
  justify-content: flex-end;
  margin-left: auto;
  order: 1;
}

.supplier-list-panel .page-search {
  flex: 1 0 100%;
  min-width: 0;
  order: 2;
  width: 100%;
}

.price-order-list-panel .panel-header {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.price-order-list-panel .list-meta {
  display: none;
}

.price-order-list-panel .workspace-actions {
  flex-basis: 100%;
  justify-content: flex-end;
  margin-left: 0;
  order: 1;
}

.price-order-list-panel .page-search {
  flex-basis: 100%;
  margin-left: auto;
  max-width: 360px;
  order: 2;
  width: 360px;
}

.invoice-list-panel .page-search {
  max-width: 360px;
  width: 360px;
}

.inventory-count-list-panel .panel-header {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: flex-start;
}

.inventory-count-list-panel .list-meta {
  flex: 0 0 auto;
  order: 0;
}

.inventory-count-list-panel .workspace-actions {
  flex: 0 0 auto;
  justify-content: flex-start;
  order: 1;
}

.inventory-count-list-panel .page-search {
  flex: 1 1 320px;
  max-width: none;
  order: 2;
  width: 100%;
}

.inventory-count-filter-row {
  align-items: center;
  display: flex;
  flex-basis: 100%;
  justify-content: flex-end;
  order: 3;
}

.invoice-search-row {
  align-items: center;
  display: flex;
  flex-basis: 100%;
  gap: 16px;
  justify-content: flex-end;
  order: 3;
}

.workspace-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.workspace-actions[hidden] {
  display: none;
}

.period-control {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.period-control span {
  color: #777777;
  font-size: 13px;
}

.period-control input,
.period-control select {
  font-size: 13px;
  min-height: 32px;
}

.period-control input {
  width: 132px;
}

.period-control select {
  min-width: 180px;
  width: auto;
}

.page-search-control {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px 28px minmax(42px, auto);
  min-height: 34px;
  overflow: hidden;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
  width: 100%;
}

.page-search-control:focus-within {
  border-color: #0789da;
  box-shadow: 0 0 0 2px rgba(7, 137, 218, 0.14);
}

.page-search input {
  background: transparent;
  border: 0;
  color: #1f252d;
  font: inherit;
  font-size: 14px;
  min-height: 34px;
  min-width: 0;
  padding: 6px 8px 6px 10px;
  width: 100%;
}

.page-search input:focus {
  outline: none;
}

.page-search input::-webkit-search-cancel-button {
  appearance: none;
}

.page-search-clear,
.page-search-nav {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5f6b76;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 28px;
}

.page-search-clear {
  font-size: 18px;
  line-height: 1;
}

.page-search-clear:hover,
.page-search-nav:hover:not(:disabled) {
  background: #edf4fb;
  color: #0789da;
}

.page-search-clear:focus-visible,
.page-search-nav:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(7, 137, 218, 0.45);
  outline: none;
}

.page-search-nav:disabled {
  color: #c0c6cc;
  cursor: default;
}

.page-search-count {
  color: #777777;
  font-size: 12px;
  padding: 0 8px 0 4px;
  text-align: right;
  white-space: nowrap;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
  width: 100%;
}

.catalog-list-table:has(.catalog-name-col) {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.catalog-list-table:has(.catalog-name-col) .catalog-name-col {
  width: auto;
}

.catalog-list-table:has(.catalog-name-col) .catalog-sku-col {
  width: 150px;
}

.catalog-list-table:has(.catalog-name-col) .catalog-price-col,
.catalog-list-table:has(.catalog-name-col) .catalog-stock-col {
  width: 120px;
}

.catalog-list-table:has(.catalog-name-col) .select-col {
  width: 42px;
}

.catalog-list-table:has(.catalog-name-col) .catalog-drag-col {
  width: 42px;
}

.catalog-list-table th,
.catalog-list-table td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 24px;
  line-height: 1.15;
  padding: 2px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

.catalog-list-table th:last-child,
.catalog-list-table td:last-child {
  border-right: 0;
}

.catalog-list-table tbody tr:nth-child(odd):not(.active):not(.selected):not(:hover) td {
  background: #ffffff;
}

.catalog-list-table tbody tr:nth-child(even):not(.active):not(.selected):not(:hover) td {
  background: #f7f7f7;
}

.catalog-list-table .group-row td {
  padding: 2px 5px;
}

.catalog-list-table .catalog-tree-label,
.catalog-list-table .catalog-tree-product {
  gap: 1px;
  line-height: 1.15;
  min-height: 0;
}

.catalog-list-table .catalog-tree-product strong,
.catalog-list-table .catalog-tree-product .muted {
  line-height: 1.15;
}

th,
td {
  border-bottom: 1px solid #dddddd;
  padding: 13px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #777777;
  font-size: 13px;
  font-weight: 400;
}

th:not(.select-col, .line-delete-col) {
  cursor: pointer;
}

th.sorted-asc,
th.sorted-desc {
  color: #222222;
  padding-right: 30px;
  position: relative;
}

th.sorted-asc::after,
th.sorted-desc::after {
  color: #777777;
  display: block;
  font-size: 11px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.invoice-document-list-table th.sorted-asc::after,
.invoice-document-list-table th.sorted-desc::after,
.inventory-lines-table th.sorted-asc::after,
.inventory-lines-table th.sorted-desc::after,
.movement-table th.sorted-asc::after,
.movement-table th.sorted-desc::after {
  right: 24px;
}

th.sorted-asc::after {
  content: "\25B2";
}

th.sorted-desc::after {
  content: "\25BC";
}

tr.product-row {
  cursor: pointer;
}

tr.catalog-row-dragging {
  opacity: 0.48;
}

.catalog-drag-active {
  cursor: grabbing;
  user-select: none;
}

.catalog-drag-ghost {
  background: #ffffff;
  border: 1px solid #0789da;
  box-shadow: 0 10px 24px rgb(0 0 0 / 18%);
  color: #222222;
  font-size: 13px;
  left: 0;
  line-height: 1.35;
  max-width: 520px;
  overflow: hidden;
  padding: 8px 10px;
  pointer-events: none;
  position: fixed;
  text-overflow: ellipsis;
  top: 0;
  white-space: nowrap;
  z-index: 80;
}

tr.catalog-drop-before td {
  box-shadow: inset 0 3px 0 #0789da;
}

tr.catalog-drop-after td {
  box-shadow: inset 0 -3px 0 #0789da;
}

tr.catalog-drop-inside td {
  box-shadow: inset 0 0 0 2px #0789da;
}

tr.product-row:hover,
tr.group-row:hover td,
tr.group-row.active td,
tr.group-row.selected td,
tr.editable-row:hover,
tr.editable-row.active,
tr.editable-row.selected {
  background: #f0f5fa;
}

tr.product-row:hover {
  background: #f0f5fa;
}

tr.product-row.active,
tr.product-row.active td {
  background: #dceeff;
}

tr.product-row.selected {
  background: #e9f4ff;
}

tr.product-row.selected td {
  background: #e9f4ff;
}

tr.product-row.search-match {
  background: #fffdf1;
}

tr.group-row.search-match td {
  background: #fff6d8;
}

tr.product-row.search-current {
  background: #e7f3ff;
  box-shadow: inset 3px 0 0 #0789da;
}

tr.group-row.search-current td {
  background: #e7f3ff;
  box-shadow: inset 3px 0 0 #0789da;
}

.select-col {
  text-align: center;
  width: 34px;
}

.select-col input {
  margin: 0;
}

.catalog-list-table:has(.catalog-name-col) .select-col input[type="checkbox"] {
  box-shadow: none;
  height: 16px;
  min-height: 0;
  width: 16px;
}

th.select-col input {
  cursor: pointer;
}

tr.editable-row input,
tr.editable-row select {
  font-size: 13px;
  min-height: 32px;
}

tr.editable-row input[type="radio"] {
  box-shadow: none;
  min-height: auto;
  width: auto;
}

.invoice-row-draft td {
  color: #0b66b2;
}

.invoice-row-unpaid td {
  background: #fff1f1;
}

.invoice-row-deleted td {
  color: #999999;
  text-decoration: line-through;
}

.invoice-row-negative-stock td,
.invoice-row-negative-stock strong {
  color: #c62828;
}

.invoice-document-list-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.invoice-document-list-table th,
.invoice-document-list-table td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 26px;
  line-height: 1.15;
  padding: 3px 6px;
  vertical-align: middle;
}

.invoice-document-list-table th:last-child,
.invoice-document-list-table td:last-child {
  border-right: 0;
}

.invoice-document-list-table th {
  background: #f7f7f7;
  color: #4d4d4d;
  font-weight: 500;
  height: 38px;
  line-height: 1.2;
  overflow: hidden;
  position: sticky;
  text-overflow: ellipsis;
  top: 0;
  white-space: normal;
  z-index: 1;
}

.invoice-document-list-table tbody tr:nth-child(odd):not(.invoice-filter-row) td {
  background: #f5f5f5;
}

.invoice-document-list-table tbody tr:nth-child(even):not(.invoice-filter-row) td {
  background: #ffffff;
}

.invoice-document-list-table .invoice-number-col,
.invoice-document-list-table .invoice-number-cell {
  width: 110px;
}

.invoice-document-list-table .invoice-date-col,
.invoice-document-list-table .invoice-date-cell {
  width: 145px;
}

.invoice-document-list-table .invoice-supplier-col,
.invoice-document-list-table .invoice-supplier-cell {
  width: 190px;
}

.invoice-document-list-table .invoice-amount-col,
.invoice-document-list-table .invoice-amount-cell {
  text-align: right;
  width: 130px;
}

.invoice-document-list-table .invoice-paid-col,
.invoice-document-list-table .invoice-paid-cell {
  text-align: center;
  width: 82px;
}

.invoice-document-list-table .invoice-info-col,
.invoice-document-list-table .invoice-info-cell {
  min-width: 0;
}

.invoice-document-list-table .invoice-info-cell,
.invoice-document-list-table .invoice-supplier-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-count-list-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.inventory-count-list-table th,
.inventory-count-list-table td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 26px;
  line-height: 1.15;
  overflow: hidden;
  padding: 3px 6px;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.inventory-count-list-table th:last-child,
.inventory-count-list-table td:last-child {
  border-right: 0;
}

.inventory-count-list-table th {
  background: #f7f7f7;
  color: #4d4d4d;
  font-weight: 500;
  height: 34px;
  line-height: 1.2;
  position: sticky;
  top: 0;
  z-index: 1;
}

.inventory-count-list-table tbody tr:nth-child(odd):not(.inventory-count-zones-row):not(.inventory-count-detail-row) td {
  background: #f5f5f5;
}

.inventory-count-list-table tbody tr:nth-child(even):not(.inventory-count-zones-row):not(.inventory-count-detail-row) td {
  background: #ffffff;
}

.inventory-count-list-table .inventory-count-number-col {
  width: 90px;
}

.inventory-count-list-table .inventory-count-zones-row td,
.inventory-count-list-table .inventory-count-detail-row td {
  background: #ffffff;
  height: auto;
  overflow: visible;
  padding: 6px;
  white-space: normal;
}

.invoice-number-stack {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.1;
}

.invoice-status-arrow {
  color: #a0a0a0;
  display: inline-flex;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
  height: 16px;
  line-height: 0;
  width: 28px;
}

.invoice-status-arrow-icon {
  display: block;
  height: 16px;
  width: 28px;
}

.invoice-status-arrow-shadow {
  fill: rgba(0, 0, 0, 0.22);
  transform: translate(1px, 1px);
}

.invoice-status-arrow-face {
  fill: currentColor;
}

.invoice-status-arrow-highlight {
  fill: none;
  opacity: 0.38;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-width: 1.2;
}

.invoice-status-arrow.receipt.posted {
  color: #159447;
}

.invoice-status-arrow.expense.posted {
  color: #1f77c7;
}

.invoice-status-arrow.draft {
  color: #9a9a9a;
}

.invoice-payment-icon {
  color: #9a9a9a;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  vertical-align: middle;
  width: 28px;
}

.invoice-payment-icon-svg {
  display: block;
  height: 22px;
  width: 22px;
}

.invoice-payment-icon-shadow {
  fill: rgba(0, 0, 0, 0.2);
  transform: translate(1px, 1px);
}

.invoice-payment-icon-face {
  fill: currentColor;
}

.invoice-payment-icon-mark {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.invoice-payment-icon.paid {
  color: #159447;
}

.invoice-payment-icon.unpaid {
  color: #9a9a9a;
}

.invoice-payment-icon.overdue {
  color: #d63b32;
}

.invoice-filter-row td {
  background: #f8fafc;
  padding: 3px 6px;
}

.invoice-filter-row input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 22px;
  padding: 2px 0;
  width: 100%;
}

.invoice-filter-row input:focus {
  background: #ffffff;
  box-shadow: inset 0 -1px 0 #8bb7df;
  outline: 0;
}

.invoice-deleted-filter {
  white-space: nowrap;
}

.group-row td {
  background: #eeeeee;
  color: #666666;
  cursor: pointer;
  font-weight: 600;
  overflow: hidden;
  padding: 9px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-row.catalog-group-depth-1 td {
  background: #eeeeee;
}

.group-row.catalog-group-depth-2 td,
.group-row.catalog-group-depth-3 td {
  background: #eeeeee;
}

.group-row.catalog-custom-color td {
  background: var(--catalog-row-color, #eeeeee);
}

.catalog-tree-label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  padding-left: calc(var(--catalog-tree-depth, 0) * 18px);
  width: 100%;
}

.catalog-tree-product {
  display: inline-grid;
  gap: 2px;
  font-weight: 400;
  max-width: 100%;
  min-width: 0;
}

.catalog-name-cell,
.catalog-sku-cell,
.catalog-price-cell,
.catalog-stock-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-drag-cell {
  padding-left: 4px;
  padding-right: 12px;
  text-align: right;
  width: 42px;
}

.catalog-drag-handle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6f7478;
  cursor: grab;
  display: inline-flex;
  font-size: 21px;
  font-weight: 600;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  padding: 0;
  width: 28px;
}

.catalog-drag-handle:hover {
  color: #20242a;
}

.catalog-drag-handle:active,
.catalog-drag-active .catalog-drag-handle {
  cursor: grabbing;
}

.catalog-tree-product strong,
.catalog-tree-product .muted {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-name-header {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.catalog-tree-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #58626d;
  cursor: pointer;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.catalog-tree-toggle::before {
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  content: "";
  display: block;
}

.catalog-tree-toggle.expanded::before {
  transform: rotate(90deg);
}

.catalog-tree-toggle:disabled {
  cursor: default;
  opacity: 0.25;
}

.catalog-tree-toggle-all {
  flex: 0 0 auto;
}

.context-menu-root[hidden] {
  display: none;
}

.context-menu {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
  display: grid;
  min-width: 220px;
  padding: 6px;
  position: fixed;
  z-index: 46;
}

.context-menu button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
}

.context-menu button:hover {
  background: #eef5fb;
}

.context-menu button:disabled {
  color: #9a9a9a;
  cursor: default;
}

.context-menu button:disabled:hover {
  background: transparent;
}

.context-check {
  display: inline-block;
  margin-right: 6px;
  text-align: center;
  width: 14px;
}

.context-menu-separator {
  background: #dfe5eb;
  height: 1px;
  margin: 4px 0;
}

.movement-modal-root {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 2000 !important;
}

.movement-modal-root .movement-backdrop {
  pointer-events: auto;
  z-index: 2001 !important;
}

.movement-dialog {
  height: min(860px, calc(100vh - 28px));
  max-width: none;
  pointer-events: auto;
  width: min(1580px, calc(100vw - 18px));
  z-index: 2002 !important;
}

.inventory-modal-root-overlay .modal-backdrop {
  z-index: 2010 !important;
}

.inventory-modal-root-overlay .inventory-document-dialog {
  z-index: 2011 !important;
}

.inventory-modal-root-over-egais .modal-backdrop {
  z-index: 12060 !important;
}

.inventory-modal-root-over-egais .inventory-document-dialog {
  z-index: 12061 !important;
}

.inventory-modal-root-over-egais [data-inventory-close-choice-dialog] .nested-backdrop {
  z-index: 12070 !important;
}

.inventory-modal-root-over-egais [data-inventory-close-choice-dialog] .nested-confirm-dialog {
  z-index: 12071 !important;
}

.movement-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px 10px;
}

.movement-dialog-header {
  min-height: 52px;
}

.movement-toolbar {
  display: grid;
  gap: 6px;
}

.movement-toolbar-row {
  align-items: end;
  display: grid;
  gap: 6px 12px;
}

.movement-toolbar-main {
  grid-template-columns: minmax(360px, 1fr) 240px 200px 220px;
}

.movement-toolbar-period {
  grid-template-columns: 240px 126px 126px 150px 150px minmax(0, 1fr);
  justify-content: start;
}

.movement-toolbar label {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr);
}

.movement-toolbar label > span:first-child {
  color: #555555;
  font-size: 12px;
  white-space: nowrap;
}

.movement-toolbar input,
.movement-toolbar select,
.movement-toolbar button {
  font-size: 13px;
  min-height: 30px;
  padding: 4px 8px;
}

.movement-toolbar .compact-button {
  justify-self: stretch;
  min-height: 30px;
}

.movement-product-field {
  position: relative;
}

.movement-product-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  position: relative;
}

.movement-product-control input {
  min-width: 0;
}

.movement-product-control button {
  border-left: 0;
  min-height: 30px;
  padding: 0;
}

.movement-product-suggestions {
  background: #ffffff;
  border: 1px solid #bfc8d0;
  box-shadow: 0 8px 18px rgb(0 0 0 / 18%);
  display: grid;
  left: 0;
  max-height: 280px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 95;
}

.movement-product-suggestions[hidden] {
  display: none;
}

.movement-product-suggestions button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  display: grid;
  font-size: 12px;
  gap: 1px;
  min-height: 28px;
  padding: 4px 7px;
  text-align: left;
}

.movement-product-suggestions button:hover,
.movement-product-suggestions button.active {
  background: #eef5fb;
}

.movement-product-suggestions small {
  color: #6b7480;
}

.movement-date-field {
  grid-template-columns: 14px minmax(0, 1fr) !important;
}

.movement-color-toggle {
  align-items: center !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
}

.movement-toolbar-spacer {
  min-width: 0;
}

.movement-hint {
  border: 1px solid #d7dce0;
  border-bottom: 0;
  color: #b0b0b0;
  font-size: 12px;
  padding: 4px 6px;
}

.movement-table-wrap {
  border: 1px solid #d7dce0;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.movement-table {
  min-width: 1380px;
}

.movement-table th {
  height: 32px;
  white-space: nowrap;
}

.movement-sort-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  min-height: 0;
  padding: 0;
  text-align: left;
  padding-right: 14px;
  width: 100%;
}

.movement-table .numeric-column .movement-sort-button {
  justify-content: flex-end;
}

.movement-table td {
  height: 22px;
}

.movement-table .numeric {
  text-align: right;
}

.movement-table .numeric-column {
  text-align: right;
}

.movement-table tfoot td {
  background: #f7f7f7;
  border-top: 1px solid #cfd5da;
  font-weight: 500;
  height: 28px;
  position: sticky;
  bottom: 0;
  z-index: 1;
}

.movement-correspondence-cell {
  align-items: center;
  color: #33485a;
  display: flex;
  gap: 4px;
  font-style: italic;
  overflow: hidden;
}

.movement-correspondence-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movement-correspondence-action {
  background: transparent;
  border: 0;
  flex: 0 0 28px;
  font-style: normal;
  height: 20px;
  line-height: 16px;
  min-height: 20px;
  padding: 0;
  width: 28px;
}

.movement-document-link {
  padding: 0;
}

.movement-row-income td {
  background: #eef9f1;
}

.movement-row-expense td {
  background: #fff0f0;
}

.movement-row-receipt td {
  background: #eef9f1;
}

.movement-row-sales td {
  background: #fff7d6;
}

.movement-row-writeoff td {
  background: #fff0f0;
}

.empty-row td {
  color: #8a8a8a;
  font-size: 16px;
  padding: 22px 10px;
}

.status-pill,
.badge {
  align-items: center;
  border-radius: 2px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  min-height: 24px;
  padding: 3px 7px;
  white-space: nowrap;
}

.status-muted,
.badge-muted {
  background: #eeeeee;
  color: #4f5866;
}

.badge-ok {
  background: #e7f6ed;
  color: #176b3a;
}

.badge-warn {
  background: #fff3d6;
  color: #876000;
}

.button {
  background: #0789da;
  border: 1px solid #0075c0;
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  min-height: 36px;
  padding: 6px 16px;
}

.button-secondary {
  background: #ffffff;
  border-color: #c9c9c9;
  color: #333333;
}

.button:hover {
  background: #0b7fc8;
}

.button-secondary:hover {
  background: #f4f7fb;
  border-color: #9eb7cc;
}

.button:focus-visible,
.line-remove:focus-visible,
.drawer-close:focus-visible,
.order-help-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(7, 137, 218, 0.2);
  outline: 2px solid #0789da;
  outline-offset: 2px;
}

.button:active,
.line-remove:active,
.drawer-close:active,
.order-help-button:active {
  transform: translateY(1px);
}

.save-status {
  color: #6f7782;
  font-size: 13px;
  min-width: 110px;
}

.save-status[data-save-state="success"] {
  color: #23733a;
}

.save-status[data-save-state="error"] {
  color: #9b1c1c;
}

.save-status[data-save-state="pending"] {
  color: #6f7782;
}

.workspace-tools,
.drawer-dev-forms {
  display: none;
}

.admin-workspace-row td {
  padding: 0;
  vertical-align: top;
}

.admin-workspace {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.admin-workspace-main {
  grid-template-columns: minmax(0, 1fr);
}

.admin-sidebar {
  align-content: start;
  border-right: 1px solid #dddddd;
  display: grid;
  gap: 10px;
  padding-right: 16px;
}

.admin-sidebar h3,
.admin-card h3,
.admin-subblock h4 {
  color: #20242a;
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.admin-tree-node {
  border: 1px solid #dddddd;
  border-radius: 4px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.admin-tree-node.active {
  background: #eef5fb;
  border-color: #9bc9ec;
}

.admin-tree-node span {
  color: #8a8a8a;
  font-size: 13px;
}

.admin-tree-children {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.admin-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-card {
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-card-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-card-header p {
  margin: 4px 0 0;
}

.admin-form-grid,
.admin-block-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.admin-block-grid-single {
  grid-template-columns: minmax(220px, 460px);
}

.admin-workspace-tabs {
  max-width: 860px;
}

.admin-order-types-table table,
.admin-document-numbering-table table {
  min-width: 760px;
}

.admin-order-types-table input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.admin-document-numbering-table input {
  min-height: 34px;
  width: 100%;
}

.admin-help-card {
  max-width: 980px;
}

.admin-help-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.admin-help-nav {
  align-content: start;
  display: grid;
  gap: 6px;
}

.admin-help-nav a {
  background: #f3f5f6;
  color: #2c343b;
  padding: 8px 10px;
  text-decoration: none;
}

.admin-help-nav a:hover,
.admin-help-nav a:focus-visible {
  background: #e4edf4;
  outline: none;
}

.admin-help-content {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-help-section {
  border: 1px solid #dddddd;
  padding: 12px;
}

.admin-help-section h4 {
  margin: 0 0 8px;
}

.admin-help-section p,
.admin-help-section ol {
  margin-bottom: 0;
}

.admin-help-section li + li {
  margin-top: 8px;
}

.admin-diagnostics-card {
  max-width: 980px;
}

.admin-diagnostics-toolbar {
  display: flex;
  justify-content: flex-end;
}

.admin-diagnostics-error {
  background: #fff1f0;
  border: 1px solid #f2b8b5;
  color: #9b1c12;
  margin: 0;
  padding: 8px 10px;
}

.platform-core-health {
  border: 1px solid #d7d7d7;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.platform-core-health header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.platform-core-health-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.platform-core-health-blockers {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.platform-local-print-service {
  border: 1px solid #d7d7d7;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.platform-local-print-service header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.platform-local-print-service-capabilities {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-local-print-service-capabilities li {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 72px 120px minmax(0, 1fr);
}

.platform-local-print-service-capabilities small {
  color: #777777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-print-jobs-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.platform-print-jobs-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 6px;
}

.platform-print-jobs-check-cell {
  text-align: center;
  width: 34px;
}

.platform-print-jobs-check-cell input {
  height: 15px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 15px;
}

.platform-print-jobs-table th,
.platform-print-jobs-table td {
  border: 1px solid #dddddd;
  overflow: hidden;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-print-jobs-table th {
  background: #f3f5f6;
  font-weight: 600;
}

.platform-print-jobs-table th:last-child,
.platform-print-jobs-table td:last-child {
  text-align: right;
  width: 120px;
}

.admin-diagnostics-order-conflicts,
.admin-diagnostics-print-jobs {
  display: grid;
  gap: 6px;
}

.admin-diagnostics-order-conflicts h4,
.admin-diagnostics-print-jobs h4 {
  margin: 0;
}

.platform-order-conflicts-wrap {
  max-height: 280px;
  overflow: auto;
}

.platform-order-conflicts-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.platform-order-conflicts-table th,
.platform-order-conflicts-table td {
  border: 1px solid #dddddd;
  overflow: hidden;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-order-conflicts-table th {
  background: #f3f5f6;
  font-weight: 600;
  text-align: left;
}

.platform-order-conflicts-table th:last-child,
.platform-order-conflicts-table td:last-child {
  text-align: right;
  width: 92px;
}

.platform-order-conflict-modal {
  z-index: 13000;
}

.platform-order-conflict-dialog {
  max-height: calc(100vh - 40px);
  width: min(920px, calc(100vw - 40px));
}

.platform-order-conflict-dialog .confirm-header {
  align-items: center;
}

.platform-order-conflict-dialog .confirm-header h3,
.platform-order-conflict-dialog .confirm-header p {
  margin: 0;
}

.platform-order-conflict-dialog .confirm-header p {
  color: #6c7478;
  font-size: 12px;
  margin-top: 3px;
}

.platform-order-conflict-body {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 16px;
}

.platform-order-conflict-reason,
.platform-order-conflict-warning,
.platform-order-conflict-wait {
  margin: 0;
  padding: 10px 12px;
}

.platform-order-conflict-reason {
  background: #f3f5f6;
}

.platform-order-conflict-warning {
  background: #fff0ef;
  border: 1px solid #efb1ad;
  color: #8d2119;
}

.platform-order-conflict-wait {
  background: #fff8dd;
  border: 1px solid #e1c86f;
}

.platform-order-version-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-order-version {
  border: 1px solid #d7d7d7;
  padding: 12px;
}

.platform-order-version h4 {
  margin: 0 0 8px;
}

.platform-order-version dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.platform-order-version dl > div {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1fr);
}

.platform-order-version dt {
  color: #6c7478;
}

.platform-order-version dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.platform-order-conflict-actions {
  flex-wrap: wrap;
}

.platform-database-backups {
  border: 1px solid #d7d7d7;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.platform-database-backups > header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.platform-database-backups h4,
.platform-database-backups p {
  margin: 0;
}

.platform-database-backup-summary {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: max-content minmax(0, 1fr);
}

.platform-database-backup-summary > span {
  color: #6c7478;
}

.platform-database-backup-summary [data-status="verified"] {
  color: #28713d;
}

.platform-database-backup-summary [data-status="failed"],
.platform-database-backup-error {
  color: #9b1c12;
}

.platform-database-backup-list-wrap {
  max-height: 240px;
  overflow: auto;
}

.platform-database-backup-list {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.platform-database-backup-list th,
.platform-database-backup-list td {
  border: 1px solid #dddddd;
  overflow: hidden;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-database-backup-list th {
  background: #f3f5f6;
  font-weight: 600;
  padding-right: 12px;
  position: relative;
  text-align: left;
}

.platform-database-backup-list th:last-child,
.platform-database-backup-list td:last-child {
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.platform-database-backup-list td:last-child .button {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  width: 100%;
}

.platform-database-last-restore[data-status="applied"] strong {
  color: #28713d;
}

.platform-database-last-restore[data-status="failed"] strong {
  color: #9b1c12;
}

.admin-diagnostics-restarting {
  background: #fff8dd;
  border: 1px solid #e1c86f;
  margin: 0;
  padding: 10px 12px;
}

.platform-database-restore-modal {
  z-index: 13100;
}

.platform-database-restore-dialog {
  width: min(680px, calc(100vw - 40px));
}

.platform-database-restore-dialog .confirm-header {
  align-items: center;
}

.platform-database-restore-dialog > .confirm-actions {
  box-sizing: border-box;
  gap: 8px;
  padding: 12px 16px;
}

.platform-database-restore-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.platform-database-restore-body p {
  margin: 0;
}

.platform-database-restore-warning {
  background: #fff0ef;
  border: 1px solid #efb1ad;
  color: #8d2119;
  padding: 10px 12px;
}

.platform-database-restore-body label {
  display: grid;
  gap: 6px;
}

.shared-column-resize-handle {
  bottom: 0;
  cursor: col-resize;
  height: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
}

.shared-column-resize-handle:hover,
.is-resizing-shared-column .shared-column-resize-handle {
  background: rgb(47 49 50 / 12%);
}

.is-resizing-shared-column,
.is-resizing-shared-column * {
  cursor: col-resize !important;
  user-select: none !important;
}

.platform-database-backup-error {
  background: #fff1f0;
  border: 1px solid #f2b8b5;
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .platform-database-backups > header {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-order-version-grid {
    grid-template-columns: 1fr;
  }
}

.admin-help-title {
  align-items: center;
  display: flex;
  gap: 8px;
}

.admin-help-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5e6b70;
  cursor: pointer;
  display: inline-grid;
  height: 24px;
  justify-items: center;
  padding: 0;
  width: 24px;
}

.admin-help-button:hover,
.admin-help-button:focus-visible {
  color: #1d78d6;
}

.admin-help-icon {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.equipment-workspace {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.equipment-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr auto;
}

.equipment-actions,
.equipment-view-switch {
  align-items: center;
  display: flex;
  gap: 8px;
}

.equipment-actions {
  flex-wrap: wrap;
}

.equipment-view-switch {
  justify-content: flex-end;
}

.equipment-view-switch label {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.equipment-view-switch input[type="radio"] {
  flex: 0 0 14px;
  height: 14px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 14px;
}

.equipment-workstation-hint {
  background: #f5f8fb;
  border: 1px solid #cbd8e3;
  color: #34495a;
  margin: 0;
  padding: 8px 10px;
}

.equipment-table-wrap {
  border: 1px solid #d0d0d0;
  min-height: 0;
  overflow: auto;
}

.equipment-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.equipment-table th,
.equipment-table td {
  border-bottom: 1px solid #e8e8e8;
  border-right: 1px solid #d9d9d9;
  height: 22px;
  overflow: hidden;
  padding: 2px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-table th {
  background: #f2f2f2;
  font-weight: 400;
  position: relative;
  text-align: left;
}

.equipment-table tbody tr:nth-child(odd):not(.equipment-group-row) {
  background: #f7f7f7;
}

.equipment-table .equipment-row:hover,
.equipment-table .equipment-row.is-selected {
  background: #b7cee4;
}

.equipment-table .equipment-row:hover > td,
.equipment-table .equipment-row.is-selected > td {
  background: #b7cee4;
}

.equipment-table tr.is-selected > td {
  background: #b7cee4 !important;
}

.equipment-row-dragging > td {
  opacity: 0.55;
}

.equipment-drag-handle {
  color: #777777;
  cursor: grab;
  display: inline-block;
  font-weight: 700;
  margin-right: 6px;
  user-select: none;
  width: 14px;
}

.equipment-drag-handle:active {
  cursor: grabbing;
}

.equipment-group-row td {
  background: #eeeeee;
  color: #333333;
  font-weight: 700;
}

.equipment-group-row.is-selected td {
  background: #b7cee4;
}

.equipment-group-row td:first-child {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.equipment-group-toggle {
  flex: 0 0 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 18px;
  min-height: 0;
  padding: 0;
  position: relative;
  width: 18px;
}

.equipment-group-toggle::before {
  border: solid #52575b;
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  left: 3px;
  position: absolute;
  top: 4px;
  transform: rotate(-45deg);
  width: 8px;
}

.equipment-group-toggle.open::before {
  left: 4px;
  top: 2px;
  transform: rotate(45deg);
}

.equipment-group-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-context-menu-root {
  position: fixed;
  z-index: 1400;
}

.equipment-add-device-dialog {
  background: #f7f7f7;
  box-shadow: 0 18px 70px rgb(0 0 0 / 28%);
  display: grid;
  grid-template-rows: auto 1fr;
  left: 50%;
  max-width: min(520px, calc(100vw - 40px));
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 40px));
  z-index: 1300;
}

.equipment-add-device-header {
  align-items: start;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  display: grid;
  grid-template-columns: 1fr 34px;
  padding: 14px 18px;
}

.equipment-add-device-header h3,
.equipment-add-device-header p {
  margin: 0;
}

.equipment-add-device-options {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.equipment-add-device-option {
  background: #ffffff;
  border: 1px solid #d2d2d2;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
}

.equipment-add-device-option:hover,
.equipment-add-device-option:focus {
  background: #eaf2f8;
  border-color: #7da6c8;
}

.equipment-add-device-option span {
  color: #666666;
  font-size: 12px;
}

.equipment-terminal-editor {
  width: min(760px, calc(100vw - 48px));
}

.equipment-terminal-discovery {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.equipment-terminal-discovery header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.equipment-terminal-empty {
  background: #f8f8f8;
  border: 1px dashed #c8c8c8;
  color: #666666;
  padding: 10px;
}

.equipment-confirm-dialog {
  background: #ffffff;
  box-shadow: 0 18px 70px rgb(0 0 0 / 28%);
  display: grid;
  gap: 14px;
  left: 50%;
  max-width: min(420px, calc(100vw - 40px));
  padding: 18px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 40px));
  z-index: 1350;
}

.equipment-confirm-dialog h3,
.equipment-confirm-dialog p {
  margin: 0;
}

.equipment-confirm-dialog div {
  display: grid;
  gap: 8px;
}

.equipment-confirm-dialog footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.equipment-editor {
  background: #f7f7f7;
  box-shadow: 0 18px 70px rgb(0 0 0 / 28%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  left: 50%;
  max-height: min(760px, calc(100vh - 40px));
  max-width: min(720px, calc(100vw - 40px));
  min-height: 560px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 40px));
  z-index: 1300;
}

.equipment-editor-header {
  align-items: start;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  display: grid;
  grid-template-columns: 1fr 34px;
  padding: 14px 18px;
}

.equipment-editor-header h3,
.equipment-editor-header p {
  margin: 0;
}

.equipment-editor-body {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 12px 18px;
}

.equipment-field,
.equipment-editor-grid label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.equipment-auto-start {
  margin-left: 180px;
}

.equipment-editor-tabs {
  justify-content: start;
}

.equipment-editor-panel {
  background: #ffffff;
  border: 1px solid #d1d1d1;
  min-height: 320px;
  padding: 14px;
}

.equipment-connection-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.equipment-connection-row > span {
  min-width: 110px;
}

.equipment-connection-option {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.equipment-connection-option input[type="radio"] {
  flex: 0 0 14px;
  height: 14px;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 14px;
}

.equipment-bound-station {
  background: #f0f0f0;
  border: 1px solid #cfcfcf;
  box-sizing: border-box;
  color: #333333;
  min-height: 30px;
  padding: 5px 8px;
}

.equipment-editor-grid {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.equipment-virtual-cash-editor {
  max-width: min(720px, calc(100vw - 40px));
  width: min(720px, calc(100vw - 40px));
}

.equipment-virtual-cash-grid {
  max-width: 640px;
}

.equipment-atol-grid {
  max-width: 620px;
}

.equipment-wide-check {
  margin-left: 180px;
}

.equipment-cash-drawer-box {
  border: 1px solid #d0d0d0;
  display: grid;
  gap: 0;
  grid-column: 1 / -1;
  margin-left: 180px;
  max-width: 460px;
}

.equipment-cash-drawer-box header {
  background: #f3f3f3;
  border-bottom: 1px solid #d0d0d0;
  padding: 4px 8px;
}

.equipment-cash-drawer-row {
  align-items: center;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}

.equipment-cash-drawer-row .icon-button {
  height: 24px;
  min-height: 0;
  width: 24px;
}

.equipment-cash-drawer-row select {
  min-height: 24px;
  padding: 2px 6px;
}

.equipment-cash-drawer-actions {
  display: flex;
  gap: 6px;
  padding: 6px;
}

.equipment-virtual-cash-warning {
  grid-column: 1 / -1;
  margin-top: 12px;
}

.equipment-virtual-cash-warning strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.equipment-virtual-cash-warning p {
  margin: 0;
  max-width: 560px;
}

.equipment-empty-tab {
  color: #555555;
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.equipment-empty-tab p {
  margin: 0;
}

.equipment-note {
  color: #777777;
  font-size: 12px;
  margin: 4px 0 0 188px;
}

.equipment-code-page-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.equipment-code-page-table th,
.equipment-code-page-table td {
  border: 1px solid #d8d8d8;
  height: 24px;
  padding: 2px 4px;
}

.equipment-code-page-table th {
  background: #f3f3f3;
  font-weight: 400;
  text-align: left;
}

.equipment-code-page-table input,
.equipment-code-page-table select {
  min-height: 22px;
  padding: 2px 4px;
}

.equipment-assignments-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.equipment-editor-footer {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #dddddd;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 92px 92px;
  padding: 10px 14px;
}

.equipment-editor-status {
  color: #c01818;
  font-size: 12px;
}

.equipment-template-workspace {
  gap: 12px;
}

.equipment-template-header {
  align-items: center;
  display: grid;
  gap: 12px;
}

.equipment-template-header h3,
.equipment-template-header p {
  margin: 0;
}

.equipment-template-toolbar {
  display: flex;
  gap: 8px;
}

.equipment-template-table-wrap {
  border: 1px solid #d6d6d6;
  overflow: auto;
}

.equipment-template-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
  width: 100%;
}

.equipment-template-table th,
.equipment-template-table td {
  border-bottom: 1px solid #e4e4e4;
  padding: 7px 9px;
  text-align: left;
  vertical-align: middle;
}

.equipment-template-table th {
  background: #f3f3f3;
  color: #555555;
  font-weight: 600;
}

.equipment-template-row {
  cursor: pointer;
}

.equipment-template-row:hover td,
.equipment-template-row.is-selected td {
  background: #e7f2fb;
}

.equipment-template-group-row td {
  background: #eeeeee;
  color: #555555;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.equipment-template-default-cell {
  text-align: center;
  width: 130px;
}

.equipment-template-default-cell input {
  height: 16px;
  min-height: 16px;
  width: 16px;
}

.equipment-template-empty {
  color: #777777;
  font-size: 12px;
}

.equipment-template-modal {
  background: #ffffff;
  bottom: 18px;
  box-shadow: 0 20px 55px rgb(0 0 0 / 28%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  left: 18px;
  min-width: 0;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 80;
}

.equipment-template-modal-header {
  align-items: center;
  border-bottom: 1px solid #dddddd;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 16px;
}

.equipment-template-modal-header h3,
.equipment-template-modal-header p {
  margin: 0;
}

.equipment-template-modal-body {
  overflow: auto;
  padding: 14px 16px;
}

.equipment-template-editor {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  min-width: 0;
  width: 100%;
}

.equipment-template-controls {
  align-content: start;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.equipment-template-controls label {
  display: grid;
  gap: 5px;
}

.equipment-template-controls label > span {
  color: #555555;
  font-size: 12px;
}

.equipment-template-controls textarea {
  font: inherit;
  min-height: 0;
  resize: vertical;
}

.equipment-template-style-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.equipment-template-hint {
  color: #777777;
  font-size: 12px;
  margin: 0;
}

.equipment-template-section-card {
  border: 1px solid #d8d8d8;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
}

.equipment-template-section-header {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 1fr) minmax(240px, 360px);
}

.equipment-template-section-header strong {
  font-size: 15px;
}

.equipment-template-section-controls {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.equipment-template-logo-tools {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
}

.equipment-template-logo-preview {
  align-items: center;
  display: flex;
  gap: 8px;
}

.equipment-template-logo-preview img {
  background: #ffffff;
  border: 1px solid #dddddd;
  max-height: 44px;
  max-width: 110px;
  object-fit: contain;
}

.equipment-template-line-list {
  display: grid;
  gap: 5px;
}

.equipment-template-line-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 136px minmax(0, 1fr) 92px 104px 28px;
  min-width: 0;
}

.equipment-template-line-row > [hidden] {
  display: none !important;
}

.equipment-template-line-row > input,
.equipment-template-line-row > select {
  min-width: 0;
}

.equipment-template-line-row[data-line-type="table"],
.equipment-template-line-row:has(.equipment-template-table-fields:not([hidden])) {
  align-items: end;
  grid-template-columns: 136px minmax(0, 1fr) 92px 104px 28px;
}

.equipment-template-table-fields {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(120px, 1fr) minmax(62px, 84px) minmax(58px, 72px) minmax(72px, 92px);
  min-width: 0;
}

.equipment-template-table-fields label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.equipment-template-table-fields label > span {
  color: #666666;
  font-size: 10px;
}

.equipment-template-line-row .icon-button {
  color: #9d1f1f;
  font-size: 18px;
  height: 28px;
  min-height: 28px;
  width: 28px;
}

.equipment-template-preview {
  align-content: start;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.equipment-template-preview h4 {
  margin: 0;
}

.receipt-template-paper {
  background: #ffffff;
  border: 1px solid #d2d2d2;
  box-shadow: 0 8px 24px rgb(0 0 0 / 10%);
  color: #111111;
  display: grid;
  font-family: "Courier New", Consolas, monospace;
  gap: 8px;
  line-height: 1.24;
  max-width: 420px;
  min-height: 420px;
  padding: 16px;
  white-space: pre-wrap;
  width: min(100%, 420px);
}

.receipt-template-section {
  display: grid;
  gap: 2px;
}

.receipt-template-logo {
  justify-self: center;
  max-height: 64px;
  max-width: 210px;
  object-fit: contain;
}

.receipt-template-line {
  min-height: 1em;
}

.receipt-template-divider {
  border-top: 1px dashed #777777;
}

.receipt-template-line.template-font-small {
  font-size: 12px;
}

.receipt-template-line.template-font-normal {
  font-size: 14px;
}

.receipt-template-line.template-font-large {
  font-size: 17px;
}

.receipt-template-line.template-font-bold {
  font-weight: 700;
}

.document-numbering-help-modal {
  max-width: 620px;
}

.document-numbering-help-body {
  gap: 14px;
}

.document-numbering-help-body p {
  margin: 0;
}

.document-numbering-help-body code {
  background: #eef2f4;
  border-radius: 3px;
  color: #1f2a2e;
  padding: 2px 5px;
}

.document-numbering-help-grid {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 130px minmax(0, 1fr);
}

.admin-form-grid .field-row,
.admin-subblock .field-row {
  align-items: stretch;
  gap: 4px;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.admin-form-grid .field-row > span,
.admin-subblock .field-row > span {
  font-size: 14px;
}

.admin-form-grid .field-row input,
.admin-form-grid .field-row select,
.admin-subblock .field-row input,
.admin-subblock .field-row select {
  font-size: 14px;
  min-height: 34px;
}

.admin-document-posting-settings {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  max-width: 520px;
}

.admin-document-posting-settings h5 {
  color: #4f5b62;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
}

.admin-document-posting-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 170px minmax(160px, 1fr) 92px;
}

.admin-document-posting-row > span {
  color: #4f5b62;
  font-size: 13px;
}

.admin-document-posting-row select,
.admin-document-posting-row input {
  font-size: 13px;
  min-height: 30px;
  padding: 4px 7px;
}

.admin-document-posting-row input:disabled {
  background: #f2f2f2;
  color: #888888;
}

.admin-settings-actions {
  border-top: 1px solid #e2e2e2;
  display: flex;
  gap: 10px;
  padding-top: 12px;
}

.admin-subblock {
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-color-row {
  grid-template-columns: 1fr 80px;
}

.admin-color-row input {
  min-height: 32px;
  padding: 2px;
}

.table-map {
  background:
    linear-gradient(90deg, #eef0f2 1px, transparent 1px),
    linear-gradient(#eef0f2 1px, transparent 1px);
  background-color: var(--table-map-background, #fbfbfb);
  background-size: calc(100% / 64) calc(100% / 36);
  border: 1px solid #d7d7d7;
  aspect-ratio: 16 / 9;
  min-height: 0;
  position: relative;
  width: 100%;
}

.table-map-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.table-map-mode-switch {
  align-items: center;
  display: flex;
  gap: 6px;
}

.table-map-service-note {
  color: #5f6872;
  font-size: 13px;
}

.icon-column {
  width: 34px;
}

.row-remove-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #9b1c1c;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 600;
  height: 24px;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  width: 24px;
}

.table-map-background {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 6px;
}

.table-map-background input {
  min-height: 32px;
  padding: 2px;
  width: 44px;
}

.table-map-save-state {
  color: #1f7a45;
  font-size: 13px;
  min-width: 130px;
}

.table-map-save-state.dirty {
  color: #9a5a00;
}

.table-text-style-editor,
.table-status-style-editor {
  border: 1px solid #d7d7d7;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
}

.table-text-style-editor header,
.table-status-style-editor header {
  display: grid;
  gap: 3px;
}

.table-text-style-editor h4,
.table-status-style-editor h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.table-text-style-editor header span,
.table-status-style-editor header span {
  color: #6b7280;
  font-size: 12px;
}

.table-text-style-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-text-style-controls label {
  display: grid;
  gap: 2px;
  width: auto;
}

.table-text-style-controls label span {
  color: #68717a;
  font-size: 11px;
}

.table-text-style-controls input[type="color"] {
  min-height: 28px;
  padding: 2px;
  width: 44px;
}

.table-text-style-controls input[type="number"] {
  min-height: 28px;
  padding: 3px 6px;
  width: 72px;
}

.table-status-style-list {
  display: grid;
  gap: 6px;
}

.table-status-style-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 54px minmax(220px, 1fr) auto;
  min-height: 58px;
}

.table-status-style-preview {
  background: var(--preview-fill);
  border-color: var(--preview-border);
  border-radius: var(--preview-radius);
  border-style: solid;
  border-width: var(--preview-border-width);
  height: 34px;
  justify-self: center;
  width: 44px;
}

.table-status-style-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.table-status-style-text strong,
.table-status-style-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-status-style-text span {
  color: #68717a;
  font-size: 12px;
}

.table-status-style-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: flex-start;
}

.table-status-style-row label {
  display: grid;
  gap: 2px;
  width: auto;
}

.table-status-style-row label span {
  color: #68717a;
  font-size: 11px;
}

.table-status-style-row input[type="color"] {
  min-height: 28px;
  padding: 2px;
  width: 44px;
}

.table-status-style-row input[type="number"] {
  min-height: 28px;
  padding: 3px 6px;
  width: 62px;
}

.table-map-object {
  align-items: center;
  background: var(--map-item-color, #ffffff);
  border: 1px solid #8fb5d8;
  box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
  color: #1f252d;
  cursor: move;
  display: flex;
  justify-content: center;
  min-height: 0;
  min-width: 0;
  overflow: visible;
  position: absolute;
  user-select: none;
}

.table-map-readonly .table-map-object {
  cursor: pointer;
}

.table-map-readonly .table-map-resize,
.table-map-readonly .table-map-text-handle {
  display: none;
}

.table-map-object.inactive {
  filter: grayscale(1);
  opacity: 0.45;
}

.table-map-object.selected {
  outline: 2px solid #0789da;
  outline-offset: 3px;
}

.table-map-object-circle {
  border-radius: 50%;
}

.table-map-object img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.table-map-table-body {
  align-items: center;
  border: 1px solid #9fb8cf;
  color: var(--table-label-color, #1f252d);
  display: flex;
  font-size: var(--table-label-font-size, 14px);
  font-weight: var(--table-label-font-weight, 600);
  height: 100%;
  justify-content: center;
  width: 100%;
}

.table-map-number-input {
  background: #ffffff;
  border: 1px solid #0789da;
  box-shadow: 0 0 0 2px rgb(7 137 218 / 15%);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  height: 34px;
  min-height: 34px;
  padding: 2px 6px;
  text-align: center;
  width: 76%;
}

.table-map-text {
  cursor: text;
  min-height: 100%;
  outline: 0;
  padding: 8px 28px 8px 8px;
  width: 100%;
}

.table-map-text-handle {
  background: rgb(255 255 255 / 86%);
  border: 1px solid #9fb8cf;
  cursor: move;
  height: 22px;
  min-height: 22px;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 22px;
  z-index: 2;
}

.table-map-text-handle::before {
  color: #5d6a76;
  content: "::";
  display: block;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  transform: rotate(90deg);
}

.table-map-resize {
  background: #2d6ea3;
  bottom: -5px;
  cursor: nwse-resize;
  display: none;
  height: 10px;
  position: absolute;
  right: -5px;
  width: 10px;
}

.table-map-object:focus .table-map-resize,
.table-map-object:hover .table-map-resize,
.table-map-object.selected .table-map-resize {
  display: block;
}

.context-color-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 42px;
  padding: 8px 10px;
}

.context-color-row input {
  min-height: 28px;
  padding: 0;
}

.table-layout-restore-dialog {
  max-width: 760px;
  width: min(760px, calc(100vw - 48px));
}

.admin-create-modal {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  display: grid;
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 36px));
  z-index: 43;
}

.admin-create-modal-header {
  align-items: center;
  border-bottom: 1px solid #dddddd;
  display: flex;
  min-height: 62px;
  padding: 14px 64px 14px 20px;
  position: relative;
}

.admin-create-modal-header h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.admin-create-modal-body {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}

.admin-group-settings-drawer {
  height: 100vh;
  left: auto;
  right: 0;
  top: 0;
  transform: none;
  width: min(860px, calc(100vw - 320px));
}

.registers-settings-drawer {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  width: min(860px, calc(100vw - 320px));
}

.registers-settings-drawer .admin-create-modal-header .drawer-close {
  height: 40px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
}

.registers-settings-drawer .admin-create-modal-header .drawer-close::before,
.registers-settings-drawer .admin-create-modal-header .drawer-close::after {
  left: 8px;
  top: 19px;
  width: 24px;
}

.registers-settings-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.registers-settings-body .admin-subblock {
  display: grid;
  gap: 10px;
}

.registers-settings-status {
  color: #777777;
  font-size: 13px;
  min-height: 18px;
}

.registers-settings-status[data-save-state="success"] {
  color: #217a35;
}

.registers-settings-status[data-save-state="error"] {
  color: #b32828;
}

.registers-payment-types-block {
  flex: 0 0 auto;
  min-width: 0;
}

.registers-payment-types-header,
.registers-payment-types-tools {
  align-items: center;
  display: flex;
  gap: 8px;
}

.registers-payment-types-header {
  justify-content: space-between;
  min-width: 0;
}

.registers-payment-types-header h4 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registers-payment-types-header .button {
  flex: 0 0 auto;
}

.registers-payment-types-tools {
  border-bottom: 1px solid #d0d0d0;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.registers-payment-types-tools input[type="search"] {
  flex: 1 1 auto;
  min-height: 28px;
  min-width: 180px;
}

.registers-payment-types-tools .check-row {
  margin-left: 0;
  white-space: nowrap;
}

.registers-payment-types-table-wrap {
  border: 1px solid #c8c8c8;
  max-width: 100%;
  min-height: 180px;
  overflow-x: auto;
  overflow-y: visible;
}

.registers-payment-types-table {
  border-collapse: collapse;
  font-size: 11px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.registers-payment-types-table th,
.registers-payment-types-table td {
  border-bottom: 1px solid #e3e3e3;
  border-right: 1px solid #d4d4d4;
  height: 20px;
  overflow: hidden;
  padding: 2px 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registers-payment-types-table th {
  background: #f5f5f5;
  color: #283238;
  font-weight: 400;
  position: sticky;
  top: 0;
  z-index: 1;
}

.registers-payment-types-table th > span {
  display: block;
  overflow: hidden;
  padding-right: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registers-payment-column-resize-handle {
  z-index: 2;
}

.registers-payment-types-table tbody tr:nth-child(odd) {
  background: #f7f7f7;
}

.registers-payment-types-table tbody tr:hover {
  background: #dceaf8;
}

.registers-payment-types-table tbody tr.is-selected {
  background: #c6dcf1;
}

.registers-payment-types-table tbody tr.is-deleted {
  color: #8a8a8a;
  text-decoration: line-through;
}

.registers-payment-check-cell {
  text-align: center;
}

.registers-payment-check-cell input {
  height: 13px;
  margin: 0;
  width: 13px;
}

.registers-payment-types-empty {
  color: #777777;
  text-align: center;
}

.registers-payment-type-backdrop {
  z-index: 55;
}

.registers-payment-type-dialog {
  height: min(635px, calc(100vh - 48px));
  max-width: 970px;
  width: min(970px, calc(100vw - 48px));
  z-index: 56;
}

.registers-payment-type-dialog-header {
  min-height: 38px;
  padding: 6px 56px 6px 10px;
}

.registers-payment-type-dialog-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.registers-payment-type-dialog .drawer-close {
  height: 32px;
  right: 8px;
  top: 4px;
  width: 32px;
}

.registers-payment-type-dialog .drawer-close::before,
.registers-payment-type-dialog .drawer-close::after {
  left: 7px;
  top: 15px;
  width: 18px;
}

.registers-payment-type-form {
  display: grid;
  gap: 6px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 8px;
}

.registers-payment-type-form label {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-column: 1 / -1;
  grid-template-columns: 86px minmax(0, 1fr);
}

.registers-payment-type-form label > span:first-child {
  color: #283238;
  font-size: 12px;
}

.registers-payment-type-form input,
.registers-payment-type-form select,
.registers-payment-type-form textarea {
  font-size: 12px;
  min-height: 22px;
  padding: 2px 5px;
}

.registers-payment-type-form textarea {
  min-height: 36px;
  resize: vertical;
}

.registers-payment-type-form .check-row {
  display: flex;
  grid-template-columns: none;
}

.registers-payment-type-form .check-row input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.payment-type-linked-control select,
.payment-type-payment-side select,
.payment-type-linked-control input[type="number"] {
  max-width: 300px;
}

.payment-type-linked-control input[type="number"] {
  width: 54px;
}

.registers-payment-type-form .check-row.payment-type-payment-side {
  display: grid;
  gap: 5px;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(260px, 1fr);
}

.registers-payment-type-form .check-row.payment-type-payment-side span:nth-of-type(2) {
  margin-left: auto;
  justify-self: end;
}

.payment-type-fiscal-row {
  border: 1px solid #777777;
  min-height: 28px;
  padding: 2px 4px;
}

.payment-type-comment-field textarea {
  width: 100%;
}

.payment-type-delete-row {
  justify-content: flex-end;
}

.registers-payment-type-footer {
  align-items: center;
  border-top: 1px solid #d7d7d7;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: auto;
  padding: 8px 12px;
}

.finance-workspace-row > td {
  padding: 0;
}

.finance-workspace {
  display: grid;
  gap: 14px;
}

.finance-summary {
  border: 1px solid #dddddd;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.finance-summary h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.finance-summary p {
  color: #59636a;
  font-size: 13px;
  margin: 0;
}

.finance-section-title {
  font-size: 16px;
  font-weight: 400;
  margin: 6px 0 -6px;
}

.finance-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.finance-table th,
.finance-table td {
  border-bottom: 1px solid #dddddd;
  border-right: 1px solid #d4d4d4;
  height: 24px;
  overflow: hidden;
  padding: 3px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-table th {
  background: #f5f5f5;
  color: #283238;
  font-weight: 400;
  position: relative;
  text-align: left;
}

.finance-table th > span {
  display: block;
  overflow: hidden;
  padding-right: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-column-resize-handle {
  cursor: col-resize;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
}

.finance-column-resize-handle::after {
  background: #c6cdd1;
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
}

.finance-column-resize-handle:hover {
  background: rgb(47 49 50 / 10%);
}

.finance-column-resizing {
  cursor: col-resize;
  user-select: none;
}

.finance-table tbody tr.is-selected td,
.finance-table tbody tr:hover td {
  background: #e7f0f7;
}

.finance-money-cell {
  text-align: right;
}

.finance-operation-locked td:last-child {
  color: #667782;
}

.finance-account-group-row td {
  background: #e8edf0;
  color: #2f3a40;
  font-weight: 600;
  height: 22px;
  text-transform: uppercase;
}

.finance-account-group-row span {
  color: #718087;
  font-weight: 400;
  margin-left: 6px;
  text-transform: none;
}

.finance-table tbody tr.finance-account-group-row:hover td {
  background: #e8edf0;
}

.finance-account-code-cell {
  align-items: center;
  display: grid;
  gap: 3px;
  grid-template-columns: 16px minmax(0, 1fr);
  padding-left: calc(var(--finance-account-depth, 0) * 18px);
}

.finance-account-code-cell input {
  min-width: 0;
}

.finance-account-toggle {
  background: transparent;
  border: 0;
  color: #5b6870;
  cursor: pointer;
  height: 16px;
  min-height: 16px;
  padding: 0;
  position: relative;
  width: 16px;
}

.finance-account-toggle::before {
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  border-top: 4px solid transparent;
  content: "";
  left: 5px;
  position: absolute;
  top: 4px;
  transform: rotate(90deg);
  transform-origin: 3px 4px;
}

.finance-account-toggle.collapsed::before {
  transform: rotate(0deg);
}

.finance-account-toggle:disabled {
  cursor: default;
  opacity: 0;
}

.finance-subaccount-row td {
  background: #fbfdfe;
}

.finance-subaccount-row:hover td {
  background: #e7f0f7;
}

.finance-empty-cell {
  color: #777777;
  text-align: center;
}

.finance-posting-dialog {
  max-width: 520px;
}

.finance-posting-body dl {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 92px minmax(0, 1fr);
  margin: 0;
}

.finance-posting-body dt {
  color: #68737a;
}

.finance-posting-body dd {
  margin: 0;
  min-width: 0;
}

.finance-accounts-table input,
.finance-accounts-table select {
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 20px;
  padding: 1px 3px;
}

.finance-check-cell {
  text-align: center;
}

.finance-check-cell input {
  height: 15px;
  min-height: 15px;
  padding: 0;
  width: 15px;
}

label {
  color: #606060;
  display: grid;
  font-size: 13px;
  gap: 4px;
}

input,
select {
  border: 1px solid #cfcfcf;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 8%);
  font: inherit;
  font-size: 15px;
  min-height: 38px;
  padding: 6px 10px;
  width: 100%;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.check-row input {
  min-height: auto;
  width: auto;
}

.check-row input[type="checkbox"] {
  flex: 0 0 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  width: 16px;
}

.checkbox-list {
  display: grid;
  gap: 6px;
}

.compact-check-row {
  font-size: 14px;
  min-height: 28px;
}

.drawer-backdrop {
  background: rgb(0 0 0 / 48%);
  inset: 0;
  position: fixed;
  z-index: 89;
}

.modal-root[hidden] {
  display: none;
}

.modal-backdrop {
  background: rgb(0 0 0 / 48%);
  inset: 0;
  position: fixed;
  z-index: 42;
}

.nested-backdrop {
  z-index: 52;
}

.order-dialog {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100vh - 46px));
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1160px, calc(100vw - 42px));
  z-index: 43;
}

.inventory-document-dialog {
  height: min(860px, calc(100vh - 28px));
  width: min(1520px, calc(100vw - 28px));
}

.inventory-choice-dialog {
  width: min(520px, calc(100vw - 42px));
}

.inventory-choice-body {
  grid-template-columns: 1fr 1fr;
}

.size-picker-dialog {
  width: min(420px, calc(100vw - 42px));
}

.size-picker-body {
  display: grid;
  gap: 10px;
}

.size-picker-product {
  color: #333333;
  font-weight: 600;
}

.size-picker-list {
  border: 1px solid #d8d8d8;
  display: grid;
  max-height: 260px;
  overflow: auto;
}

.size-picker-row {
  border-bottom: 1px solid #eeeeee;
  min-height: 32px;
  padding: 6px 8px;
}

.size-picker-list .size-picker-row:last-child {
  border-bottom: 0;
}

.size-picker-modifiers {
  background: #f7fbff;
  border: 1px solid #cfe3f5;
  padding: 8px;
}

.supplier-dialog {
  width: min(980px, calc(100vw - 60px));
}

.supplier-modal-root .modal-backdrop {
  z-index: 12040;
}

.supplier-modal-root .supplier-dialog {
  z-index: 12041;
}

.supplier-form-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.supplier-form-grid label {
  display: grid;
  gap: 6px;
}

.supplier-form-grid input,
.supplier-form-grid select {
  border: 1px solid #cfcfcf;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.employee-card-dialog {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  display: flex;
  flex-direction: column;
  height: min(820px, calc(100vh - 36px));
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1180px, calc(100vw - 42px));
  z-index: 43;
}

.employee-card-body {
  display: grid;
  flex: 1;
  gap: 16px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: auto;
  padding: 18px 28px;
}

.employee-card-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  min-height: 0;
}

.employee-card-body > .tab-strip {
  align-self: start;
  flex: 0 0 auto;
}

.employee-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.employee-form-grid .field-row {
  align-items: stretch;
  gap: 4px;
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.employee-form-grid input,
.employee-form-grid select,
.employee-permissions-editor textarea {
  border: 1px solid #cfcfcf;
  font: inherit;
  min-height: 36px;
  padding: 8px 10px;
}

.employee-form-grid .field-invalid {
  border-color: #c94d4d;
  box-shadow: 0 0 0 1px rgb(201 77 77 / 24%);
}

.employee-password-row {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.employee-field-with-button {
  min-width: 0;
}

.employee-field-action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-button {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.inventory-count-line-actions {
  align-items: center;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.inventory-count-line-actions .compact-button {
  min-height: 22px;
  padding: 2px 6px;
}

.employee-email-code-row {
  display: grid;
  gap: 6px;
  grid-template-columns: 62px auto;
  width: 198px;
}

.employee-email-code-input {
  min-height: 36px;
  padding: 7px 8px;
  text-align: center;
}

.employee-email-code-button {
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.employee-address-dialog {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 18px 38px rgb(0 0 0 / 20%);
  display: grid;
  gap: 0;
  max-height: min(420px, calc(100vh - 120px));
  overflow: auto;
  position: fixed;
  right: 28px;
  top: 96px;
  width: min(520px, calc(100vw - 56px));
  z-index: 80;
}

.employee-address-dialog[hidden] {
  display: none;
}

.employee-address-dialog-header {
  align-items: center;
  border-bottom: 1px solid #dddddd;
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 16px;
}

.employee-address-dialog-header h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.employee-address-dialog-body {
  display: grid;
  padding: 8px 0;
}

.employee-address-suggestion {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  color: #20242a;
  cursor: pointer;
  font: inherit;
  padding: 9px 10px;
  text-align: left;
}

.employee-address-suggestion:hover {
  background: #eef6fb;
}

.employee-address-empty {
  color: #777777;
  margin: 0;
  padding: 14px 16px;
}

.employee-inline-action {
  align-self: end;
}

.employee-access-panel {
  display: grid;
  gap: 14px;
}

.employee-access-roles-panel {
  border: 1px solid #dddddd;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.employee-access-roles-panel header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.employee-access-roles-panel h4 {
  font-size: 16px;
  margin: 0;
}

.employee-access-roles-panel header span,
.employee-access-permissions-summary small {
  color: #777777;
}

.employee-access-roles-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.employee-access-role-row {
  align-items: start;
  border: 1px solid #eeeeee;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 48px;
  padding: 8px;
}

.employee-access-role-row:hover {
  background: #f7fbff;
}

.employee-access-role-row input {
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.employee-access-role-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.employee-access-role-row small {
  color: #777777;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-access-permissions-summary {
  align-items: center;
  background: #f7f7f7;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
}

.employee-access-device-actions {
  display: flex;
  justify-content: flex-start;
}

.employee-mobile-devices-panel {
  border: 1px solid #dddddd;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.employee-mobile-devices-panel header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.employee-mobile-devices-panel h4 {
  font-size: 16px;
  margin: 0;
}

.employee-mobile-devices-panel header span {
  color: #777777;
}

.employee-mobile-devices-list {
  display: grid;
  gap: 8px;
}

.employee-mobile-device {
  border: 1px solid #eeeeee;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.4fr) 28px;
  padding: 8px;
}

.employee-mobile-device.revoked {
  color: #888888;
}

.employee-mobile-device strong,
.employee-mobile-device small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-mobile-device small {
  color: #777777;
}

.employee-mobile-device dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.employee-mobile-device dl div {
  display: grid;
  gap: 2px;
}

.employee-mobile-device dt {
  color: #777777;
  font-size: 11px;
}

.employee-mobile-device dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-mobile-device-actions {
  align-items: center;
  display: flex;
  justify-content: center;
}

.employee-mobile-device-delete {
  background: transparent;
  border: 0;
  color: #9b1c1c;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  min-height: 22px;
  padding: 0;
  width: 22px;
}

.employee-mobile-device-delete:hover {
  background: #f7d8d8;
}

.employee-payment-panel {
  display: grid;
  gap: 12px;
}

.employee-payment-panel table {
  min-width: 760px;
}

.employee-position-field {
  position: relative;
}

.employee-position-picker {
  position: relative;
}

.employee-position-trigger {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  color: #1f2933;
  cursor: pointer;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.employee-position-dropdown {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  box-shadow: 0 10px 24px rgb(0 0 0 / 16%);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 58;
}

.employee-position-dropdown[hidden] {
  display: none;
}

.employee-position-option {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 7px 8px;
}

.employee-position-option:hover {
  background: #eef6fb;
}

.employee-rate-dialog {
  z-index: 54;
  width: min(980px, calc(100vw - 48px));
}

.employee-rate-backdrop {
  z-index: 52;
}

.employee-rate-body {
  display: grid;
  gap: 12px;
  min-height: 280px;
}

.employee-payment-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.employee-payment-history-toggle {
  margin: 0 0 10px;
  width: fit-content;
}

.employee-payment-rate-history {
  margin-bottom: 10px;
}

.employee-rate-history-toggle {
  justify-self: start;
}

.employee-rate-history-toggle span:not(.employee-rate-history-label) {
  display: none;
}

.employee-rate-history {
  border: 1px solid #dddddd;
  max-height: 180px;
  overflow: auto;
}

.employee-rate-history[hidden] {
  display: none;
}

.employee-rate-history-footer[hidden] {
  display: none;
}

.employee-rate-history table {
  min-width: 620px;
}

.employee-rate-dialog .employee-rate-history-toggle,
.employee-rate-dialog .employee-rate-history {
  display: none;
}

.employee-rate-table table {
  min-width: 840px;
}

.employee-rate-table th:first-child,
.employee-rate-table td:first-child {
  width: 42px;
}

.employee-rate-table input,
.employee-rate-table select {
  border: 1px solid #cfcfcf;
  font: inherit;
  min-height: 34px;
  padding: 6px 8px;
  width: 100%;
}

.row-delete-button {
  background: transparent;
  border: 0;
  color: #a33a3a;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  min-height: 30px;
  min-width: 30px;
}

.employee-rate-footer {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.employee-rate-actions {
  display: flex;
  gap: 10px;
}

.employee-scaffold-panel {
  border: 1px solid #dddddd;
  border-radius: 4px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.employee-scaffold-panel h3,
.employee-scaffold-panel p {
  margin: 0;
}

.employee-card-footer {
  align-items: end;
  background: #eeeeee;
  border-top: 1px solid #dddddd;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 1fr) auto;
  padding: 14px 18px;
}

.employee-permissions-editor {
  display: grid;
  gap: 6px;
}

.employee-card-actions {
  display: flex;
  gap: 10px;
}

.access-rights-workspace-row > td {
  background: #ffffff;
  border: 0;
  padding: 0;
}

.access-rights-page {
  display: grid;
  gap: 14px;
  padding: 0 0 14px;
}

.access-rights-titlebar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 42px;
}

.access-rights-titlebar h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.access-bulk-button {
  background: #3c82f6;
  border-color: #3c82f6;
  box-shadow: 0 2px 4px rgb(0 0 0 / 18%);
  color: #ffffff;
  min-height: 34px;
}

.access-rights-editor {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1fr);
  min-height: min(620px, calc(100vh - 245px));
}

.access-roles-panel,
.access-permissions-panel {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  display: grid;
  gap: 14px;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 16px;
}

.access-roles-panel h4,
.access-permissions-panel h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.access-roles-panel input[type="search"],
.access-permissions-panel input[type="search"] {
  border: 1px solid #d7d7d7;
  box-shadow: none;
  font: inherit;
  min-height: 48px;
  padding: 10px 14px;
}

.access-roles-list,
.access-permissions-tree {
  min-height: 0;
  overflow: auto;
}

.access-role-row {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 36px;
  padding: 6px 0;
  text-align: left;
  width: 100%;
}

.access-role-row:hover,
.access-role-row.active {
  color: #111111;
  font-weight: 600;
}

.access-role-radio {
  border: 2px solid #777777;
  border-radius: 50%;
  display: block;
  height: 20px;
  width: 20px;
}

.access-role-row.active .access-role-radio {
  background: #3c82f6;
  border-color: #3c82f6;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.access-tree-toolbar {
  align-items: center;
  background: #f5f8fc;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 10px 12px;
}

.access-tree-expand,
.access-select-all {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.access-tree-expand {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.access-tree-expand span:first-child {
  color: #666666;
  display: inline-block;
  font-size: 26px;
  line-height: 1;
  transition: transform 160ms ease;
}

.access-tree-expand.open span:first-child {
  transform: rotate(90deg);
}

.access-select-all input,
.access-tree-row input[type="checkbox"] {
  height: 18px;
  margin: 0;
  width: 18px;
}

.access-tree-group {
  border-bottom: 1px solid #e1e1e1;
}

.access-tree-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 48px;
  padding: 7px 12px;
}

.access-tree-group-row {
  grid-template-columns: 26px 24px minmax(0, 1fr) auto;
}

.access-tree-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 24px;
  padding: 0;
  position: relative;
  width: 24px;
}

.access-tree-toggle::before {
  border-bottom: 2px solid #666666;
  border-right: 2px solid #666666;
  content: "";
  height: 8px;
  left: 7px;
  position: absolute;
  top: 6px;
  transform: rotate(-45deg);
  transition: transform 160ms ease, top 160ms ease;
  width: 8px;
}

.access-tree-toggle.open::before {
  top: 4px;
  transform: rotate(45deg);
}

.access-folder-icon {
  border: 2px solid #777777;
  border-radius: 2px;
  display: block;
  height: 14px;
  position: relative;
  width: 20px;
}

.access-folder-icon::before {
  background: #ffffff;
  border-left: 2px solid #777777;
  border-top: 2px solid #777777;
  content: "";
  height: 5px;
  left: 1px;
  position: absolute;
  top: -7px;
  width: 9px;
}

.access-permission-row {
  cursor: pointer;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  min-height: 42px;
}

.access-permission-row:hover {
  background: #f8fbff;
}

.access-permission-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.access-permission-copy small {
  color: #8b8f96;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-empty {
  color: #777777;
  margin: 0;
  padding: 12px 0;
}

.access-rights-footer {
  display: flex;
  justify-content: end;
}

.access-bulk-dialog {
  width: min(1120px, calc(100vw - 48px));
}

.access-bulk-body {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  max-height: min(680px, calc(100vh - 170px));
  min-height: 420px;
  overflow: auto;
}

.access-bulk-body h3 {
  font-size: 17px;
  margin: 0 0 10px;
}

.access-bulk-roles,
.access-bulk-permissions {
  border: 1px solid #dddddd;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 12px;
}

.access-bulk-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.access-bulk-group {
  border-bottom: 1px solid #eeeeee;
  display: grid;
  gap: 6px;
  padding: 0 0 10px;
}

.access-bulk-permission-row {
  align-items: start;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 34px;
  padding: 4px 0;
}

.access-bulk-permission-row input {
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.access-bulk-permission-row span {
  display: grid;
  min-width: 0;
}

.access-bulk-permission-row small {
  color: #8b8f96;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-bulk-footer {
  align-items: center;
  gap: 10px;
}

.access-bulk-footer [data-access-bulk-status] {
  color: #666666;
  margin-right: auto;
}

@media (max-width: 1180px) {
  .access-rights-editor {
    grid-template-columns: 1fr;
  }

  .access-bulk-body {
    grid-template-columns: 1fr;
  }
}

.employee-settings-grid {
  display: grid;
  gap: 10px;
}

.employee-settings-card {
  align-items: center;
  border: 1px solid #dddddd;
  border-radius: 4px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.employee-settings-card h4,
.employee-settings-card p {
  margin: 0;
}

.employee-settings-card h4 {
  font-size: 15px;
  font-weight: 600;
}

.employee-settings-card p {
  color: #6f7782;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
}

.employee-pin-settings-card {
  margin-bottom: 10px;
}

.employee-pin-length-control {
  align-items: center;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.employee-pin-length-control span {
  color: #4d5560;
  font-size: 12px;
}

.employee-pin-length-control input {
  max-width: 96px;
}

.employee-positions-dialog {
  width: min(1120px, calc(100vw - 48px));
}

.employee-positions-body {
  display: grid;
  gap: 14px;
  grid-template-rows: auto minmax(0, 1fr);
}

.employee-positions-table {
  min-height: 0;
}

.employee-positions-table table {
  min-width: 940px;
}

.employee-position-form-dialog {
  width: min(640px, calc(100vw - 48px));
}

.confirm-dialog.employee-position-form-dialog {
  z-index: 54;
}

.employee-position-form {
  display: grid;
  gap: 12px;
}

.employee-position-form .field-row {
  align-items: center;
  gap: 14px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0;
}

.employee-position-form input,
.employee-position-form select {
  border: 1px solid #cfcfcf;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.money-inline {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.group-dialog {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  display: flex;
  flex-direction: column;
  height: min(460px, calc(100vh - 46px));
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 42px));
  z-index: 43;
}

.bulk-edit-dialog {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  width: min(560px, 100vw);
  z-index: 43;
}

.bulk-modifiers-dialog {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  width: min(1180px, calc(100vw - 80px));
  z-index: 43;
}

.bulk-modifiers-subtitle {
  color: #666666;
  font-size: 13px;
  margin: 6px 0 0;
  text-align: center;
}

.bulk-modifiers-body {
  gap: 12px;
}

.bulk-modifiers-note {
  background: #f5f7f8;
  border: 1px solid #d9e0e4;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.bulk-modifiers-note span {
  color: #555555;
  font-size: 13px;
}

.bulk-modifiers-footer {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bulk-modifiers-footer-actions {
  display: flex;
  gap: 10px;
}

.bulk-edit-block {
  border: 1px solid #dddddd;
  border-radius: 4px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.bulk-sale-places {
  display: grid;
  gap: 8px;
  padding-left: 4px;
}

.group-dialog-header {
  align-items: center;
  border-bottom: 1px solid #dddddd;
  display: flex;
  justify-content: center;
  min-height: 70px;
  padding: 16px 72px 16px 28px;
  position: relative;
}

.group-dialog-header h3 {
  font-size: 24px;
  font-weight: 300;
  margin: 0;
}

.group-dialog-body {
  display: grid;
  flex: 1;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px;
}

.group-dialog-footer {
  align-items: center;
  background: #eeeeee;
  border-top: 1px solid #dddddd;
  display: flex;
  gap: 12px;
  min-height: 70px;
  padding: 12px 28px;
}

.order-dialog-header {
  align-items: center;
  border-bottom: 1px solid #dddddd;
  display: flex;
  min-height: 74px;
  padding: 16px 72px 16px 28px;
  position: relative;
}

.order-dialog-header h2 {
  font-size: 24px;
  font-weight: 300;
  margin: 0;
}

.order-dialog-close {
  right: 16px;
  top: 10px;
}

.order-dialog-body {
  align-content: start;
  display: grid;
  flex: 1;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px 28px;
}

.order-form-grid {
  align-content: start;
  align-items: end;
  align-self: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 190px 190px minmax(260px, 1fr);
}

.inventory-form-grid {
  align-content: start;
  align-items: end;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.inventory-form-grid label,
.inventory-form-grid .inventory-comment {
  color: #606060;
  font-size: 12px;
  gap: 3px;
}

.inventory-form-grid input,
.inventory-form-grid select {
  font-size: 13px;
  min-height: 30px;
  padding: 4px 7px;
}

.inventory-document-body {
  align-content: start;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.inventory-document-body > .table-wrap {
  min-height: 0;
  overflow: auto;
  width: 100%;
}

.inventory-document-body > .table-wrap > .inventory-lines-table {
  min-width: 100%;
  width: 100%;
}

.production-ingredients-panel {
  border-top: 1px solid #d6d6d6;
  display: grid;
  gap: 6px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 170px;
  overflow: hidden;
  padding-top: 8px;
  position: relative;
}

.inventory-panel-resize-handle {
  cursor: ns-resize;
  height: 10px;
  left: 0;
  position: absolute;
  right: 0;
  top: -5px;
  z-index: 4;
}

.inventory-panel-resize-handle::after {
  background: #aeb8bf;
  border-radius: 999px;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  width: 64px;
}

.inventory-panel-resize-handle:hover::after,
.is-resizing-inventory-panel .inventory-panel-resize-handle::after {
  background: #4f8fbd;
}

.production-ingredients-panel > header {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.production-ingredients-panel h3 {
  color: #4f5b62;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.production-ingredients-wrap {
  max-width: 100%;
  min-height: 0;
  overflow: auto;
}

.production-ingredients-panel > .table-wrap {
  min-height: 0;
  overflow: auto;
}

.production-ingredients-table {
  table-layout: fixed;
  min-width: 720px;
  width: 100%;
}

.production-ingredients-table th,
.production-ingredients-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.production-ingredient-negative td {
  color: #d7203c;
  font-weight: 600;
}

.order-form-grid > label,
.inventory-form-grid > label {
  align-self: end;
}

.inventory-check-row {
  align-self: end;
  min-height: 30px;
}

.inventory-comment {
  display: grid;
  grid-column: span 2;
  position: relative;
}

.inventory-comment-control {
  position: relative;
}

.inventory-comment-control [data-inventory-comment-preview] {
  cursor: pointer;
  padding-right: 30px;
}

.inventory-comment-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #4f5b62;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 28px;
}

.inventory-comment-control.open .inventory-comment-toggle span {
  transform: rotate(225deg);
}

.inventory-comment-toggle span {
  transition: transform 120ms ease;
}

.inventory-chevron-icon {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  height: 8px;
  transform: rotate(45deg);
  width: 8px;
}

.inventory-comment-popover {
  background: #ffffff;
  border: 1px solid #c8d3dc;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  display: grid;
  gap: 8px;
  left: 0;
  min-width: 320px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 58;
}

.inventory-comment-popover[hidden] {
  display: none;
}

.inventory-comment-popover textarea {
  border: 1px solid #cfcfcf;
  font: inherit;
  font-size: 13px;
  min-height: 92px;
  min-width: 100%;
  padding: 6px 8px;
  resize: both;
  width: 100%;
}

.inventory-comment-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.inventory-refresh-products {
  align-self: end;
  grid-column: 4;
  justify-self: end;
  min-height: 32px;
}

.inventory-supplier-control {
  display: block;
  position: relative;
}

.inventory-supplier-control [data-inventory-field="supplier_name"] {
  padding-right: 26px;
}

.inventory-supplier-action {
  background: transparent;
  border: 0;
  color: #2d5f89;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  height: 22px;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
}

.inventory-supplier-action:hover {
  color: #123d5f;
}

.inventory-supplier-suggestions {
  background: #ffffff;
  border: 1px solid #b7c7d8;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 75;
}

.inventory-supplier-suggestions[hidden] {
  display: none;
}

.inventory-supplier-suggestions button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e6ebef;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 28px;
  padding: 4px 8px;
  text-align: left;
}

.inventory-supplier-suggestions button:hover,
.inventory-supplier-suggestions button.active {
  background: #eef5fb;
}

.inventory-supplier-suggestions small {
  color: #6b7480;
  font-size: 11px;
  font-weight: 400;
}

.inventory-lines-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.inventory-lines-table-writeoff {
  min-width: 0;
  width: 100%;
}

.inventory-lines-table th,
.inventory-lines-table td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 24px;
  line-height: 1.15;
  padding: 2px 5px;
  position: relative;
  vertical-align: middle;
  white-space: nowrap;
}

.inventory-lines-table th:last-child,
.inventory-lines-table td:last-child {
  border-right: 0;
}

.inventory-lines-table th {
  background: #f7f7f7;
  color: #4d4d4d;
  font-weight: 500;
  height: 40px;
  line-height: 1.2;
  overflow: hidden;
  padding-right: 10px;
  position: relative;
  position: sticky;
  text-overflow: ellipsis;
  top: 0;
  white-space: normal;
  z-index: 1;
}

.inventory-lines-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.inventory-lines-table tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

.inventory-lines-table input,
.inventory-lines-table select {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-size: 12px;
  height: 22px;
  min-height: 22px;
  min-width: 0;
  padding: 2px 4px;
  width: 100%;
}

.inventory-lines-table input:focus,
.inventory-lines-table select:focus {
  background: #ffffff;
  border-color: #8bb7df;
  box-shadow: inset 0 0 0 1px rgba(11, 102, 178, 0.2);
  outline: 0;
}

.inventory-lines-table input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.inventory-document-dialog input[type="checkbox"],
.inventory-lines-table input[type="checkbox"],
.invoice-document-list-table input[type="checkbox"] {
  box-shadow: none;
  height: 16px;
  margin: 0 auto;
  min-height: 16px;
  padding: 0;
  width: 16px;
}

.inventory-lines-table input[type="number"]::-webkit-inner-spin-button,
.inventory-lines-table input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.inventory-lines-table [data-line-field="product_name"] {
  font-weight: 700;
  min-width: 90px;
}

.inventory-lines-table [data-line-field="product_code"],
.inventory-lines-table [data-line-field="packaging_id"],
.inventory-lines-table [data-line-field="unit_name"],
.inventory-lines-table [data-line-field="unit_price"] {
  min-width: 0;
}

.inventory-column-resize-handle {
  bottom: 0;
  cursor: col-resize;
  position: absolute;
  right: 0;
  top: 0;
  width: 8px;
  z-index: 5;
}

.inventory-column-resize-handle::after {
  background: #b8c4cc;
  bottom: 6px;
  content: "";
  position: absolute;
  right: 3px;
  top: 6px;
  width: 1px;
}

.inventory-column-resize-handle:hover::after {
  background: #4f8fbd;
  width: 2px;
}

.inventory-lines-table .inventory-numeric-column {
  width: 8ch;
}

.inventory-product-name-cell {
  min-width: 0;
  overflow: visible;
  position: relative;
}

.inventory-product-name-control {
  align-items: center;
  display: block;
  min-width: 0;
  position: relative;
}

.inventory-lines-table-writeoff .inventory-product-name-cell {
  overflow: visible;
}

.inventory-lines-table-writeoff .inventory-product-name-control {
  grid-template-columns: minmax(0, 1fr);
}

.inventory-lines-table-writeoff .inventory-product-action {
  display: none;
}

.inventory-lines-table-production .inventory-product-name-control {
  display: block;
}

.inventory-lines-table-production .inventory-product-action {
  display: inline-flex;
}

.inventory-lines-table-writeoff [data-line-field="product_name"] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-product-name-control [data-line-field="product_name"] {
  padding-right: 24px;
}

.inventory-product-action {
  align-items: center;
  background: transparent;
  border: 0;
  color: #2d5f89;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
}

.inventory-product-action[hidden] {
  display: none;
}

.inventory-product-action:hover {
  color: #123d5f;
}

.inventory-product-suggestions {
  background: #ffffff;
  border: 1px solid #b7c7d8;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  display: grid;
  left: 4px;
  max-height: 220px;
  min-width: min(420px, calc(100vw - 80px));
  overflow: auto;
  position: absolute;
  right: 4px;
  top: calc(100% + 2px);
  z-index: 65;
}

.inventory-product-suggestions[hidden] {
  display: none;
}

.inventory-product-suggestions button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e6ebef;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 26px;
  padding: 4px 8px;
  text-align: left;
}

.inventory-product-suggestions button:hover,
.inventory-product-suggestions button.active {
  background: #eef5fb;
}

.inventory-product-suggestions small {
  color: #6b7480;
  font-size: 11px;
  font-weight: 400;
}

.inventory-line-number-col {
  color: #5b6470;
  min-width: 34px;
  text-align: right;
  width: 34px;
}

.inventory-lines-table input.invalid-value {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

.line-field-error {
  color: #c62828;
  display: none;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 2px;
}

.line-delete-col {
  min-width: 34px;
  text-align: center;
  width: 34px;
}

.line-delete-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #8a8a8a;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0;
}

.line-delete-button:hover {
  color: #c62828;
}

.inventory-lines-table [data-line-field="quantity"],
.inventory-lines-table [data-line-field="unit_price"],
.inventory-lines-table [data-line-field="amount"],
.inventory-lines-table [data-line-field="stock_before"],
.inventory-lines-table [data-line-field="stock_after"] {
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.inventory-lines-table [data-line-field="quantity"] {
  min-width: 0;
}

.inventory-lines-table [data-line-field="packaging_id"] {
  appearance: none;
  background-image: none;
  padding-right: 4px;
}

.inventory-lines-table-writeoff [data-line-field="variant_id"] {
  appearance: none;
  background-image: none;
  padding-right: 4px;
}

.inventory-lines-table [data-line-field="quantity"] {
  appearance: textfield;
}

.inventory-lines-table [data-line-field="quantity"]::-webkit-inner-spin-button,
.inventory-lines-table [data-line-field="quantity"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.inventory-count-zones {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.inventory-count-detail {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.inventory-count-detail-actions,
.inventory-count-line-editor {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-count-assignment-tabs {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inventory-count-assignment-tabs button {
  background: #eef2f3;
  border: 1px solid #cfd8dc;
  color: #263238;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 42px;
  min-width: 128px;
  padding: 5px 10px;
  text-align: left;
}

.inventory-count-assignment-tabs button.active {
  background: #dce775;
  border-color: #9eaa2f;
}

.inventory-count-assignment-tabs button.inventory-count-assignment-tab-review {
  background: #f6d6d6;
  border-color: #d99a9a;
  color: #7a1f1f;
}

.inventory-count-assignment-tabs button.inventory-count-assignment-tab-review.active {
  background: #f1c3c3;
  border-color: #c86f6f;
}

.inventory-count-review-cancel {
  background: #f6d6d6;
  border-color: #d99a9a;
  color: #7a1f1f;
}

.inventory-count-assignment-tabs span {
  font-weight: 600;
}

.inventory-count-assignment-tabs small {
  color: #607d8b;
  font-size: 11px;
}

.inventory-count-assignment-tabs .inventory-count-refresh-tab {
  margin-left: auto;
  min-width: 110px;
  text-align: center;
}

.inventory-count-zone-summary {
  align-items: center;
  background: #f7f7f7;
  border: 1px solid #dedede;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 30px;
  padding: 4px 8px;
}

.inventory-count-zone-summary span {
  color: #455a64;
  font-size: 12px;
}

.inventory-count-final-review {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.inventory-count-final-header {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) max-content;
}

.inventory-count-final-header h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
}

.inventory-count-final-header p {
  color: #546e7a;
  font-size: 12px;
  margin: 0;
}

.inventory-count-final-active {
  justify-self: end;
  min-height: 28px;
  padding-top: 2px;
}

.inventory-count-final-groups {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.inventory-count-final-group {
  border: 1px solid #d8d8d8;
  display: grid;
  gap: 6px;
  padding: 8px;
}

.inventory-count-final-group header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.inventory-count-final-group h4 {
  font-size: 15px;
  margin: 0;
}

.inventory-count-final-group header span {
  color: #607d8b;
  font-size: 12px;
}

.inventory-count-final-meta {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.inventory-count-final-meta span {
  color: #455a64;
  font-size: 12px;
  min-width: 0;
}

.inventory-count-footer-back {
  margin-right: 8px;
}

.admin-document-inventory-zones {
  border: 1px solid #dddddd;
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
}

.admin-document-inventory-zones-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-document-inventory-zones-header h5 {
  margin: 0 0 4px;
}

.admin-document-inventory-zone-warehouse {
  max-width: 360px;
}

.admin-document-inventory-zones-table table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.admin-document-inventory-zones-table th:nth-child(4),
.admin-document-inventory-zones-table td:nth-child(4) {
  width: 150px;
}

.admin-document-inventory-zones-table th,
.admin-document-inventory-zones-table td {
  border-right: 1px solid #dddddd;
  font-size: 12px;
  padding: 3px 5px;
}

.admin-document-inventory-zones-table th {
  background: #f2f2f2;
  height: 28px;
  text-align: left;
}

.admin-document-inventory-zones-table input {
  border: 1px solid #d6d6d6;
  box-shadow: none;
  font-size: 12px;
  min-height: 24px;
  padding: 2px 4px;
}

.admin-document-inventory-zone-actions {
  min-width: 0;
  width: 100%;
}

.admin-document-inventory-zones-header .admin-document-inventory-zone-actions {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  width: auto;
}

.admin-document-inventory-zone-actions-inner {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}

.admin-document-inventory-zone-actions .compact-button {
  min-width: 0;
  overflow: hidden;
  padding-left: 6px;
  padding-right: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-document-inventory-zone-actions .compact-button.is-saved {
  background: #cfeecf;
  border-color: #8fca8f;
  color: #1f5d26;
}

.admin-document-inventory-zones-note {
  margin: 0;
}

.inventory-count-wizard-body {
  align-content: start;
  gap: 10px;
  grid-auto-rows: max-content;
  grid-template-rows: none;
}

.inventory-count-wizard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(180px, 320px));
}

.inventory-count-wizard-grid label {
  display: grid;
  gap: 4px;
}

.inventory-count-wizard-note {
  align-self: start;
  background: #f7f7f7;
  border: 1px solid #dddddd;
  color: #455a64;
  display: block;
  font-size: 12px;
  justify-self: stretch;
  line-height: 1.35;
  max-width: none;
  padding: 8px 10px;
  text-align: center;
  width: 100%;
}

.inventory-count-wizard-zones {
  align-self: start;
  min-height: 0;
}

.inventory-count-wizard-zone-check {
  min-height: 24px;
}

.inventory-count-assignee-button {
  justify-content: flex-start;
  min-height: 28px;
  overflow: hidden;
  text-align: left;
  width: 100%;
}

.inventory-count-assignee-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-count-assignee-root {
  position: fixed;
  z-index: 12120;
}

.inventory-count-assignee-dialog {
  background: #ffffff;
  border: 1px solid #cfd6dc;
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%);
  max-width: min(520px, calc(100vw - 24px));
  position: fixed;
  transform: none;
  z-index: 12122;
}

.inventory-count-assignee-root .modal-backdrop {
  background: transparent;
  z-index: 12121;
}

.inventory-count-assignee-list {
  display: grid;
  gap: 4px;
  max-height: min(360px, calc(100vh - 90px));
  overflow: auto;
  padding: 6px;
}

.inventory-count-assignee-list .check-row {
  cursor: pointer;
  min-height: 28px;
  padding: 3px 6px;
}

.inventory-count-assignee-list .check-row:hover {
  background: #eef3f7;
}

.inventory-count-line-editor select,
.inventory-count-line-editor input,
.inventory-count-line-editor textarea {
  min-height: 28px;
}

.inventory-count-line-editor [data-inventory-line-product] {
  min-width: 260px;
}

.inventory-count-line-editor [data-inventory-line-quantity] {
  max-width: 120px;
}

.inventory-count-line-editor [data-inventory-line-comment] {
  min-width: 180px;
}

.inventory-count-deleted-filter {
  min-height: 30px;
  padding: 0 4px;
}

.inventory-count-header-warehouse {
  margin-right: 12px;
  min-width: 260px;
}

.inventory-count-lines-table {
  table-layout: fixed;
  width: 100%;
}

.inventory-count-lines-table input,
.inventory-count-lines-table textarea {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 22px;
  padding: 2px 4px;
}

.inventory-count-lines-table input:focus,
.inventory-count-lines-table textarea:focus {
  outline: 1px solid #9fb5c1;
  outline-offset: -1px;
}

.inventory-count-lines-table th {
  height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-count-lines-table td {
  height: 26px;
}

.inventory-count-lines-table [data-inventory-line-add],
.inventory-count-lines-table [data-inventory-line-recount] {
  font-size: 12px;
  line-height: 16px;
  min-height: 20px;
  padding: 1px 6px;
}

.inventory-count-lines-table .inventory-count-line-save-success {
  background: #dff3df;
  border-color: #a8d6a8;
  color: #1f5f1f;
}

.inventory-count-product-cell {
  position: relative;
}

.inventory-count-product-suggestions {
  left: 0;
  top: calc(100% + 2px);
  width: min(420px, 100%);
  z-index: 30;
}

.inventory-count-unknown-table {
  table-layout: fixed;
  width: 100%;
}

.inventory-count-unknown-table th:first-child,
.inventory-count-unknown-table td:first-child {
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
  width: 30px;
  white-space: nowrap;
}

.inventory-count-unknown-table .inventory-count-unknown-number-col {
  width: 30px;
}

.inventory-count-unknown-table .inventory-count-unknown-zone-col {
  width: 80px;
}

.inventory-count-unknown-table .inventory-count-unknown-name-col {
  width: 22%;
}

.inventory-count-unknown-table .inventory-count-unknown-quantity-col {
  width: 56px;
}

.inventory-count-unknown-table .inventory-count-unknown-photo-col {
  width: 72px;
}

.inventory-count-unknown-table .inventory-count-unknown-product-col {
  width: 28%;
}

.inventory-count-unknown-table .inventory-count-unknown-action-col {
  width: 104px;
}

.inventory-count-unknown-table td {
  vertical-align: middle;
}

.inventory-count-unknown-table td:nth-child(3) strong,
.inventory-count-unknown-table td:nth-child(3) small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-count-unknown-table [data-inventory-unknown-quantity] {
  min-height: 24px;
  min-width: 0;
  padding: 2px 4px;
}

.inventory-count-unknown-table [data-inventory-unknown-product] {
  box-sizing: border-box;
  min-height: 24px;
  min-width: 0;
  padding: 2px 4px;
  width: 100%;
}

.inventory-count-unknown-table td:last-child {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
  overflow: hidden;
}

.inventory-count-unknown-table .button-small {
  font-size: 11px;
  min-height: 22px;
  min-width: 0;
  overflow: hidden;
  padding: 2px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-count-unknown-photo {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  text-decoration: none;
}

.inventory-count-unknown-photo img {
  border: 1px solid #cfd8dc;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.inventory-count-unknown-photo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-count-photo-preview-root {
  z-index: 12000;
}

.inventory-count-photo-preview-root .modal-backdrop {
  z-index: 12000;
}

.inventory-count-photo-preview {
  background: #ffffff;
  box-shadow: 0 20px 60px rgb(0 0 0 / 35%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  left: 50%;
  max-height: min(92vh, 820px);
  max-width: min(92vw, 980px);
  min-height: 320px;
  min-width: min(92vw, 520px);
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12001;
}

.inventory-count-photo-preview header {
  align-items: center;
  border-bottom: 1px solid #d9dfe2;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 14px;
}

.inventory-count-photo-preview h3 {
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.inventory-count-photo-preview-body {
  align-items: center;
  background: #f5f7f8;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.inventory-count-photo-preview-body img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.inventory-count-comment-readonly {
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  font: inherit;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.inventory-count-comment-view {
  cursor: pointer;
}

.inventory-count-comment-view:hover {
  color: #0066aa;
  text-decoration: underline;
}

.inventory-count-comment-preview-root {
  inset: 0;
  position: fixed;
  z-index: 12010;
}

.inventory-count-comment-preview-backdrop {
  background: rgb(0 0 0 / 48%);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: fixed;
  z-index: 0;
}

.inventory-count-comment-preview {
  z-index: 1;
}

.inventory-count-comment-preview .confirm-header {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.inventory-count-comment-preview .confirm-header h3 {
  margin: 0;
}

.inventory-count-comment-preview .confirm-header .drawer-close {
  align-self: center;
  height: 40px;
  justify-self: center;
  position: relative;
  right: auto;
  top: auto;
  width: 40px;
}

.inventory-count-comment-preview .confirm-header .drawer-close::before,
.inventory-count-comment-preview .confirm-header .drawer-close::after {
  left: 6px;
  top: 19px;
  width: 30px;
}

.inventory-count-comment-preview .confirm-body p {
  margin: 0;
  white-space: pre-wrap;
}

.inventory-count-comment-cell {
  overflow: visible;
  position: relative;
}

.inventory-count-comment-cell textarea {
  display: block;
  font: inherit;
  height: 22px;
  line-height: 16px;
  min-height: 22px;
  overflow: hidden;
  resize: none;
  white-space: nowrap;
  width: 100%;
}

.inventory-count-comment-cell-open textarea {
  background: #ffffff;
  border: 1px solid #9fb5c1;
  box-shadow: 0 4px 12px rgb(0 0 0 / 12%);
  max-height: 180px;
  min-height: 46px;
  overflow: auto;
  position: absolute;
  right: 0;
  resize: both;
  top: 1px;
  white-space: normal;
  width: max(100%, 260px);
  z-index: 45;
}

.inventory-count-lines-table td:nth-child(5),
.inventory-count-lines-table td:nth-child(6),
.inventory-count-lines-table td:nth-child(7),
.inventory-count-lines-table td:nth-child(8) {
  text-align: right;
}

.inventory-count-show-inactive {
  align-items: center;
  margin-left: auto;
  min-height: 28px;
}

.inventory-count-line-inactive {
  color: #888888;
  text-decoration: line-through;
}

.inventory-count-line-inactive td {
  background: #eeeeee;
}

.inventory-count-aggregate-row td {
  background: #edf3f5;
  font-weight: 600;
}

.inventory-count-entry-row td {
  background: #ffffff;
}

.inventory-count-entry-pending td {
  background: #fff7d6;
}

.inventory-count-footer {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
}

.inventory-count-dialog .inventory-count-detail {
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
}

.inventory-count-document-body {
  grid-template-rows: auto minmax(0, 1fr);
}

.inventory-count-form-grid input {
  background: #f7f7f7;
}

.inventory-count-table-wrap {
  min-height: 0;
  overflow: auto;
}

.inventory-count-dialog-footer .inventory-save-state {
  margin-right: auto;
}

.inventory-count-line-delete {
  color: #b00020;
  min-width: 24px;
}

.inventory-zone-dialog {
  width: min(520px, calc(100vw - 32px));
}

.inventory-zone-form {
  display: grid;
  gap: 10px;
}

.inventory-zone-form label {
  display: grid;
  gap: 4px;
}

.inventory-zone-form span {
  color: #555555;
  font-size: 13px;
}

.inventory-zone-form textarea {
  border: 1px solid #cfcfcf;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 8%);
  font: inherit;
  min-height: 72px;
  padding: 6px 8px;
  resize: vertical;
}

.inventory-document-footer {
  justify-content: flex-end;
}

.inventory-total {
  margin-right: auto;
}

.inventory-save-state {
  color: #0b66b2;
  font-size: 13px;
  margin-right: 8px;
  min-width: 180px;
}

.order-comment textarea {
  border: 1px solid #cfcfcf;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 8%);
  font: inherit;
  min-height: 38px;
  padding: 7px 10px;
  resize: vertical;
  width: 100%;
}

.order-label-with-help {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  position: relative;
  width: max-content;
}

.order-help-button {
  align-items: center;
  background: #f6f7f8;
  border: 1px solid #b7c7d8;
  border-radius: 50%;
  color: #2c5f91;
  cursor: help;
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 18px;
}

.order-note {
  background: #fff7e5;
  border: 1px solid #f0d9a8;
  box-shadow: 0 10px 24px rgb(0 0 0 / 16%);
  color: #7a5900;
  display: none;
  font-size: 13px;
  left: calc(100% + 8px);
  line-height: 1.35;
  padding: 9px 12px;
  position: absolute;
  top: -8px;
  width: min(420px, 70vw);
  z-index: 55;
}

.order-label-with-help:hover .order-note,
.order-label-with-help:focus-within .order-note {
  display: block;
}

.price-category-tabs {
  align-items: flex-start;
  align-self: start;
  display: flex;
  max-width: 100%;
  min-height: 38px;
  overflow-x: auto;
}

.price-category-tabs .tab {
  flex: 0 0 auto;
}

.price-order-dialog {
  height: min(860px, calc(100vh - 28px));
  width: min(1520px, calc(100vw - 28px));
}

.price-order-dialog .order-dialog-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
  padding: 12px 16px;
}

.price-order-dialog .order-form-grid {
  gap: 8px 10px;
}

.price-order-dialog .order-form-grid input,
.price-order-dialog .order-form-grid textarea {
  font-size: 13px;
  min-height: 30px;
  padding: 4px 7px;
}

.order-lines-wrap {
  border-top: 1px solid #dddddd;
}

.price-order-dialog .order-form-grid,
.price-order-dialog .price-category-tabs {
  flex: 0 0 auto;
}

.price-order-dialog .order-lines-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  width: 100%;
}

.order-lines-table {
  min-width: 1120px;
}

.price-order-lines-table {
  border-collapse: collapse;
  font-size: 12px;
  min-width: 100%;
  table-layout: fixed;
  width: 100%;
}

.price-order-lines-table th,
.price-order-lines-table td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 22px;
  line-height: 1.15;
  padding: 1px 4px;
  vertical-align: middle;
}

.price-order-lines-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.price-order-lines-table tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

.price-order-lines-table th:nth-child(1) {
  width: 32px;
}

.price-order-lines-table th:nth-child(2) {
  width: 56px;
}

.price-order-lines-table th:nth-child(3) {
  width: 86px;
}

.price-order-lines-table th:nth-child(5),
.price-order-lines-table th:nth-child(n + 6) {
  width: 92px;
}

.order-lines-table .order-enabled-col {
  max-width: 54px;
  min-width: 54px;
  text-align: center;
  white-space: nowrap;
  width: 54px;
}

.order-lines-table input,
.order-lines-table select {
  font-size: 13px;
  min-height: 32px;
}

.price-order-lines-table input,
.price-order-lines-table select {
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 20px;
  padding: 2px 3px;
}

.order-line-check {
  justify-content: center;
  min-height: 32px;
}

.price-order-lines-table .order-line-check {
  min-height: 22px;
}

.line-remove {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d6d6d6;
  color: #a31f1f;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-height: 20px;
  padding: 0;
  width: 20px;
}

.line-remove:hover {
  background: #fff1f1;
  border-color: #b84a4a;
}

.price-order-lookup-cell {
  overflow: visible;
}

.price-order-lookup-control {
  position: relative;
}

.price-order-product-suggestions {
  background: #ffffff;
  border: 1px solid #b7c7d8;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  display: grid;
  left: 0;
  max-height: 220px;
  min-width: min(420px, calc(100vw - 80px));
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 65;
}

.price-order-product-suggestions[hidden] {
  display: none;
}

.price-order-product-suggestions button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e6ebef;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 26px;
  padding: 4px 8px;
  text-align: left;
}

.price-order-product-suggestions button:hover,
.price-order-product-suggestions button.active {
  background: #eef5fb;
}

.price-order-product-suggestions small {
  color: #6b7480;
  font-size: 11px;
  font-weight: 400;
}

.price-order-confirm-table-wrap {
  max-height: min(420px, calc(100vh - 280px));
}

.price-order-confirm-table {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
}

.price-order-confirm-table th,
.price-order-confirm-table td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 22px;
  line-height: 1.15;
  padding: 2px 5px;
  vertical-align: middle;
}

.price-order-confirm-table tbody tr:nth-child(odd) td {
  background: #ffffff;
}

.price-order-confirm-table tbody tr:nth-child(even) td {
  background: #f7f7f7;
}

.price-order-confirm-table th {
  background: #f1f3f4;
  font-weight: 600;
}

.order-dialog-footer {
  align-items: center;
  background: #eeeeee;
  border-top: 1px solid #dddddd;
  display: flex;
  gap: 12px;
  min-height: 70px;
  padding: 12px 28px;
}

.confirm-backdrop {
  background: rgb(0 0 0 / 36%);
  inset: 0;
  position: fixed;
  z-index: 44;
}

.confirm-dialog {
  background: #ffffff;
  box-shadow: 0 18px 42px rgb(0 0 0 / 26%);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-height: min(620px, calc(100vh - 70px));
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 60px));
  z-index: 45;
}

.nested-confirm-dialog {
  z-index: 53;
}

.confirm-header,
.confirm-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 14px 18px;
}

.confirm-header {
  border-bottom: 1px solid #dddddd;
}

.confirm-header h3 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.confirm-body {
  display: grid;
  flex: 1;
  gap: 12px;
  max-height: 430px;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px;
}

.confirm-body p {
  margin: 0;
}

.catalog-color-dialog {
  width: min(430px, calc(100vw - 40px));
}

.catalog-color-dialog .confirm-header,
.catalog-color-dialog .confirm-footer {
  gap: 8px;
  padding: 8px 10px;
}

.catalog-color-dialog .confirm-header h3 {
  font-size: 16px;
}

.catalog-color-dialog .confirm-body {
  gap: 8px;
  padding: 10px;
}

.catalog-color-field {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 44px;
  min-height: 32px;
}

.catalog-color-field input[type="color"] {
  height: 28px;
  padding: 1px;
  width: 44px;
}

.catalog-color-recent {
  display: flex;
  gap: 6px;
  min-height: 24px;
}

.catalog-color-recent button {
  background: var(--recent-color);
  border: 1px solid #bfc8d0;
  cursor: pointer;
  height: 22px;
  padding: 0;
  width: 22px;
}

.catalog-color-recent button:hover,
.catalog-color-recent button:focus {
  box-shadow: 0 0 0 2px rgba(7, 137, 218, 0.24);
  outline: 0;
}

.catalog-color-dialog .button {
  min-height: 28px;
  padding: 4px 10px;
}

.product-usage-dialog {
  max-height: min(760px, calc(100vh - 36px));
  width: min(1540px, calc(100vw - 28px));
}

.product-usage-header {
  justify-content: space-between;
}

.product-usage-header h3 {
  font-size: 24px;
}

.modal-close-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6a7378;
  cursor: pointer;
  display: inline-flex;
  font-size: 26px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.modal-close-button:hover {
  color: #2f373c;
}

.product-usage-body {
  gap: 8px;
  max-height: none;
  overflow: hidden;
  padding: 0;
}

.product-usage-toolbar {
  align-items: center;
  background: #f3f3f3;
  border-bottom: 1px solid #d5d5d5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.product-usage-field {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.product-usage-field span {
  color: #4a5962;
  font-size: 13px;
}

.product-usage-field input {
  border: 1px solid #bfc6ca;
  font: inherit;
  min-height: 26px;
  padding: 2px 6px;
}

.product-usage-field input[readonly] {
  background: #e9ecee;
  color: #6b7479;
}

.product-usage-field:first-child input {
  width: 220px;
}

.product-usage-search-field input {
  width: 130px;
}

.product-usage-date-field input {
  width: 150px;
}

.product-usage-table-wrap {
  max-height: min(560px, calc(100vh - 250px));
  overflow: auto;
}

.product-usage-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.product-usage-table th,
.product-usage-table td {
  border-right: 1px solid #d4d9dc;
  font-size: 13px;
  height: 24px;
  line-height: 1.15;
  padding: 2px 5px;
  white-space: nowrap;
}

.product-usage-table th {
  background: #f4f6f7;
  border-bottom: 1px solid #cbd2d6;
  color: #37464f;
  font-weight: 500;
  position: sticky;
  overflow: hidden;
  padding-right: 10px;
  text-align: left;
  top: 0;
  z-index: 1;
}

.product-usage-table th.numeric-column {
  text-align: right;
}

.product-usage-header-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.product-usage-column-resizer {
  bottom: 0;
  cursor: col-resize;
  position: absolute;
  right: -3px;
  top: 0;
  width: 7px;
  z-index: 2;
}

.product-usage-column-resizer::after {
  background: transparent;
  bottom: 4px;
  content: "";
  position: absolute;
  right: 3px;
  top: 4px;
  width: 1px;
}

.product-usage-column-resizer:hover::after,
.is-resizing-product-usage-column .product-usage-column-resizer::after {
  background: #8aa0ac;
}

.product-usage-table tbody tr:nth-child(even) {
  background: #f2f2f2;
}

.product-usage-table tbody tr.selected {
  background: #b8cce4;
}

.product-usage-table .numeric {
  max-width: 8ch;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
}

.product-usage-table [data-product-usage-open-tech-card] {
  cursor: pointer;
}

.product-usage-table [data-product-usage-open-tech-card]:hover {
  color: #0b66b2;
  text-decoration: underline;
}

.product-usage-row-number {
  color: #5f6a70;
  text-align: right;
  width: 28px;
}

.product-usage-check-cell {
  min-width: 24px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  vertical-align: middle;
  width: 24px;
}

.product-usage-table th.product-usage-check-cell {
  padding-left: 0;
  padding-right: 0;
}

.product-usage-check-cell .product-usage-header-label {
  align-items: center;
  display: grid;
  height: 100%;
  justify-content: center;
  min-height: 20px;
  place-items: center;
  width: 100%;
}

.product-usage-check-cell .product-usage-column-resizer {
  right: -3px;
  width: 5px;
  z-index: 1;
}

.product-usage-check-cell .product-usage-column-resizer::after {
  right: 3px;
}

.product-usage-check-cell input[type="checkbox"] {
  appearance: none;
  background: #ffffff;
  border: 1px solid #9ea9af;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 16px;
  margin: 0 auto;
  min-height: 0;
  padding: 0;
  position: relative;
  z-index: 3;
  width: 16px;
}

.product-usage-check-cell input[type="checkbox"]:checked {
  background: #2d7dd2;
  border-color: #2d7dd2;
}

.product-usage-check-cell input[type="checkbox"]:checked::after {
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 10px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 5px;
}

.product-usage-status {
  color: #4f5b62;
  flex: 1;
  font-size: 13px;
}

.product-usage-properties-dialog,
.product-usage-replace-dialog {
  width: min(660px, calc(100vw - 70px));
}

.product-usage-nested-body {
  gap: 12px;
  max-height: min(470px, calc(100vh - 160px));
}

.product-usage-interval,
.product-usage-direction {
  border: 1px solid #cbd2d6;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
}

.product-usage-direction {
  align-items: center;
  border: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  padding: 0;
}

.product-usage-direction legend {
  margin-right: 12px;
}

.product-usage-interval legend,
.product-usage-direction legend {
  color: #4a5962;
  font-weight: 600;
}

.product-usage-interval .check-row,
.product-usage-direction .check-row {
  align-items: center;
  display: flex;
  gap: 8px;
}

.product-usage-interval input[type="date"],
.product-usage-interval select,
.product-usage-replace-target input,
.product-usage-loss-grid input,
.product-usage-coefficient-field input {
  border: 1px solid #bfc6ca;
  font: inherit;
  min-height: 28px;
  padding: 2px 6px;
}

.product-usage-replace-target,
.product-usage-coefficient-field {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.product-usage-replace-search {
  display: block;
  position: relative;
}

.product-usage-replace-search input[type="search"] {
  width: 100%;
}

.product-usage-replace-suggestions {
  background: #ffffff;
  border: 1px solid #b8c4ca;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 30;
}

.product-usage-replace-suggestions[hidden] {
  display: none;
}

.product-usage-replace-suggestions button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  display: grid;
  font: inherit;
  gap: 2px;
  min-height: 30px;
  padding: 4px 8px;
  text-align: left;
}

.product-usage-replace-suggestions button.active,
.product-usage-replace-suggestions button:hover {
  background: #dceaf4;
}

.product-usage-replace-suggestions small {
  color: #66737a;
  font-size: 11px;
}

.product-usage-coefficient-field input {
  width: 136px;
}

.product-usage-loss-grid {
  align-items: center;
  display: grid;
  gap: 8px 24px;
  grid-template-columns: minmax(240px, 1fr) 110px 226px;
}

.product-usage-loss-grid-compact {
  grid-template-columns: minmax(260px, 1fr) 120px;
}

.product-usage-dialog-note {
  color: #59656b;
  flex: 1;
  font-size: 13px;
}

.confirm-table-wrap {
  max-height: 320px;
}

.confirm-footer {
  background: #eeeeee;
  border-top: 1px solid #dddddd;
  justify-content: flex-start;
}

.drawer {
  background: #ffffff;
  border-left: 1px solid #dddddd;
  box-shadow: -12px 0 24px rgb(0 0 0 / 18%);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: none;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(102%);
  transition: transform 180ms ease;
  width: min(1058px, calc(100vw - 43%));
  z-index: 90;
}

.drawer.open {
  transform: translateX(0);
}

.drawer.egais-product-overlay {
  z-index: 12081;
}

.drawer-backdrop.egais-product-overlay {
  z-index: 12080;
}

.drawer-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 56px;
  position: absolute;
  right: 22px;
  top: 22px;
  width: 56px;
}

.drawer-close::before,
.drawer-close::after {
  background: #9a9a9a;
  content: "";
  height: 2px;
  left: 8px;
  position: absolute;
  top: 27px;
  width: 42px;
}

.drawer-close::before {
  transform: rotate(45deg);
}

.drawer-close::after {
  transform: rotate(-45deg);
}

.drawer-header {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 112px;
  padding: 32px 76px 14px;
}

.drawer-header h2 {
  color: #20242a;
  font-size: 25px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
  text-align: center;
}

.drawer-header .muted {
  display: none;
}

.readiness-bar {
  display: none;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px 28px 92px 34px;
}

.detail-output {
  display: block;
}

.card-editor {
  display: grid;
  gap: 18px;
}

.field-row {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 4px;
}

.field-row > span {
  color: #909090;
  font-size: 18px;
  line-height: 1.2;
}

.field-row.required > span::after {
  color: #d53333;
  content: "*";
}

.field-row input,
.field-row select {
  font-size: 16px;
  min-height: 42px;
}

.field-row input[readonly],
.field-row select:disabled {
  background: #ffffff;
  color: #3a3a3a;
  opacity: 1;
}

.name-input input {
  border-color: #078cca;
  box-shadow: 0 0 0 1px #078cca;
}

.select-with-link {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.product-modifiers-panel {
  display: grid;
  gap: 8px;
}

.product-modifiers-toolbar {
  display: flex;
  gap: 6px;
}

.product-modifiers-table-wrap {
  border: 1px solid #d0d0d0;
  max-height: 430px;
}

.product-modifiers-table {
  font-size: 12px;
  min-width: 1120px;
  table-layout: fixed;
}

.product-modifiers-table th,
.product-modifiers-table td {
  padding: 2px 4px;
}

.product-modifiers-table th:nth-child(1),
.product-modifiers-table td:nth-child(1) {
  width: 72px;
}

.product-modifiers-table th:nth-child(2),
.product-modifiers-table td:nth-child(2) {
  width: 250px;
}

.product-modifiers-table th:nth-child(3),
.product-modifiers-table td:nth-child(3) {
  width: 190px;
}

.product-modifiers-table input {
  border: 0;
  font-size: 12px;
  min-height: 20px;
  width: 100%;
}

.product-modifiers-table input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.product-modifiers-table tr.selected td {
  background: #bfd0e5;
}

.product-modifiers-table tr[data-product-modifier-group="true"][data-product-modifier-depth="0"] td {
  background: #e7f0f8;
  font-weight: 600;
}

.product-modifiers-table tr[data-product-modifier-group="true"][data-product-modifier-depth="1"] td {
  background: #eaf5ef;
  font-weight: 600;
}

.product-modifiers-table tr[data-product-modifier-group="true"][data-product-modifier-depth="2"] td,
.product-modifiers-table tr[data-product-modifier-group="true"][data-product-modifier-depth="3"] td {
  background: #f3efd9;
  font-weight: 600;
}

.product-modifiers-table tr[data-product-modifier-group="false"][data-product-modifier-depth="1"] td {
  background: #f6fbf8;
}

.product-modifiers-table tr[data-product-modifier-group="false"][data-product-modifier-depth="2"] td,
.product-modifiers-table tr[data-product-modifier-group="false"][data-product-modifier-depth="3"] td {
  background: #fcf9ec;
}

.product-modifiers-table tr[data-product-modifier-group="false"][data-product-modifier-group-id]:not([data-product-modifier-group-id=""]) td:nth-child(2) input,
.product-modifiers-table tr[data-product-modifier-group="false"][data-product-modifier-group-id]:not([data-product-modifier-group-id=""]) td:nth-child(3) input {
  padding-left: 18px;
}

.product-modifiers-table tr[data-product-modifier-depth="1"] td:nth-child(2) input,
.product-modifiers-table tr[data-product-modifier-depth="1"] td:nth-child(3) input {
  padding-left: 28px;
}

.product-modifiers-table tr[data-product-modifier-depth="2"] td:nth-child(2) input,
.product-modifiers-table tr[data-product-modifier-depth="2"] td:nth-child(3) input {
  padding-left: 42px;
}

.product-modifiers-table tr[data-product-modifier-depth="3"] td:nth-child(2) input,
.product-modifiers-table tr[data-product-modifier-depth="3"] td:nth-child(3) input {
  padding-left: 56px;
}

.product-modifier-row-marker {
  align-items: center;
  color: #666666;
  display: flex;
  gap: 3px;
  justify-content: center;
  text-align: center;
}

.product-modifier-drag-handle {
  color: #7d858b;
  height: 22px;
  min-width: 22px;
  width: 22px;
}

.product-modifier-tree-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #4e5b64;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 18px;
}

.product-modifier-tree-toggle:disabled {
  color: #bdc5ca;
  cursor: default;
}

.product-modifier-toggle-spacer {
  display: inline-block;
  width: 18px;
}

.product-modifier-dialog {
  background: #ffffff;
  border: 1px solid #7f7f7f;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: min(620px, calc(100vh - 80px));
  left: 50%;
  max-width: 520px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 48px));
  z-index: 70;
}

.product-modifier-dialog-actions {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(0, 1fr) 220px;
  padding: 8px 12px;
}

.product-modifier-search {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.product-modifier-search span {
  color: #555555;
  font-size: 12px;
}

.product-modifier-search-control {
  align-items: center;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr) 26px 26px 42px;
}

.product-modifier-search-control input {
  font-size: 13px;
  min-height: 28px;
  padding: 4px 7px;
}

.product-modifier-search-control button {
  background: #ffffff;
  border: 1px solid #b7c3d0;
  color: #20242a;
  cursor: pointer;
  font-size: 13px;
  min-height: 26px;
  padding: 0;
}

.product-modifier-search-control button:hover {
  background: #eaf4ff;
}

.product-modifier-search-control [data-product-modifier-search-count] {
  color: #666666;
  font-size: 11px;
  text-align: right;
}

.product-modifier-dialog-actions .check-row {
  align-items: center;
  display: inline-grid;
  gap: 6px;
  grid-template-columns: 14px minmax(0, 1fr);
  justify-content: start;
  min-height: 20px;
}

.product-modifier-dialog-actions .check-row input,
.product-modifier-choice input {
  height: 13px;
  margin: 0;
  min-height: 13px;
  width: 13px;
}

.product-modifier-choice-list {
  border-top: 1px solid #d0d0d0;
  overflow: auto;
}

.product-modifier-choice-head,
.product-modifier-choice-group,
.product-modifier-choice {
  border-bottom: 1px solid #d6d6d6;
  display: block;
  font-size: 12px;
  padding: 3px 6px;
}

.product-modifier-choice-group {
  background: #f3f3f3;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: #555555;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.product-modifier-choice-group.selected {
  background: #cfe3f5;
  color: #20242a;
}

.product-modifier-choice-group.search-match,
.product-modifier-choice.search-match {
  background: #fff6bf;
}

.product-modifier-choice-group.search-current,
.product-modifier-choice.search-current {
  background: #ffd978;
  outline: 2px solid #d39b00;
  outline-offset: -2px;
}

.product-modifier-choice {
  align-items: center;
  display: flex;
  gap: 6px;
}

.product-modifier-choice-empty {
  color: #777777;
  padding: 16px;
}

.product-modifier-dialog-footer {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  padding: 8px 12px;
}

.product-modifier-dialog-footer span {
  color: #555555;
  font-size: 12px;
}

.catalog-link,
.link-button,
.settings-link {
  background: transparent;
  border: 0;
  color: #1d5f9f;
  cursor: default;
  font: inherit;
  font-size: 14px;
  padding: 0;
  text-align: left;
}

.inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  min-height: 34px;
}

.tab-strip-row {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-bottom: 8px;
}

.tab-strip-row > span {
  color: #909090;
  font-size: 19px;
}

.tab-strip {
  display: flex;
  min-width: 0;
}

.tab {
  background: linear-gradient(#ffffff, #f2f2f2);
  border: 1px solid #c9c9c9;
  color: #20242a;
  cursor: default;
  flex: 1 1 0;
  font: inherit;
  font-size: 16px;
  min-height: 38px;
  min-width: 0;
  padding: 5px 10px;
  white-space: nowrap;
}

.tab.active {
  background: #686868;
  border-color: #3c3c3c;
  box-shadow: 4px 0 0 #111111;
  color: #ffffff;
}

.tab-panel {
  display: grid;
  gap: 14px;
}

.subtab-strip {
  display: flex;
  min-width: 0;
  overflow-x: auto;
}

.subtab {
  background: #ffffff;
  border: 1px solid #c9c9c9;
  color: #20242a;
  cursor: default;
  flex: 0 0 auto;
  font: inherit;
  font-size: 14px;
  min-height: 32px;
  min-width: 112px;
  padding: 5px 12px;
  white-space: nowrap;
}

.subtab + .subtab {
  border-left: 0;
}

.subtab.active {
  background: #686868;
  border-color: #3c3c3c;
  color: #ffffff;
}

.money-row {
  grid-template-columns: 180px 172px 1fr;
}

.money-row em {
  color: #9a9a9a;
  font-size: 15px;
  font-style: normal;
}

.vat-disabled-row > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-price-table-row {
  align-items: start;
}

.card-price-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.card-price-table {
  min-width: 360px;
}

.card-price-table th,
.card-price-table td {
  font-size: 14px;
  min-width: 132px;
  padding: 8px 10px;
}

.card-price-table td strong {
  font-size: 15px;
}

.card-summary {
  display: none;
}

.settings-editor {
  display: grid;
  gap: 14px;
}

.settings-editor-toolbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.localized-table-language-picker {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.localized-table-language-picker > span {
  color: #59656b;
  font-size: 13px;
}

.settings-block {
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-collapsible-block {
  gap: 0;
  padding: 0;
}

.settings-block-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  min-height: 56px;
  padding: 12px 14px;
}

.settings-block-summary::-webkit-details-marker {
  display: none;
}

.settings-block-summary::before {
  border: solid #666666;
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  transform: rotate(45deg);
  transition: transform 120ms ease;
  width: 8px;
}

.settings-collapsible-block:not([open]) .settings-block-summary::before {
  transform: rotate(-45deg);
}

.settings-block-summary span {
  display: grid;
  flex: 1;
  gap: 4px;
}

.settings-block-summary strong {
  color: #20242a;
  font-size: 16px;
  font-weight: 500;
}

.settings-block-summary small {
  color: #777777;
  font-size: 12px;
}

.settings-block-body {
  border-top: 1px solid #e8e8e8;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.settings-block-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.settings-block-header h3 {
  color: #20242a;
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 4px;
}

.settings-block-header p {
  margin: 0;
}

.settings-checks {
  display: grid;
  gap: 8px;
}

.settings-block-table-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.settings-block-table-header span {
  color: #20242a;
  font-size: 15px;
}

.settings-block-footer {
  border-top: 1px solid #e2e2e2;
  display: flex;
  gap: 10px;
  padding-top: 12px;
}

.settings-table-wrap {
  max-height: 520px;
}

.settings-table-wrap th:first-child,
.settings-table-wrap td:first-child {
  width: 46px;
}

.settings-table-wrap input {
  width: 100%;
}

.product-sizes-panel {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.product-marketing-panel {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.product-preparation-time-panel {
  display: grid;
  gap: 12px;
  max-width: 360px;
  padding-top: 14px;
}

.product-marketing-size-tags {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.combo-scheme-group-row td {
  background: #eef3f6;
  border-bottom: 1px solid var(--line);
  color: #4f5a63;
  padding: 10px 12px;
}

.combo-scheme-group-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.combo-scheme-group-row span {
  color: #6f7782;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.combo-scheme-editor-row > td {
  background: #ffffff;
  padding: 0;
}

.combo-scheme-editor-list {
  display: grid;
  gap: 14px;
  padding: 10px 0 24px;
}

.combo-scheme-card {
  background: #ffffff;
  border: 1px solid #d7d7d7;
  min-width: 760px;
}

.combo-scheme-card.selected {
  border-color: #8fb0c8;
  box-shadow: inset 3px 0 0 #2f85c9;
}

.combo-scheme-card-header {
  align-items: center;
  background: #c9c9c9;
  display: grid;
  gap: 22px;
  grid-template-columns: 34px minmax(240px, 1fr) 222px 100px;
  min-height: 66px;
  padding: 0 40px 0 16px;
}

.combo-scheme-card-header select,
.combo-scheme-card-header input {
  background: #ffffff;
  border: 1px solid #c5cbd0;
  border-radius: 0;
  color: #394047;
  font-size: 18px;
  height: 38px;
  min-width: 0;
  text-align: center;
}

.combo-scheme-card-header select {
  text-align-last: center;
}

.combo-scheme-name-input::placeholder {
  color: #b8b8b8;
}

.combo-scheme-price-input {
  width: 100px;
}

.combo-scheme-collapse {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 34px;
  position: relative;
  width: 34px;
}

.combo-scheme-collapse::before {
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 14px solid #2f3c3f;
  content: "";
  left: 1px;
  position: absolute;
  top: 10px;
}

.combo-scheme-card.collapsed .combo-scheme-collapse::before {
  border-bottom: 14px solid transparent;
  border-left: 14px solid #2f3c3f;
  border-right: 0;
  border-top: 14px solid transparent;
  left: 8px;
  top: 3px;
}

.combo-scheme-card-body {
  display: grid;
  gap: 18px;
  padding: 8px 26px 20px 72px;
}

.combo-scheme-lines {
  border-collapse: collapse;
  width: min(680px, 100%);
}

.combo-scheme-lines th {
  color: #3f464c;
  font-size: 12px;
  font-weight: 400;
  height: 24px;
  text-align: left;
}

.combo-scheme-lines th:first-child,
.combo-scheme-lines td:first-child {
  text-align: center;
  width: 90px;
}

.combo-scheme-lines th:last-child,
.combo-scheme-lines td:last-child {
  text-align: center;
  width: 38px;
}

.combo-scheme-lines input {
  background: transparent;
  border: 1px solid transparent;
  color: #84909b;
  font-size: 14px;
  height: 30px;
  width: 100%;
}

.combo-scheme-lines input:focus {
  background: #ffffff;
  border-color: #9fc4e7;
  outline: none;
}

.combo-scheme-lines input[type="number"] {
  text-align: center;
}

.combo-line-remove {
  background: transparent;
  border: 0;
  color: #7f878c;
  cursor: pointer;
  font-size: 14px;
  height: 26px;
  width: 26px;
}

.combo-line-remove:hover {
  color: #c33535;
}

.combo-scheme-extra-section {
  display: grid;
  gap: 8px;
}

.combo-scheme-extra-section h3 {
  color: #3f464c;
  font-size: 22px;
  font-weight: 400;
  margin: 6px 0 6px 10px;
}

.combo-scheme-extra-lines {
  margin-left: 50px;
  width: min(650px, calc(100% - 50px));
}

.combo-scheme-extra-lines th:first-child,
.combo-scheme-extra-lines td:first-child {
  text-align: left;
  width: 200px;
}

.combo-scheme-card-footer {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding-right: 0;
}

.combo-scheme-active-check {
  align-items: center;
  color: #3f464c;
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  white-space: nowrap;
}

.combo-scheme-active-check input {
  height: 14px;
  margin: 0;
  width: 14px;
}

.quick-menu-editor-row > td,
.workspace-placeholder-row > td {
  border-bottom: 0;
  padding: 0;
}

.quick-menu-list-panel {
  display: block;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

.quick-menu-list-panel > .table-wrap {
  min-height: 0;
  overflow: visible;
  position: static;
}

.quick-menu-list-panel table,
.quick-menu-list-panel tbody,
.quick-menu-list-panel tr {
  display: block;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.quick-menu-list-panel table,
.quick-menu-list-panel #products-body {
  height: 100%;
  min-height: 0;
  width: 100%;
}

.quick-menu-list-panel .quick-menu-editor-row,
.quick-menu-list-panel .quick-menu-editor-row > td {
  display: block;
  overflow: visible;
  position: static;
}

.quick-menu-editor,
.menu-workspace-placeholder {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 18px;
}

.menu-workspace-placeholder {
  display: grid;
  gap: 18px;
}

.menu-workspace-placeholder h3,
.quick-menu-editor-source h4,
.quick-menu-editor-preview h4 {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.menu-workspace-placeholder p {
  color: #7a7a7a;
  margin: 4px 0 0;
}

.quick-menu-editor-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(520px, 1.35fr) minmax(320px, 0.8fr);
  align-items: start;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.quick-menu-editor-source,
.quick-menu-editor-preview {
  border: 1px solid #dddddd;
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.quick-menu-editor-preview {
  background: #f7f7f7;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.quick-menu-editor-source {
  background: #ffffff;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(680px, calc(100vh - 240px));
  overflow: hidden;
}

.menu-editor-empty {
  align-items: center;
  background: #f4f4f4;
  color: #777777;
  display: grid;
  min-height: 220px;
  padding: 18px;
  text-align: center;
}

.quick-menu-preview-tabs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-menu-editor-preview > .localized-table-language-picker {
  margin-bottom: 10px;
}

.quick-menu-preview-tabs button,
.quick-menu-preview-grid button {
  background: #ffffff;
  border: 1px solid #d8d8d8;
  color: #222222;
  min-width: 0;
}

.quick-menu-preview-tabs button {
  background: var(--quick-layer-color, #2f3132);
  border: 2px solid transparent;
  border-radius: 7px;
  color: #ffffff;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) 26px;
  min-height: 70px;
  padding: 10px;
}

.quick-menu-preview-tabs button.active {
  border-color: #ff3030;
  box-shadow: 0 0 0 2px #ffffff inset;
}

.quick-menu-preview-tabs input[type="text"],
.quick-menu-preview-tabs input:not([type]) {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  min-width: 0;
  outline: 0;
  text-align: center;
}

.quick-menu-preview-tabs input[type="color"] {
  align-self: start;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.75);
  height: 24px;
  padding: 2px;
  width: 24px;
}

.quick-menu-tile-tools {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.quick-menu-tile-tools label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.quick-menu-tile-tools .quick-menu-select-all input {
  height: 14px;
  margin: 0;
  width: 14px;
}

.quick-menu-tile-tools input[type="color"] {
  appearance: none;
  background: #ffffff;
  border: 1px solid #c8d0d6;
  border-radius: 2px;
  box-sizing: border-box;
  cursor: pointer;
  height: 32px;
  min-height: 32px;
  padding: 3px;
  width: 32px;
}

.quick-menu-preview-tabs input[type="color"]::-webkit-color-swatch-wrapper,
.quick-menu-tile-tools input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.quick-menu-preview-tabs input[type="color"]::-webkit-color-swatch,
.quick-menu-tile-tools input[type="color"]::-webkit-color-swatch {
  border: 0;
  border-radius: 1px;
}

.quick-menu-preview-tabs input[type="color"]::-moz-color-swatch,
.quick-menu-tile-tools input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 1px;
}

.quick-menu-preview-grid {
  background: transparent;
  display: grid;
  gap: 14px;
  grid-auto-rows: 70px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.quick-menu-preview-grid button {
  background: var(--quick-tile-color, #c8c8c8);
  border: 2px solid transparent;
  border-radius: 7px;
  color: #ffffff;
  display: grid;
  gap: 4px;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 8px;
  position: relative;
  text-align: left;
}

.quick-menu-preview-grid button.selected {
  border-color: #ff3030;
  box-shadow: 0 0 0 2px #ffffff inset;
}

.quick-menu-preview-grid button:not(.assigned) {
  color: #777777;
}

.quick-menu-preview-grid strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-menu-preview-grid strong {
  white-space: normal;
}

.quick-menu-source-header {
  display: grid;
  gap: 10px;
}

.quick-menu-source-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.quick-menu-source-title-row h4 {
  margin: 0;
}

.quick-menu-source-actions {
  display: flex;
  gap: 6px;
}

.quick-menu-source-actions button {
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  color: #333333;
  min-height: 26px;
  padding: 3px 8px;
}

.quick-menu-source-header input {
  border: 1px solid #c8c8c8;
  min-height: 32px;
  padding: 5px 8px;
}

.quick-menu-source-tabs {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-menu-source-tabs button {
  background: #ffffff;
  border: 1px solid #c8c8c8;
  color: #333333;
  min-height: 30px;
  overflow: hidden;
  padding: 4px 6px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-menu-source-tabs button.active {
  background: #e9f1f6;
  border-color: #7f9aa7;
  font-weight: 600;
}

.quick-menu-source-tree {
  border: 1px solid #d0d0d0;
  height: auto;
  max-height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.quick-menu-source-toggle {
  background: transparent;
  border: 0;
  height: 18px;
  padding: 0;
  position: relative;
  width: 18px;
}

.quick-menu-source-toggle::before {
  border: solid #52606a;
  border-width: 0 2px 2px 0;
  content: "";
  height: 6px;
  left: 5px;
  position: absolute;
  top: 4px;
  transform: rotate(45deg);
  width: 6px;
}

.quick-menu-source-toggle.collapsed::before {
  left: 3px;
  transform: rotate(-45deg);
}

.quick-menu-source-row {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #dddddd;
  color: #222222;
  cursor: default;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 24px;
  padding: 3px 8px 3px calc(8px + var(--source-depth, 0) * 18px);
  text-align: left;
  width: 100%;
}

.quick-menu-source-row:hover {
  background: #e8f1fb;
}

.quick-menu-source-row.product.on-sale {
  background: #e7f6df;
}

.quick-menu-source-row.product.on-sale:hover {
  background: #d8efcd;
}

.quick-menu-source-row.category.on-sale {
  background: #eef9e8;
}

.quick-menu-source-row.category.on-sale:hover {
  background: #e1f3d8;
}

.quick-menu-source-row.category {
  font-weight: 600;
  grid-template-columns: 18px minmax(0, 1fr);
}

.quick-menu-source-row small {
  color: #777777;
  min-width: 0;
}

.dish-size-cards {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
}

.dish-size-cards h3 {
  color: #777777;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
}

.dish-size-card {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 118px minmax(0, 1fr);
  min-width: 0;
  padding: 6px 0;
}

.dish-size-label {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 34px;
}

.dish-size-label span,
.dish-size-label strong {
  color: #8b8b8b;
  font-size: 15px;
  font-weight: 400;
}

.dish-size-label strong {
  color: #5f6670;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-size-price-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  min-width: 0;
}

.dish-size-price-item {
  align-content: center;
  background: #f8f9fa;
  border: 1px solid #e0e3e7;
  border-radius: 4px;
  display: grid;
  gap: 2px;
  min-height: 42px;
  min-width: 0;
  padding: 6px 8px;
}

.dish-size-price-item span {
  color: #6f7782;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-size-price-item strong {
  color: #30363d;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.dish-size-price-item small {
  color: #8c949e;
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-card-panel {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.technical-card-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technical-card-size-toggle {
  color: #777777;
  font-size: 12px;
  min-height: 22px;
}

.technical-card-size-select {
  align-items: center;
  display: flex;
  gap: 6px;
}

.technical-card-size-select span {
  color: #555555;
  font-size: 12px;
}

.technical-card-size-select select {
  font-size: 12px;
  min-height: 28px;
  min-width: 120px;
  padding: 3px 6px;
}

.technical-card-action-menu {
  margin-left: auto;
  position: relative;
}

.technical-card-action-popover {
  background: #ffffff;
  border: 1px solid #b8c9d8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: grid;
  min-width: 210px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 12;
}

.technical-card-action-popover[hidden] {
  display: none;
}

.technical-card-action-popover button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  color: #20242a;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
}

.technical-card-action-popover button:hover:not(:disabled) {
  background: #eaf4ff;
}

.technical-card-action-popover button:disabled {
  color: #8a8f96;
  cursor: not-allowed;
}

.technical-card-tabs .subtab {
  font-size: 13px;
  min-height: 28px;
  min-width: 104px;
  padding: 4px 10px;
}

.technical-card-grid-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.technical-card-direction {
  min-width: 154px;
}

.technical-card-history-toggle {
  min-width: 86px;
}

.technical-card-meta-grid {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.technical-card-meta-grid label,
.technical-card-bottom-grid label {
  display: grid;
  gap: 3px;
}

.technical-card-meta-grid span,
.technical-card-bottom-grid span {
  color: #555555;
  font-size: 11px;
}

.technical-card-meta-grid input,
.technical-card-meta-grid select {
  font-size: 12px;
  min-height: 28px;
  padding: 3px 6px;
}

.technical-card-grid-wrap {
  border: 1px solid #d0d0d0;
  max-width: 100%;
  overflow: hidden;
}

.technical-card-history-panel {
  border: 1px solid #d0d0d0;
  border-top: 0;
  background: #fafafa;
}

.technical-card-history-wrap {
  max-height: 164px;
  overflow: auto;
}

.technical-card-history-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.technical-card-history-table th,
.technical-card-history-table td {
  border-bottom: 1px solid #dddddd;
  font-size: 11px;
  padding: 4px 6px;
  vertical-align: middle;
}

.technical-card-history-table th {
  background: #f0f0f0;
  color: #444444;
  font-weight: 400;
  position: sticky;
  top: 0;
  z-index: 1;
}

.technical-card-history-table th:nth-child(1),
.technical-card-history-table td:nth-child(1) {
  text-align: center;
  width: 34px;
}

.technical-card-history-table th:nth-child(4),
.technical-card-history-table td:nth-child(4) {
  width: 118px;
}

.technical-card-history-table th:nth-child(5),
.technical-card-history-table td:nth-child(5) {
  width: 148px;
}

.technical-card-show-deleted {
  justify-content: flex-end;
  white-space: nowrap;
}

.technical-card-show-deleted span {
  color: #555555;
  font-size: 11px;
}

.technical-card-history-row {
  cursor: default;
}

.technical-card-history-row.active,
.technical-card-history-row:hover {
  background: #eaf4ff;
}

.technical-card-history-row.deleted {
  background: #f1f1f1;
  color: #888888;
}

.technical-card-history-row.deleted input {
  color: #888888;
}

.technical-card-history-row.deleted:hover {
  background: #e8e8e8;
}

.technical-card-history-row td:nth-child(2) {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 130px));
}

.technical-card-history-number {
  color: #666666;
}

.technical-card-history-row label {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.technical-card-history-row span {
  color: #666666;
  font-size: 10px;
}

.technical-card-history-row td:nth-child(4) {
  align-items: center;
  display: flex;
  gap: 6px;
}

.technical-card-history-row input {
  font-size: 11px;
  min-height: 24px;
  padding: 2px 5px;
}

.technical-card-history-delete {
  color: #9b1c1c;
  font-size: 17px;
  height: 24px;
  width: 24px;
}

.technical-card-history-activate {
  min-height: 24px;
  padding: 2px 8px;
}

.technical-card-history-restore {
  min-height: 24px;
  padding: 2px 8px;
}

.egais-settings-cell {
  padding: 0;
  vertical-align: top;
}

.egais-settings-workspace {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 0 0 18px;
  position: relative;
}

.egais-alcohol-workspace {
  display: grid;
  gap: 10px;
}

.egais-alcohol-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  border: 1px solid var(--line);
}

.egais-alcohol-summary > div {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
}

.egais-alcohol-summary > div:last-child {
  border-right: 0;
}

.egais-alcohol-summary span,
.egais-alcohol-summary small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-alcohol-summary strong {
  display: inline-block;
  margin-top: 3px;
  margin-right: 8px;
  font-size: 18px;
}

.egais-alcohol-section .egais-table-wrap {
  max-height: 250px;
}

.egais-alcohol-attention-row td {
  color: #9b1c1c;
}

.egais-alcohol-bottle-dialog-root {
  z-index: 12100;
}

.egais-alcohol-bottle-dialog {
  width: min(620px, calc(100vw - 32px));
}

.egais-alcohol-bottle-dialog .confirm-body {
  display: grid;
  gap: 10px;
}

.egais-alcohol-bottle-dialog .confirm-body label {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.egais-alcohol-bottle-dialog textarea {
  resize: vertical;
}

@media (max-width: 900px) {
  .egais-alcohol-summary {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

.egais-settings-group {
  border: 1px solid #c9c9c9;
  background: #f5f5f5;
}

.egais-settings-group-header {
  align-items: center;
  background: #f7f7f7;
  border-bottom: 1px solid #c9c9c9;
  display: flex;
  gap: 6px;
  min-height: 31px;
  padding: 3px 8px;
}

.egais-settings-group-header h3 {
  color: #20242a;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
}

.egais-settings-group:not(.open) .egais-settings-group-body {
  display: none;
}

.egais-actions-row {
  align-items: center;
  display: flex;
  gap: 6px;
  min-height: 32px;
  padding: 4px;
}

.egais-documents-toolbar {
  justify-content: flex-end;
}

.egais-documents-toolbar [data-egais-sync-documents] {
  margin-right: auto;
}

.egais-register-action:not(.button-secondary) {
  background: #dcefff;
  border-color: #8db9de;
  color: #1b4f7a;
}

.egais-stock-register-switch {
  border-bottom: 1px solid #bfc7ce;
  display: flex;
  gap: 2px;
  padding: 6px 6px 0;
}

.egais-stock-register-switch button {
  background: #eef1f3;
  border: 1px solid #c7cdd2;
  border-bottom: 0;
  color: #30363b;
  cursor: pointer;
  font: inherit;
  min-height: 34px;
  padding: 6px 16px;
}

.egais-stock-register-switch button.active {
  background: #ffffff;
  box-shadow: inset 0 3px 0 #3182b8;
  color: #174f72;
  font-weight: 500;
  margin-bottom: -1px;
}

.egais-stock-register-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 54px;
  padding: 5px 6px;
}

.egais-stock-register-caption {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.egais-stock-register-caption strong {
  font-size: 13px;
  font-weight: 500;
}

.egais-stock-register-caption span,
.egais-stock-register-caption small {
  color: #666666;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-stock-register-toolbar > .egais-actions-row {
  flex: 0 0 auto;
  padding: 0;
}

.egais-mark-toolbar {
  align-items: center;
  background: #f6f7f8;
  border-bottom: 1px solid #d2d6d9;
  border-top: 1px solid #d2d6d9;
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 5px 6px;
}

.egais-mark-single-request {
  display: flex;
  flex: 0 1 390px;
  min-width: 260px;
}

.egais-mark-single-request input {
  border-right: 0;
  min-height: 30px;
}

.egais-mark-queue-summary {
  align-items: center;
  display: flex;
  font-size: 11px;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
  white-space: nowrap;
}

.egais-mark-queue-summary[role="button"] {
  cursor: pointer;
}

.egais-mark-queue-summary[role="button"]:focus-visible {
  outline: 2px solid #3487c8;
  outline-offset: 3px;
}

.egais-mark-queue-summary strong {
  font-weight: 500;
}

.egais-mark-queue-summary .is-error,
.egais-mark-state.is-error {
  color: #a31d28;
}

.egais-stock-mark {
  font-family: Consolas, monospace;
}

.egais-mark-state {
  appearance: none;
  background: transparent;
  border: 0;
  color: #666666;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-align: left;
}

span.egais-mark-state {
  cursor: default;
}

.egais-mark-state i {
  font-style: normal;
}

.egais-mark-state.is-sent {
  color: #7a5800;
}

.egais-mark-state.is-received {
  color: #176a2c;
}

.egais-mark-state.is-no-response {
  color: #a31d28;
  font-weight: 600;
}

.egais-stock-awaiting-response-row > td {
  background: #fff4ce;
}

.egais-stock-no-response-row > td {
  background: #ffe1e1;
}

.egais-stock-awaiting-response-row.is-selected > td,
.egais-stock-no-response-row.is-selected > td {
  box-shadow: inset 0 0 0 2px #2678b8;
}

.egais-mark-context-menu {
  z-index: 12045;
}

.egais-utm-badge {
  align-items: center;
  border: 1px solid #cfcfcf;
  color: #333333;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  min-height: 28px;
  padding: 3px 8px;
  white-space: nowrap;
}

.egais-utm-badge i {
  border-radius: 50%;
  display: inline-block;
  height: 9px;
  width: 9px;
}

.egais-utm-badge-ok {
  background: #effbef;
  border-color: #90c690;
}

.egais-utm-badge-ok i {
  background: #2da44e;
}

.egais-utm-badge-failed {
  background: #fff0f0;
  border-color: #df8f8f;
}

.egais-utm-badge-failed i {
  background: #d1242f;
}

.egais-utm-badge-disabled,
.egais-utm-badge-unknown {
  background: #f4f4f4;
  border-color: #cfcfcf;
}

.egais-utm-badge-disabled i,
.egais-utm-badge-unknown i {
  background: #8c8c8c;
}

.egais-overview {
  border-bottom: 1px solid #cfcfcf;
  display: grid;
  font-size: 12px;
}

.egais-overview-line {
  align-items: stretch;
  display: flex;
  min-height: 42px;
  overflow-x: auto;
}

.egais-overview-line > strong {
  align-items: center;
  background: #f3f3f3;
  display: flex;
  flex: 0 0 150px;
  font-weight: 500;
  padding: 6px 8px;
}

.egais-overview-metric {
  border-left: 1px solid #d8d8d8;
  display: grid;
  flex: 1 1 145px;
  min-width: 130px;
  padding: 5px 8px;
}

.egais-overview-metric small {
  color: #666666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-overview-metric b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-overview-metric.is-ok b {
  color: #176a2c;
}

.egais-overview-metric.is-warning b {
  color: #8a5700;
}

.egais-overview-metric.is-error b {
  color: #a31d28;
}

.egais-overview-stocks {
  border-top: 1px solid #e2e2e2;
  min-height: 37px;
}

.egais-overview-warnings {
  align-items: center;
  background: #fff8e6;
  border-top: 1px solid #e4d29e;
  display: flex;
  gap: 8px;
  min-height: 29px;
  overflow-x: auto;
  padding: 3px 8px;
}

.egais-overview-warnings > strong {
  flex: 0 0 auto;
  font-weight: 500;
}

.egais-overview-warning {
  border-left: 1px solid #d9c27a;
  flex: 0 0 auto;
  padding-left: 8px;
}

.egais-overview-warning.is-error {
  color: #a31d28;
}

.egais-overview.compact .egais-overview-line:first-child > strong,
.egais-overview.compact .egais-overview-line:first-child .egais-overview-metric:nth-of-type(n + 5) {
  display: none;
}

.egais-refresh-action {
  margin-left: auto;
}

.egais-return-action {
  margin-right: auto;
}

.egais-action-menu {
  position: relative;
}

.egais-action-popover {
  background: #ffffff;
  border: 1px solid #b8c9d8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: grid;
  min-width: 136px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
}

.egais-action-popover[hidden] {
  display: none;
}

.egais-action-popover button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  color: #20242a;
  font: inherit;
  padding: 7px 10px;
  text-align: left;
}

.egais-action-popover button:hover {
  background: #eaf4ff;
}

.egais-table-wrap {
  border-top: 1px solid #d2d2d2;
  overflow: visible;
}

.egais-empty-state {
  display: grid;
  gap: 10px;
  padding: 8px;
}

.egais-empty-state p {
  margin: 0;
}

.egais-inline-input {
  flex: 0 1 220px;
  font-size: 13px;
  min-height: 30px;
  padding: 4px 8px;
  width: 220px;
}

.egais-document-row {
  cursor: default;
}

.egais-document-row:focus,
.egais-document-row:hover {
  background: #d8e8f7;
  outline: none;
}

.egais-document-modal-root .modal-backdrop {
  z-index: 12020;
}

.egais-document-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  max-width: calc(100vw - 16px);
  overflow: hidden;
  width: calc(100vw - 16px);
  z-index: 12021;
}

.egais-document-dialog .confirm-header {
  align-items: center;
  display: flex;
  min-height: 56px;
}

.egais-document-dialog .confirm-header .drawer-close {
  flex: 0 0 56px;
  margin-left: auto;
  position: relative;
  right: auto;
  top: auto;
}

.egais-document-dialog-body {
  display: grid;
  gap: 10px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 0;
}

.egais-document-lines {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.egais-document-lines .egais-table-wrap {
  align-self: stretch;
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.egais-document-footer {
  background: #f8f8f8;
  border-top: 1px solid #cfcfcf;
  min-height: 34px;
}

.egais-document-footer-row {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 4px 6px;
}

.egais-document-footer-total {
  font-size: 16px;
  margin-right: auto;
  white-space: nowrap;
}

.egais-document-footer-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-left: auto;
}

.egais-document-footer-actions .button {
  font-size: 12px;
  min-height: 24px;
  min-width: 130px;
  padding: 3px 12px;
}

.egais-writeoff-modal-root .modal-backdrop {
  z-index: 12040;
}

.egais-writeoff-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100vh - 16px);
  max-height: calc(100vh - 16px);
  max-width: calc(100vw - 16px);
  overflow: hidden;
  width: calc(100vw - 16px);
  z-index: 12041;
}

.egais-writeoff-header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.egais-writeoff-status {
  color: #58636a;
  font-size: 13px;
  white-space: nowrap;
}

.egais-writeoff-status.is-sent {
  color: #247246;
}

.egais-writeoff-action-menu-root {
  position: relative;
  z-index: 30;
}

.status-strip > .egais-writeoff-list-actions {
  flex: 0 0 auto;
}

.egais-writeoff-action-menu {
  background: #fff;
  border: 1px solid #aeb6ba;
  box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
  min-width: 220px;
  padding: 3px;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 31;
}

.egais-writeoff-action-menu[hidden] {
  display: none;
}

.egais-writeoff-action-menu button {
  background: #fff;
  border: 0;
  display: block;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.egais-writeoff-action-menu button:hover:not(:disabled) {
  background: #e8f1f8;
}

.egais-writeoff-action-menu button.danger {
  color: #a4262c;
}

.egais-writeoff-action-menu button:disabled {
  color: #8a9298;
  cursor: default;
}

.egais-directory-table .egais-document-row.is-selected > td {
  background: #cfe3f4;
}

.egais-writeoff-body {
  display: grid;
  gap: 8px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 0;
}

.egais-writeoff-fields {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 180px 150px 180px minmax(260px, 1fr);
}

.egais-writeoff-fields label {
  display: grid;
  font-size: 12px;
  gap: 3px;
}

.egais-writeoff-fields input {
  min-height: 30px;
  width: 100%;
}

.egais-writeoff-table-wrap {
  height: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.egais-writeoff-table {
  table-layout: fixed;
}

.egais-writeoff-table th,
.egais-writeoff-table td {
  box-sizing: border-box;
  overflow: hidden;
  padding: 2px 4px;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-writeoff-table td input,
.egais-writeoff-table td select {
  background: transparent;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  min-height: 25px;
  padding: 2px;
  width: 100%;
}

.egais-writeoff-table td input:focus {
  background: #fff;
  outline: 1px solid #6f9fc4;
}

.egais-writeoff-lookup-control {
  display: block;
  min-width: 0;
  position: relative;
}

.egais-writeoff-lookup-menu {
  background: #fff;
  border: 1px solid #b7c7d8;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  display: grid;
  overflow: auto;
  position: fixed;
  z-index: 12046;
}

.egais-writeoff-lookup-menu[hidden] {
  display: none;
}

.egais-writeoff-lookup-menu button {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e6ebef;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 220px);
  min-height: 32px;
  padding: 5px 8px;
  text-align: left;
}

.egais-writeoff-lookup-menu button:hover,
.egais-writeoff-lookup-menu button.is-active {
  background: #e8f1f8;
}

.egais-writeoff-lookup-menu button > span,
.egais-writeoff-lookup-menu button > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-writeoff-lookup-menu button > small {
  color: #68747b;
  text-align: right;
}

.egais-writeoff-lookup-empty {
  color: #68747b;
  font-size: 12px;
  padding: 10px;
}

.egais-writeoff-marks-button {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  min-height: 25px;
  width: 100%;
}

.egais-writeoff-marks-root .modal-backdrop,
.egais-writeoff-send-root .modal-backdrop {
  z-index: 12050;
}

.egais-writeoff-marks-dialog,
.egais-writeoff-send-root .confirm-dialog {
  z-index: 12051;
}

.egais-writeoff-marks-dialog {
  width: min(920px, calc(100vw - 32px));
}

.egais-writeoff-marks-body {
  display: grid;
  gap: 10px;
  max-height: min(70vh, 680px);
  overflow: auto;
}

.egais-writeoff-mark-scan {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  position: sticky;
  top: 0;
  z-index: 1;
}

.egais-writeoff-mark-scan input {
  min-width: 0;
}

.egais-writeoff-marks-table {
  table-layout: fixed;
  width: 100%;
}

.egais-writeoff-marks-table th:first-child,
.egais-writeoff-marks-table td:first-child {
  text-align: center;
}

.egais-writeoff-marks-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-writeoff-selected-marks {
  align-self: center;
  margin-left: auto;
}

.egais-writeoff-marks-actions {
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 16px;
}

.egais-writeoff-marks-actions .button {
  min-height: 34px;
  padding: 7px 16px;
}

.egais-writeoff-footer .egais-document-footer-row {
  min-width: 0;
}

@media (max-width: 900px) {
  .egais-writeoff-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.egais-document-form-header {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(560px, 760px) minmax(180px, 1fr);
}

.egais-document-form-header > .egais-document-form-grid {
  grid-column: 1;
  grid-row: 1;
}

.egais-document-form-header > .egais-document-status-actions {
  grid-column: 2;
  grid-row: 1;
}

.egais-receiving-result {
  align-items: center;
  background: #eef4f7;
  border-left: 4px solid #7a8a93;
  display: flex;
  gap: 12px;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-content: space-between;
  min-height: 38px;
  padding: 5px 8px;
}

.egais-receiving-result.is-submitted {
  background: #edf8ed;
  border-left-color: #3c8b45;
}

.egais-receiving-result.is-responded {
  background: #f2f2f2;
  border-left-color: #5f6a70;
}

.egais-receiving-result.is-empty {
  color: #626b70;
}

.egais-document-status-actions {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.egais-waybill-actions {
  min-width: 220px;
  position: relative;
}

.egais-waybill-actions > .button {
  width: 100%;
}

.egais-waybill-actions-menu {
  background: #ffffff;
  border: 1px solid #b8c1ca;
  box-shadow: 0 8px 22px rgb(0 0 0 / 18%);
  display: grid;
  min-width: 280px;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 12034;
}

.egais-waybill-actions-menu[hidden] {
  display: none;
}

.egais-waybill-actions-menu button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e1e5e8;
  color: #20242a;
  cursor: pointer;
  font: inherit;
  min-height: 34px;
  padding: 7px 12px;
  text-align: left;
}

.egais-waybill-actions-menu button:hover {
  background: #eef5fb;
}

.egais-waybill-actions-menu button:disabled {
  background: #f4f4f4;
  color: #8a9298;
  cursor: default;
}

.egais-waybill-actions-menu button.danger {
  color: #a4262c;
}

.egais-waybill-actions-menu button.danger:disabled {
  color: #8a9298;
}

.egais-waybill-action-state {
  display: block;
  color: #52606d;
  font-size: 12px;
  margin-top: 5px;
}

.egais-waybill-reject-warning {
  background: #fff2f2;
  border-left: 4px solid #b4232c;
  margin: 0;
  padding: 12px;
}

.egais-waybill-action-modal-root {
  z-index: 12050;
}

.egais-waybill-action-modal-root .modal-backdrop {
  z-index: 12050;
}

.egais-waybill-action-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 48px);
  max-width: min(980px, calc(100vw - 48px));
  width: min(980px, calc(100vw - 48px));
  z-index: 12051;
}

.egais-waybill-action-dialog > .confirm-actions {
  gap: 10px;
  padding: 12px 16px;
}

.egais-waybill-action-dialog > .confirm-actions .button {
  min-height: 36px;
  padding: 8px 16px;
}

.status-strip > .egais-document-list-actions {
  flex: 0 0 auto;
}

.egais-writeoff-action-menu .egais-document-list-deleted-toggle {
  align-items: center;
  border-top: 1px solid #d7dcdf;
  display: flex;
  gap: 8px;
  margin-top: 3px;
  padding: 8px 10px;
  white-space: nowrap;
}

.egais-waybill-action-dialog .confirm-header {
  align-items: center;
  display: flex;
}

.egais-waybill-action-dialog .confirm-header .drawer-close {
  flex: 0 0 48px;
  margin-left: auto;
  position: relative;
  right: auto;
  top: auto;
}

.egais-waybill-action-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.egais-waybill-action-note {
  display: grid;
  gap: 5px;
}

.egais-waybill-action-note textarea {
  min-height: 72px;
  resize: vertical;
}

.egais-waybill-differences-wrap {
  max-height: min(52vh, 520px);
  overflow: auto;
}

.egais-waybill-differences-table {
  min-width: 850px;
}

.egais-waybill-differences-table input[type='number'] {
  min-width: 90px;
  width: 100%;
}

.egais-waybill-mark-choices {
  min-width: 220px;
}

.egais-waybill-mark-choices > div {
  background: #ffffff;
  border: 1px solid #d5dce2;
  display: grid;
  gap: 4px;
  margin-top: 4px;
  max-height: 180px;
  overflow: auto;
  padding: 6px;
}

.egais-waybill-mark-choices label {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr);
}

.egais-waybill-mark-choices label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-document-form-grid {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.egais-document-form-grid label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 170px minmax(0, 1fr);
}

.egais-document-form-grid label > span:first-child {
  color: #344054;
  font-size: 12px;
  text-align: right;
}

.egais-document-form-grid input {
  font-size: 12px;
  min-height: 24px;
  padding: 3px 6px;
}

.egais-document-form-grid .egais-document-input-action {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) 28px;
  position: relative;
  text-align: left;
}

.egais-document-field-action {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-left: 0;
  color: #20242a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  justify-content: center;
  min-height: 24px;
  padding: 0;
}

.egais-document-field-action span {
  color: inherit;
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.egais-document-supplier-suggestions {
  background: #ffffff;
  border: 1px solid #b7c7d8;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  display: grid;
  left: 0;
  max-height: 220px;
  overflow: auto;
  position: absolute;
  right: 28px;
  top: calc(100% + 2px);
  z-index: 12035;
}

.egais-document-supplier-suggestions[hidden] {
  display: none;
}

.egais-document-supplier-suggestions button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e6ebef;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 28px;
  padding: 4px 8px;
  text-align: left;
}

.egais-document-supplier-suggestions button:hover,
.egais-document-supplier-suggestions button.active {
  background: #eef5fb;
}

.egais-document-supplier-suggestions small {
  color: #6b7480;
  font-size: 11px;
  font-weight: 400;
}

.egais-document-comment-field,
.egais-document-more {
  position: relative;
}

.egais-document-comment-trigger {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 8%);
  color: #20242a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  min-height: 24px;
  overflow: hidden;
  padding: 3px 6px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-document-comment-popover,
.egais-document-more-menu {
  background: #ffffff;
  border: 1px solid #b8c9d8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  left: 170px;
  min-width: min(420px, calc(100vw - 72px));
  position: absolute;
  top: calc(100% + 2px);
  z-index: 4;
}

.egais-document-comment-popover[hidden],
.egais-document-more-menu[hidden] {
  display: none;
}

.egais-document-comment-popover textarea {
  border: 0;
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  min-height: 86px;
  padding: 8px;
  resize: vertical;
  width: 100%;
}

.egais-document-more {
  align-items: center;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.egais-document-more::before {
  content: "";
}

.egais-document-more-menu {
  display: grid;
}

.egais-document-more-menu button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  color: #20242a;
  cursor: pointer;
  font: inherit;
  padding: 8px 10px;
  text-align: left;
}

.egais-document-more-menu button:hover {
  background: #eaf4ff;
}

.egais-document-info-root .modal-backdrop {
  z-index: 12030;
}

.egais-document-info-dialog {
  max-width: min(720px, calc(100vw - 48px));
  width: min(720px, calc(100vw - 48px));
  z-index: 12031;
}

.egais-document-info-dialog .confirm-header {
  align-items: center;
  display: flex;
  min-height: 52px;
}

.egais-document-info-dialog .confirm-header .drawer-close {
  flex: 0 0 52px;
  margin-left: auto;
  position: relative;
  right: auto;
  top: auto;
}

.egais-document-status {
  align-self: center;
  color: #001fd1;
  font-size: 24px;
  font-weight: 500;
  justify-self: center;
}

.egais-document-section,
.egais-document-lines {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.egais-document-section h4,
.egais-document-lines h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 0;
}

.egais-document-info-table th {
  width: 180px;
}

.egais-document-info-table th,
.egais-document-info-table td {
  height: 25px;
}

.egais-document-info-table td,
.egais-document-participants-table td {
  max-width: 240px;
}

.egais-document-lines-table th:first-child,
.egais-document-lines-table td:first-child {
  text-align: center;
}

.egais-document-lines-table th:nth-child(3),
.egais-document-lines-table td:nth-child(3),
.egais-document-lines-table th:nth-child(12),
.egais-document-lines-table td:nth-child(12) {
  max-width: none;
  min-width: 0;
}

.egais-document-lines .egais-table-wrap {
  min-height: 0;
  overflow: auto;
}

.egais-document-lines-table {
  table-layout: fixed;
  min-width: 100%;
  width: max-content;
}

.egais-document-lines-table th,
.egais-document-lines-table td {
  max-width: none;
}

.egais-document-lines-table .egais-document-cell-input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  min-height: 22px;
  outline: 0;
  padding: 2px 4px;
  width: 100%;
}

.egais-document-lines-table .egais-document-cell-input.numeric {
  text-align: right;
}

.egais-document-lines-table tr.egais-document-form2-group-start > td {
  border-top: 2px solid #aeb8bd;
}

.egais-document-lines-table td.egais-document-form2-group-cell {
  background: #f1f4f5;
  font-weight: 600;
  overflow-wrap: anywhere;
  vertical-align: top;
  white-space: normal;
}

.egais-directory-table td.egais-document-local-product-cell {
  overflow: visible;
  position: relative;
}

.egais-local-product-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  position: relative;
}

.egais-local-product-control .egais-document-cell-input {
  min-width: 0;
}

.egais-local-product-button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-left: 1px solid #d5d5d5;
  color: #20242a;
  cursor: pointer;
  display: none;
  font: inherit;
  justify-content: center;
  min-height: 22px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.egais-local-product-control:focus-within .egais-local-product-button,
.egais-local-product-control.open .egais-local-product-button {
  display: inline-flex;
}

.egais-local-product-control:focus-within,
.egais-local-product-control.open {
  grid-template-columns: minmax(0, 1fr) 24px 24px 24px;
}

.egais-local-product-button:hover {
  background: #eef5fb;
}

.egais-local-product-suggestions {
  background: #ffffff;
  border: 1px solid #b7c7d8;
  box-shadow: 0 8px 22px rgb(0 0 0 / 16%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  position: fixed;
  z-index: 12035;
}

.egais-local-product-suggestions[hidden] {
  display: none;
}

.egais-local-product-search-row {
  background: #f4f6f7;
  border-bottom: 1px solid #cfd8de;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  padding: 6px;
}

.egais-local-product-search-row input {
  background: #ffffff;
  border: 1px solid #b7c1c8;
  box-sizing: border-box;
  font: inherit;
  height: 30px;
  min-width: 0;
  padding: 4px 7px;
  width: 100%;
}

.egais-local-product-results {
  min-height: 0;
  overflow: auto;
}

.egais-local-product-results button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e6ebef;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 400;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 150px);
  min-height: 28px;
  padding: 4px 8px;
  text-align: left;
}

.egais-local-product-results button > span,
.egais-local-product-results button > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-local-product-results button > small {
  text-align: right;
}

.egais-local-product-results button:hover {
  background: #eef5fb;
}

.egais-local-product-suggestions small {
  color: #6b7480;
  font-size: 11px;
  font-weight: 400;
}

.egais-local-product-suggestions .egais-local-product-empty {
  color: #6b7480;
  display: block;
  font-size: 12px;
  padding: 8px 10px;
}

@media (max-width: 760px) {
  .egais-local-product-search-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.egais-document-lines-table th {
  position: relative;
}

.egais-document-column-resize-handle {
  cursor: col-resize;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
}

.egais-document-column-resize-handle:hover,
.is-resizing-egais-document-column .egais-document-column-resize-handle {
  background: rgb(47 49 50 / 12%);
}

.egais-party-context-menu {
  z-index: 12042;
}

.egais-document-marks-cell {
  text-align: center;
}

.egais-document-marks-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1f4f78;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 8px;
  justify-content: center;
  min-height: 24px;
  padding: 1px 4px;
}

.egais-document-marks-button b {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.egais-line-marks-root .modal-backdrop {
  z-index: 12050;
}

.egais-line-marks-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(78vh, 720px);
  max-width: min(900px, calc(100vw - 32px));
  overflow: hidden;
  width: min(900px, calc(100vw - 32px));
  z-index: 12051;
}

.egais-line-marks-dialog .confirm-header {
  align-items: center;
  display: flex;
}

.egais-line-marks-dialog .confirm-header h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-line-marks-dialog .confirm-header .drawer-close {
  flex: 0 0 56px;
  margin-left: auto;
  position: relative;
  right: auto;
  top: auto;
}

.egais-line-marks-body {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.egais-line-marks-table {
  table-layout: fixed;
  width: 100%;
}

.egais-line-marks-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-document-empty {
  color: #777777;
  margin: 0;
  padding: 12px;
}

.egais-utm-grid {
  align-items: end;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  max-width: 900px;
  padding: 8px;
}

.egais-utm-grid label {
  display: grid;
  gap: 4px;
}

.egais-utm-grid label > span {
  color: #555555;
  font-size: 12px;
}

.egais-utm-grid input,
.egais-utm-grid select {
  font-size: 13px;
  min-height: 30px;
  padding: 4px 8px;
}

.egais-utm-enabled {
  align-self: end;
  min-height: 30px;
}

.egais-utm-status {
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  display: grid;
  font-size: 12px;
  gap: 6px 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 8px 8px;
  padding: 8px;
}

.egais-utm-status div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.egais-utm-status span {
  color: #666666;
}

.egais-utm-status strong,
.egais-utm-status p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-utm-status-ok {
  background: #f0fff0;
  border-color: #9ac89a;
}

.egais-utm-status-failed {
  background: #fff2f2;
  border-color: #df8f8f;
}

.egais-utm-status-disabled {
  background: #f1f1f1;
}

.egais-utm-warning {
  color: #9a5a00;
  grid-column: 1 / -1;
  margin: 0;
}

.egais-directory-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.egais-directory-table th,
.egais-directory-table td {
  border-right: 1px solid #d5d5d5;
  font-size: 12px;
  line-height: 1.2;
  max-width: 0;
  overflow: hidden;
  padding: 4px 6px;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.egais-directory-table th {
  background: #f7f7f7;
  border-bottom: 1px solid #c8c8c8;
  color: #20242a;
  font-weight: 400;
  padding-right: 12px;
  position: relative;
}

.egais-directory-table th span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-directory-table tbody tr:nth-child(even) {
  background: #f4f4f4;
}

.egais-directory-table tbody tr.active {
  background: #b8cbe3;
}

.egais-directory-table tbody tr.deleted-row {
  color: #888888;
  opacity: 0.72;
}

.egais-directory-table input[type="checkbox"] {
  display: block;
  margin: 0 auto;
}

.egais-stock-request-notice {
  align-items: center;
  border: 1px solid #d8d8d8;
  cursor: pointer;
  display: flex;
  font-size: 11px;
  gap: 10px;
  min-height: 23px;
  overflow: hidden;
  padding: 2px 6px;
}

.egais-stock-request-notice.pending {
  background: #eeeeee;
  color: #666666;
}

.egais-stock-request-notice.rejected {
  background: #fff0f0;
  border-color: #efc5c5;
  color: #7c2d2d;
}

.egais-stock-request-notice strong {
  flex: 0 0 auto;
  font-weight: 500;
}

.egais-stock-request-notice span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-stock-request-notice-root .modal-backdrop {
  z-index: 12030;
}

.egais-stock-request-dialog {
  max-width: min(720px, calc(100vw - 48px));
  width: min(720px, calc(100vw - 48px));
  z-index: 12031;
}

.egais-stock-request-dialog .confirm-header {
  align-items: center;
  display: flex;
  min-height: 52px;
}

.egais-stock-request-dialog .confirm-header .drawer-close {
  flex: 0 0 52px;
  height: 52px;
  margin-left: auto;
  position: relative;
  right: auto;
  top: auto;
  width: 52px;
}

.egais-stock-request-dialog pre {
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  font: inherit;
  font-size: 13px;
  margin: 0;
  max-height: min(420px, calc(100vh - 180px));
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

.egais-document-filter-row th {
  background: #ffffff;
  border-right: 0;
  padding: 2px;
}

.egais-document-filter-row input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 24px;
  outline: 0;
  padding: 2px 5px;
  width: 100%;
}

.egais-document-type-filter {
  position: relative;
}

.egais-document-type-filter > button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #20242a;
  cursor: pointer;
  font: inherit;
  min-height: 24px;
  outline: 0;
  overflow: hidden;
  padding: 2px 18px 2px 5px;
  position: relative;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.egais-document-type-filter > button::after {
  content: "";
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #333333;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.egais-document-type-menu {
  background: #ffffff;
  border: 1px solid #b8c9d8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: grid;
  left: 0;
  max-height: 260px;
  min-width: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  position: absolute;
  top: calc(100% + 2px);
  z-index: 20;
}

.egais-document-type-menu.egais-document-type-menu-portal {
  position: fixed;
  z-index: 13050;
}

.egais-document-type-menu[hidden] {
  display: none;
}

.egais-document-type-option {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  color: #20242a;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 8px;
  grid-template-columns: 18px minmax(0, 1fr);
  min-height: 34px;
  padding: 7px 10px;
  text-align: left;
}

.egais-document-type-option input[type="checkbox"] {
  height: 16px;
  margin: 0;
  width: 16px;
}

.egais-document-type-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-document-type-option:hover {
  background: #eaf4ff;
}

.egais-document-type-option-all {
  font-weight: 600;
}

.egais-column-resize-handle {
  z-index: 1;
}

.egais-directory-dialog {
  max-width: 540px;
  width: min(540px, calc(100vw - 48px));
}

.egais-directory-dialog-body {
  display: grid;
  gap: 10px;
}

.egais-dialog-field {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.egais-dialog-field span {
  color: #444444;
  font-size: 12px;
}

.egais-dialog-field input {
  min-height: 28px;
}

.egais-dialog-field input.invalid {
  background: #ffd6de;
  border-color: #d24b63;
}

.egais-dialog-check {
  min-height: 24px;
}

.product-egais-panel {
  display: grid;
  gap: 8px;
  max-width: 100%;
}

.egais-combo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  width: 100%;
}

.egais-combo-row select,
.egais-combo-row .egais-search-combo {
  min-width: 0;
}

.product-tnved-field .egais-combo-row {
  grid-template-columns: minmax(0, 1fr) 28px 28px;
}

.product-tnved-field .egais-combo-row > input {
  min-width: 0;
  width: 100%;
}

.product-tnved-profile {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px 204px;
  padding: 7px 9px;
  border-left: 3px solid #87949a;
  background: #f3f5f6;
  color: #39464b;
  font-size: 12px;
}

@media (max-width: 1280px) {
  .product-tnved-profile {
    margin-left: 184px;
  }
}

.product-tnved-profile.packaged {
  border-left-color: #1f7fc4;
}

.product-tnved-profile.keg {
  border-left-color: #779b3f;
}

.product-tnved-profile strong,
.product-tnved-profile span {
  min-width: 0;
}

.product-sale-place-warning {
  display: block;
  color: #a33636;
  font-size: 12px;
}

.egais-combo-clear {
  background: #fff;
  border: 1px solid #b7b7b7;
  color: #4f565a;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.egais-search-combo {
  display: block;
  position: relative;
  width: 100%;
}

.egais-search-input {
  min-width: 0;
  width: 100%;
}

.egais-search-dropdown {
  background: #ffffff;
  border: 1px solid #b7b7b7;
  box-shadow: 0 8px 18px rgb(0 0 0 / 14%);
  display: grid;
  left: 0;
  max-height: 210px;
  overflow: auto;
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  z-index: 64;
}

.egais-search-dropdown[hidden] {
  display: none;
}

.egais-search-dropdown button[hidden],
.egais-search-option-check[hidden] {
  display: none;
}

.egais-search-dropdown button,
.egais-search-option-check {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e1e1e1;
  color: #1f1f1f;
  font: inherit;
  font-size: 13px;
  min-height: 28px;
  padding: 5px 8px;
  text-align: left;
}

.egais-search-dropdown button:hover,
.egais-search-option-check:hover {
  background: #eef4fb;
}

.egais-search-option-check {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
}

.egais-search-option-check input {
  min-height: auto;
  width: auto;
}

.egais-combo-add,
.egais-combo-more {
  background: #f1f1f1;
  border: 1px solid #b7b7b7;
  border-left: 0;
  color: #4d4d4d;
  font-size: 16px;
  min-height: 28px;
  padding: 0;
}

.egais-combo-more {
  font-size: 13px;
}

.egais-combo-add {
  font-size: 18px;
  line-height: 1;
}

.egais-alcohol-percent-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: max-content 120px;
}

.product-packaging-panel {
  min-height: 260px;
}

.product-packaging-table-wrap {
  border: 1px solid #cfcfcf;
  max-height: 360px;
  overflow: auto;
}

.product-packaging-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.product-packaging-table th,
.product-packaging-table td {
  border: 1px solid #d7d7d7;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 6px;
}

.product-packaging-table th {
  background: #f4f4f4;
  font-weight: 400;
  text-align: left;
}

.product-packaging-table td:nth-child(1) {
  width: 70px;
}

.product-packaging-table td:nth-child(3) {
  width: 150px;
}

.product-packaging-table td:nth-child(4) {
  width: 100px;
}

.product-packaging-table input,
.product-packaging-table select {
  border: 0;
  min-height: 28px;
  padding: 3px 4px;
  width: 100%;
}

.product-packaging-unit-label {
  align-items: center;
  display: flex;
  min-height: 28px;
  padding: 3px 4px;
}

.product-images-table td[data-product-image-cell] {
  padding: 3px 4px;
}

.product-image-add-controls {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 110px minmax(0, 1fr);
}

.product-image-file-picker {
  cursor: pointer;
  min-height: 28px;
  padding: 4px 8px;
  text-align: center;
}

.product-image-cell-preview {
  align-items: center;
  display: flex;
  min-height: 34px;
}

.product-image-thumb-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.product-image-thumb-button img {
  border: 1px solid #d8d8d8;
  display: block;
  height: 32px;
  object-fit: cover;
  width: 54px;
}

.product-image-preview-root {
  position: relative;
  z-index: 12200;
}

.product-image-preview-root .modal-backdrop {
  z-index: 12200;
}

.product-image-preview-dialog {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-width: calc(100vw - 48px);
  overflow: hidden;
  width: auto;
  z-index: 12201;
}

.product-image-preview-dialog .confirm-header {
  align-items: center;
  display: flex;
  min-height: 56px;
}

.product-image-preview-dialog .confirm-header h3 {
  line-height: 1.2;
  margin: 0;
}

.product-image-preview-dialog .drawer-close {
  align-self: center;
  flex: 0 0 auto;
}

.product-image-preview-body {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  max-height: calc(100vh - 120px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.product-image-preview-body img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-image-context-menu {
  background: #ffffff;
  border: 1px solid #bdbdbd;
  box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  display: grid;
  min-width: 150px;
  padding: 4px 0;
  position: fixed;
  z-index: 12300;
}

.product-image-context-menu button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 7px 12px;
  text-align: left;
}

.product-image-context-menu button:hover {
  background: #e8f0fb;
}

.product-packaging-new-row td {
  background: #fafafa;
}

.product-packaging-new-row input::placeholder {
  color: #777777;
  text-align: center;
}

.technical-card-grid {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.technical-card-grid th,
.technical-card-grid td {
  border: 1px solid #d6d6d6;
  font-size: 11px;
  line-height: 1.15;
  padding: 2px 3px;
  vertical-align: middle;
}

.technical-card-grid th {
  background: #f2f2f2;
  color: #20242a;
  font-weight: 400;
  white-space: normal;
}

.technical-card-grid th:nth-child(1),
.technical-card-grid td:nth-child(1) {
  width: 28px;
}

.technical-card-grid th:nth-child(2),
.technical-card-grid td:nth-child(2) {
  width: 62px;
}

.technical-card-grid th:nth-child(3),
.technical-card-grid td:nth-child(3) {
  width: 22%;
}

.technical-card-grid th:nth-child(4),
.technical-card-grid td:nth-child(4) {
  width: 42px;
}

.technical-card-grid input,
.technical-card-grid select {
  border: 0;
  font-size: 11px;
  min-height: 22px;
  padding: 2px 3px;
  width: 100%;
}

.technical-card-grid .technical-card-unit-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  padding-right: 3px;
}

.technical-card-grid input[type="number"],
.technical-card-meta-grid input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.technical-card-grid input[type="number"]::-webkit-outer-spin-button,
.technical-card-grid input[type="number"]::-webkit-inner-spin-button,
.technical-card-meta-grid input[type="number"]::-webkit-outer-spin-button,
.technical-card-meta-grid input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.technical-card-grid.locked input[readonly],
.technical-card-grid.locked select:disabled,
.technical-card-text-only textarea[readonly],
.technical-card-meta-grid input[readonly],
.technical-card-meta-grid select:disabled {
  background: transparent;
  color: #20242a;
  pointer-events: none;
}

.technical-card-grid.locked input[readonly],
.technical-card-grid.locked select:disabled {
  box-shadow: none;
  outline: 0;
}

.technical-card-grid tr[data-technical-card-row] {
  cursor: default;
}

.technical-card-grid tr[data-technical-card-row].selected td {
  background: #cfe3f5;
}

.technical-card-grid tr[data-technical-card-row].selected input,
.technical-card-grid tr[data-technical-card-row].selected select {
  background: #eaf4ff;
}

.technical-card-row-number {
  color: #777777;
  text-align: center;
}

.technical-card-grid.editing .technical-card-row-number {
  align-items: center;
  display: inline-flex;
  gap: 2px;
  justify-content: center;
  width: 100%;
}

.technical-card-row-delete {
  background: transparent;
  border: 0;
  color: #9b1c1c;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  min-height: 16px;
  padding: 0;
  width: 14px;
}

.technical-card-row-delete:hover {
  background: #f7d8d8;
}

.technical-card-ingredient-cell {
  overflow: visible;
  position: relative;
}

.technical-card-ingredient-field {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  min-width: 0;
}

.technical-card-ingredient-field.locked {
  grid-template-columns: minmax(0, 1fr);
}

.technical-card-ingredient-field input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.technical-card-ingredient-action {
  background: #f7f7f7;
  border: 0;
  border-left: 1px solid #d6d6d6;
  color: #0066aa;
  cursor: default;
  font-size: 15px;
  height: 22px;
  line-height: 1;
  padding: 0;
  text-align: center;
}

.technical-card-suggestions {
  background: #ffffff;
  border: 1px solid #b8c9d8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  display: grid;
  left: 0;
  max-height: 188px;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 8;
}

.technical-card-suggestions button {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  display: grid;
  font: inherit;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  text-align: left;
}

.technical-card-suggestions button:hover {
  background: #eaf4ff;
}

.technical-card-suggestions strong {
  color: #20242a;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-card-suggestions span {
  color: #777777;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-card-grid tfoot td {
  background: #eeeeee;
  font-weight: 500;
}

.technical-card-bottom-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.2fr 1fr 1fr;
}

.technical-card-bottom-grid textarea {
  font-size: 12px;
  min-height: 74px;
  resize: vertical;
}

.technical-card-text-only textarea {
  min-height: 160px;
}

.technical-card-placeholder {
  align-content: center;
  border: 1px solid #d0d0d0;
  color: #777777;
  display: grid;
  gap: 8px;
  min-height: 260px;
  padding: 24px;
  text-align: center;
}

.technical-card-placeholder strong {
  color: #20242a;
  font-size: 16px;
  font-weight: 500;
}

.technical-card-summary {
  align-items: center;
  border: 1px solid #d0d0d0;
  display: grid;
  font-size: 12px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 10px;
}

.technical-card-summary strong {
  font-weight: 500;
}

.subtab-panel {
  border: 1px solid #dddddd;
  border-top: 0;
  min-height: 160px;
  padding: 14px;
}

.card-size-table-wrap th,
.card-size-table-wrap td,
.size-scale-table-wrap th,
.size-scale-table-wrap td {
  white-space: nowrap;
}

.card-size-table-wrap input[type="number"] {
  max-width: 120px;
}

.size-scale-backdrop {
  z-index: 60;
}

.order-dialog.size-scale-dialog {
  bottom: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: 820px;
  width: min(820px, 92vw);
  z-index: 61;
}

.order-dialog.size-scale-dialog .order-dialog-header,
.order-dialog.size-scale-dialog .order-dialog-footer {
  grid-column: 1 / -1;
}

.order-dialog.size-scale-dialog .order-dialog-body {
  min-height: 360px;
  overflow: auto;
}

.size-scale-side-actions {
  border-left: 1px solid #dddddd;
  display: grid;
  gap: 8px;
  padding: 54px 12px 12px;
  place-content: start stretch;
}

.size-scale-side-actions .button {
  width: 100%;
}

.size-scale-table-wrap {
  max-height: 260px;
  overflow: auto;
}

.deleted-row {
  color: #999999;
  text-decoration: line-through;
}

.drawer-footer {
  align-items: center;
  background: #eeeeee;
  border-top: 1px solid #dddddd;
  bottom: 0;
  display: flex;
  gap: 12px;
  min-height: 74px;
  padding: 12px 32px;
}

.drawer-primary-action {
  min-width: 112px;
}

.drawer-cancel-action {
  min-width: 116px;
}

.drawer-delete-action {
  min-width: 104px;
}

.settings-link {
  margin-left: auto;
}

.settings-link::before {
  content: "⚙ ";
}

.toast {
  background: #20242a;
  bottom: 18px;
  color: #ffffff;
  font-size: 13px;
  left: 50%;
  padding: 10px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 13000;
}

@media (max-width: 1280px) {
  .drawer {
    width: min(860px, calc(100vw - 320px));
  }

  .field-row,
  .tab-strip-row {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .money-row {
    grid-template-columns: 160px 170px 1fr;
  }
}

@media (max-width: 900px) {
  .brandbar {
    padding-left: 20px;
  }

  .app-frame {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .primary-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .primary-nav-item {
    font-size: 13px;
    min-height: 84px;
    min-width: 100px;
  }

  .nav-icon {
    height: 34px;
    width: 34px;
  }

  .secondary-nav {
    display: none;
  }

  .content {
    padding: 24px 18px;
    --content-x-padding: 18px;
  }

  .content-header,
  .status-strip,
  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-actions {
    justify-content: flex-start;
    margin-left: 0;
  }

  .page-search {
    max-width: none;
    width: 100%;
  }

  .order-form-grid {
    grid-template-columns: 1fr;
  }

  .drawer {
    width: 100vw;
  }

  .drawer-body {
    padding: 18px 16px 90px;
  }

  .field-row,
  .money-row,
  .tab-strip-row {
    align-items: stretch;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .select-with-link {
    grid-template-columns: 1fr;
  }

  .tab-strip {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Shared document-table column resize handle. Keep cash shifts, inventory
   documents, and document-like reports visually consistent. */
.cash-shifts-column-resize-handle,
.inventory-column-resize-handle,
.product-usage-column-resizer,
.movement-column-resize-handle,
.egais-column-resize-handle {
  bottom: auto;
  cursor: col-resize;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 7px;
}

.cash-shifts-column-resize-handle::after,
.inventory-column-resize-handle::after,
.product-usage-column-resizer::after,
.movement-column-resize-handle::after,
.egais-column-resize-handle::after {
  display: none;
}

.cash-shifts-column-resize-handle:hover,
.inventory-column-resize-handle:hover,
.product-usage-column-resizer:hover,
.movement-column-resize-handle:hover,
.egais-column-resize-handle:hover,
.is-resizing-inventory-column .inventory-column-resize-handle,
.is-resizing-product-usage-column .product-usage-column-resizer,
.is-resizing-movement-column .movement-column-resize-handle,
.is-resizing-egais-column .egais-column-resize-handle,
.cash-shifts-column-resizing .cash-shifts-column-resize-handle {
  background: rgb(47 49 50 / 12%);
}

.cash-shifts-column-resizing,
.is-resizing-inventory-column,
.is-resizing-product-usage-column,
.is-resizing-movement-column,
.is-resizing-egais-column {
  cursor: col-resize;
  user-select: none;
}

.cash-shifts-column-resizing *,
.is-resizing-inventory-column *,
.is-resizing-product-usage-column *,
.is-resizing-movement-column *,
.is-resizing-egais-column * {
  cursor: col-resize !important;
}

/* Confirm modals use drawer-close as an icon only. Keep the drawer's absolute
   positioning out of modal headers so the close button cannot leave the row. */
.confirm-dialog > .confirm-header:has(> .drawer-close) {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  min-height: 56px;
}

.confirm-dialog > .confirm-header > .drawer-close {
  align-self: center;
  box-sizing: border-box;
  flex: 0 0 40px;
  height: 40px;
  margin-left: auto;
  position: relative;
  right: auto;
  top: auto;
  width: 40px;
}

.confirm-dialog > .confirm-header > .drawer-close::before,
.confirm-dialog > .confirm-header > .drawer-close::after {
  left: 5px;
  top: 19px;
  width: 30px;
}
.egais-stock-filter-row th {
  padding: 2px 4px;
}

.egais-stock-filter-row input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 12px;
  min-height: 24px;
  padding: 2px 4px;
  width: 100%;
}

.egais-stock-filter-row input:focus {
  background: #fff;
  outline: 1px solid #7f9cac;
}

.egais-stock-mark-list {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.egais-stock-mark-list span {
  align-items: baseline;
  display: grid;
  gap: 6px;
  grid-template-columns: min-content minmax(0, 1fr);
  min-width: 0;
}

.egais-stock-mark-list b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.egais-stock-mark-list i {
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.egais-stock-marks-button {
  min-width: 96px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.egais-stock-marks-button small {
  font-size: 10px;
  color: var(--muted);
}

.egais-stock-mark-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.egais-mark-queue-root {
  inset: 0;
  position: fixed;
  z-index: 12520;
}

.egais-mark-queue-root > .modal-backdrop {
  z-index: 12520;
}

.egais-mark-queue-dialog {
  height: min(78vh, 760px);
  left: 50%;
  max-height: calc(100vh - 48px);
  max-width: calc(100vw - 48px);
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1180px, calc(100vw - 48px));
  z-index: 12521;
}

.egais-mark-queue-body {
  min-height: 0;
  padding: 12px;
}

.egais-mark-queue-body > .table-wrap {
  height: 100%;
}

.egais-mark-queue-table {
  table-layout: fixed;
}

.egais-stock-discrepancy,
.egais-stock-discrepancy-row td {
  color: #a62020;
}

.egais-marks-details-root {
  inset: 0;
  position: fixed;
  z-index: 12500;
}

.egais-marks-details-root > .modal-backdrop {
  z-index: 12500;
}

.egais-marks-details-dialog {
  inset: 0;
  box-sizing: border-box;
  height: 100%;
  left: 0;
  max-width: none;
  max-height: none;
  border-radius: 0;
  top: 0;
  transform: none;
  width: 100%;
  z-index: 12501;
}

.egais-marks-details-body {
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto minmax(150px, 0.7fr);
  min-height: 0;
  gap: 8px;
  padding: 12px;
}

.egais-marks-details-body h4 {
  margin: 0;
  font-size: 14px;
}

.egais-marks-summary-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.egais-marks-search {
  margin-left: auto;
  min-width: min(360px, 100%);
}

.egais-marks-search input {
  width: 100%;
}

.egais-marks-current-wrap,
.egais-marks-journal-wrap {
  min-height: 0;
  overflow: auto;
}

.egais-mark-balance-document {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.egais-mark-balance-header {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(360px, 620px) 1fr;
  padding: 10px 12px 14px;
}

.egais-mark-balance-fields {
  display: grid;
  gap: 7px;
}

.egais-mark-balance-fields label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 120px minmax(0, 1fr);
}

.egais-mark-balance-fields input {
  min-height: 30px;
}

.egais-mark-balance-confirmed {
  align-self: center;
  color: #1838d2;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.egais-mark-balance-table {
  min-width: 936px;
}

.egais-mark-balance-table td:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.egais-document-row.is-test td {
  background: #fff7d6;
}

.egais-test-document-notice {
  background: #fff7d6;
  border-left: 4px solid #c4b700;
  color: #272727;
  margin: 0 0 10px;
  padding: 9px 12px;
}

.egais-confirmed-quantity-cell.is-discrepancy,
.egais-confirmed-volume-cell.is-discrepancy {
  background: #f7dddd;
  color: #8b1f1f;
  font-weight: 600;
}

.egais-confirmed-volume-cell.is-discrepancy input {
  background: transparent;
  color: inherit;
  font-weight: inherit;
}
