/* apps/web/app/components/consult-workspace.css */
.receiving-mobile.consult-screen {
  max-width: 1200px;
  width: 100%;
  color: #091b40;
}
.consult-workspace {
  padding: 26px;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: white;
}
.receiving-mobile .consult-workspace > header {
  display: block;
  height: auto;
  min-height: 0;
  position: static;
  overflow: visible;
  padding: 0;
  margin: 0 0 24px;
}
.consult-workspace h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 12px 0 10px;
  overflow-wrap: anywhere;
}
.consult-workspace header p,
.consult-workspace small,
.consult-workspace footer p {
  color: #576c90;
  line-height: 1.5;
}
.consult-workspace button {
  font: inherit;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c8d4e6;
  border-radius: 8px;
  background: white;
  color: #074bfa;
  cursor: pointer;
}
.consult-workspace button:disabled {
  opacity: .6;
  cursor: wait;
}
.consult-workspace button:focus-visible {
  outline: 3px solid #537bfa;
  outline-offset: 3px;
}
.consult-workspace .consult-link {
  border: 0;
  padding-left: 0;
  text-align: left;
}
.consult-table {
  width: 100%;
  border: 1px solid #e0e7f1;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}
.consult-table th {
  background: #f3f6fb;
  color: #405477;
  text-align: left;
  font-weight: 600;
}
.consult-table th,
.consult-table td {
  padding: 16px;
  border-bottom: 1px solid #e0e7f1;
  overflow-wrap: anywhere;
}
.consult-table tr:last-child td {
  border-bottom: 0;
}
.consult-table td:last-child {
  white-space: nowrap;
}
.consult-unit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.consult-unit-heading h3 {
  font-size: 20px;
  margin: 12px 0;
}
.consult-status {
  color: #8d4908;
  background: #fff5df;
  border: 1px solid #ffe0aa;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
}
.consult-units {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.consult-units li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid #e0e7f1;
  border-radius: 10px;
  padding: 14px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.consult-units small {
  display: block;
}
.consult-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f3f6fb;
  border-radius: 8px;
  color: #405477;
  flex-shrink: 0;
}
.consult-units li > div {
  min-width: 0;
  flex: 1;
}
.consult-units .consult-label {
  flex: 0 1 230px;
}
.consult-unit-state {
  flex-basis: 100%;
}
.consult-workspace footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.consult-operations {
  margin-top: 20px;
  border: 1px solid #e0e7f1;
  border-radius: 10px;
  padding: 16px;
  background: white;
}
.consult-operations > summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 600;
}
@media (max-width: 640px) {
  .consult-workspace {
    padding: 16px;
  }
  .consult-workspace h2 {
    font-size: 26px;
  }
  .consult-table,
  .consult-table tbody,
  .consult-table tr,
  .consult-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  .consult-table {
    border: 0;
  }
  .consult-table thead {
    display: none;
  }
  .consult-table tr {
    border: 1px solid #e0e7f1;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
  }
  .consult-table td {
    border: 0;
    padding: 4px 0;
  }
  .consult-table td[data-label]:before {
    content: attr(data-label);
    display: block;
    color: #576c90;
    font-size: 12px;
  }
  .consult-table td:last-child {
    margin-top: 6px;
  }
  .consult-table td:last-child button {
    width: 100%;
  }
  .consult-units .consult-label {
    flex: 1 1 100%;
    padding-left: 60px;
  }
  .consult-workspace footer {
    display: block;
  }
}
.consult-compact header {
  margin-bottom: 18px;
}
.consult-compact h2 {
  font-size: 24px;
  margin: 8px 0;
}
.consult-compact header p {
  margin: 8px 0 12px;
}
.consult-compact .consult-situation {
  font-size: 13px;
  color: #576c90;
}
.consult-product-groups {
  list-style: none;
  padding: 0;
  margin: 0;
}
.consult-product-groups > li {
  border-bottom: 1px solid #e0e7f1;
  padding: 14px 0;
}
.consult-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  align-items: center;
  gap: 12px;
}
.consult-product-name {
  display: flex;
  min-width: 0;
  white-space: nowrap;
  align-items: baseline;
}
.consult-product-name > b {
  flex: none;
}
.consult-product-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
}
.consult-quantity {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.consult-label-details {
  margin-top: 4px;
}
.consult-label-details > summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  align-content: center;
  color: #074bfa;
  font-size: 14px;
}
.consult-label-details > summary:focus-visible {
  outline: 3px solid #537bfa;
  outline-offset: 2px;
}
.consult-full-name {
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.consult-label-details ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px;
}
.consult-label-details li {
  padding: 10px;
  background: #f3f6fb;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.consult-label-details small {
  display: block;
}
.consult-compact footer {
  margin-top: 16px;
}
@media (max-width: 640px) {
  .consult-compact h2 {
    font-size: 22px;
  }
  .consult-product-row {
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 8px;
  }
  .consult-compact .consult-unit-heading h3 {
    font-size: 17px;
  }
}
.receiving-mobile .consult-compact > header {
  display: block;
}
.consult-compact .consult-status {
  display: inline-block;
  padding: 5px 10px;
}
.consult-compact .consult-label-details {
  padding: 0;
  border: 0;
  background: transparent;
  margin: 4px 0 0;
}
.consult-compact .consult-label-details > summary {
  margin: 0;
  padding: 6px 0;
}
.receiving-mobile .consult-compact > header {
  height: auto;
  min-height: 0;
  position: static;
  overflow: visible;
  padding: 0;
}

/* apps/web/app/components/registration-workspace.css */
.receiving-mobile [hidden] {
  display: none !important;
}
.receiving-mobile.registration-screen {
  max-width: 1200px;
  width: 100%;
  color: #091b40;
}
.initial-load-batch.registration-workspace {
  padding: 26px;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
  background: #fff;
}
.initial-load-batch.registration-workspace .panel-head {
  display: block;
  margin-bottom: 26px;
}
.initial-load-batch.registration-workspace h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #091b40;
}
.initial-load-batch.registration-workspace .panel-head p {
  color: #576c90;
  margin: 0;
}
.initial-load-batch.registration-workspace .registration-form {
  border: 1px solid #e0e7f1;
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.initial-load-batch.registration-workspace .registration-context {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 18px;
}
.initial-load-batch.registration-workspace label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #405477;
}
.initial-load-batch.registration-workspace :is(input, select, button) {
  min-height: 44px;
  font: inherit;
  border-radius: 8px;
}
.initial-load-batch.registration-workspace :is(input, select) {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8d4e6;
  background: white;
  color: #13294e;
  padding: 10px;
}
.initial-load-batch.registration-workspace :is(button, input, select):focus-visible {
  outline: 3px solid #537bfa;
  outline-offset: 3px;
}
.initial-load-batch.registration-workspace .primary-button {
  background: #074bfa;
  border-color: #074bfa;
  color: white;
}
.initial-load-batch.registration-workspace .batch-context-hint {
  display: block;
  margin: 12px 0;
  color: #576c90;
}
.initial-load-batch.registration-workspace .batch-entry-row {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}
.initial-load-batch.registration-workspace .batch-product-name {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
  line-height: 1.5;
}
.initial-load-batch.registration-workspace .registration-selected-caption {
  display: block;
  margin: 18px 0 10px;
  color: #576c90;
}
.initial-load-batch.registration-workspace .registration-quantity {
  width: 150px;
  flex: 0 0 150px;
}
.initial-load-batch.registration-workspace .registration-stepper {
  display: flex;
  align-items: center;
}
.initial-load-batch.registration-workspace .registration-stepper input {
  text-align: center;
  width: 60px;
  border-radius: 0;
}
.initial-load-batch.registration-workspace .registration-stepper button {
  width: 44px;
  flex-shrink: 0;
  border: 1px solid #c8d4e6;
  background: #f6f8fc;
  color: #13294e;
}
.initial-load-batch.registration-workspace .batch-session {
  margin-top: 28px;
}
.initial-load-batch.registration-workspace .registration-columns {
  display: grid;
  grid-template-columns: 1fr 110px 100px;
  padding: 12px;
  color: #576c90;
  border-bottom: 1px solid #e0e7f1;
  font-size: 13px;
}
.initial-load-batch.registration-workspace .batch-session li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid #e0e7f1;
  background: white;
}
.initial-load-batch.registration-workspace .batch-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.initial-load-batch.registration-workspace .batch-row-actions b {
  min-width: 86px;
  text-align: center;
}
.initial-load-batch.registration-workspace .batch-row-actions button {
  min-width: 44px;
  border: 1px solid #c8d4e6;
  background: white;
  color: #13294e;
}
.initial-load-batch.registration-workspace .registration-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.initial-load-batch.registration-workspace .registration-summary small {
  color: #576c90;
}
.initial-load-batch.registration-workspace .registration-summary [role=status] {
  margin-left: auto;
}
.initial-load-batch.registration-workspace .batch-final-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .initial-load-batch.registration-workspace {
    padding: 16px;
  }
  .initial-load-batch.registration-workspace h2 {
    font-size: 26px;
  }
  .initial-load-batch.registration-workspace .registration-form {
    padding: 14px;
  }
  .initial-load-batch.registration-workspace .registration-context {
    grid-template-columns: 1fr;
  }
  .initial-load-batch.registration-workspace .batch-entry-row {
    gap: 12px;
  }
  .initial-load-batch.registration-workspace .batch-entry-row > .batch-product-name {
    flex: 1 1 100%;
  }
  .initial-load-batch.registration-workspace .batch-add {
    flex: 1 1 140px;
  }
  .initial-load-batch.registration-workspace .registration-columns {
    display: none;
  }
  .initial-load-batch.registration-workspace .batch-session li {
    flex-wrap: wrap;
  }
  .initial-load-batch.registration-workspace .batch-session li > .batch-product-name {
    flex: 1 1 100%;
  }
  .initial-load-batch.registration-workspace .batch-row-actions {
    margin-left: auto;
  }
  .initial-load-batch.registration-workspace .registration-summary {
    display: grid;
    gap: 8px;
  }
  .initial-load-batch.registration-workspace .registration-summary [role=status] {
    margin: 0;
  }
  .initial-load-batch.registration-workspace .registration-review {
    width: 100%;
    order: -1;
  }
}
.initial-load-batch.registration-workspace .batch-session h3 {
  font-size: 20px;
  letter-spacing: 0;
  margin: 22px 0 14px;
}
.initial-load-batch.registration-workspace .batch-final-actions {
  flex-direction: row;
  align-items: center;
}
.initial-load-batch.registration-workspace .batch-final-actions > .primary-button {
  order: 0;
}
@media (max-width: 640px) {
  .initial-load-batch.registration-workspace .batch-final-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .initial-load-batch.registration-workspace .batch-final-actions > .primary-button {
    order: -1;
  }
}
.initial-load-batch.registration-workspace .registration-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
.initial-load-batch.registration-workspace .registration-form {
  margin: 0;
}
.initial-load-batch.registration-workspace .registration-form h3 {
  font-size: 18px;
  margin: 0 0 18px;
}
.initial-load-batch.registration-workspace .registration-erp {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #091b40;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.initial-load-batch.registration-workspace .batch-product-name > strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.initial-load-batch.registration-workspace .registration-form ul button {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
}
.initial-load-batch.registration-workspace .batch-session {
  margin: 0;
  min-width: 0;
}
.initial-load-batch.registration-workspace .batch-session h3 {
  margin: 0 0 16px;
}
.initial-load-batch.registration-workspace .batch-session ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.initial-load-batch.registration-workspace .registration-columns {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}
.initial-load-batch.registration-workspace .batch-session li {
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 12px;
  margin: 0;
  border-bottom: 1px solid #d7e0ed;
}
.initial-load-batch.registration-workspace .batch-line-identity {
  flex: 1 1 180px;
  min-width: 0;
}
.initial-load-batch.registration-workspace .batch-row-actions {
  gap: 8px;
  margin: 0;
}
.initial-load-batch.registration-workspace .batch-row-actions button {
  font-size: 14px;
  padding: 8px 12px;
  width: auto;
  min-width: 44px;
  flex-shrink: 0;
  white-space: normal;
}
.initial-load-batch.registration-workspace .batch-row-actions button:hover:not(:disabled) {
  background: #edf3ff;
  border-color: #8da6d4;
}
.initial-load-batch.registration-workspace .batch-line-total {
  display: grid;
  gap: 2px;
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.initial-load-batch.registration-workspace .batch-line-total b {
  min-width: 0;
  font-size: 20px;
  line-height: 1.2;
}
.initial-load-batch.registration-workspace .batch-line-total small {
  font-size: 12px;
  color: #465d7e;
}
.initial-load-batch.registration-workspace .batch-row-edit {
  flex: 0 1 292px;
  min-width: 0;
}
.initial-load-batch.registration-workspace .batch-row-edit .batch-row-actions {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto auto;
  align-items: end;
}
.initial-load-batch.registration-workspace .batch-row-edit .batch-quantity {
  min-width: 0;
  width: auto;
  font-size: 12px;
  gap: 6px;
  margin: 0;
}
.initial-load-batch.registration-workspace .batch-row-edit input {
  max-width: 90px;
  text-align: center;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.initial-load-batch.registration-workspace .batch-row-actions .batch-save {
  background: #074bfa;
  border-color: #074bfa;
  color: white;
}
.initial-load-batch.registration-workspace .batch-row-actions .batch-save:hover:not(:disabled) {
  background: #0039bd;
  border-color: #0039bd;
}
.initial-load-batch.registration-workspace button:disabled,
.initial-load-batch.registration-workspace .batch-row-actions button:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #e3e8f0;
  border-color: #e3e8f0;
  color: #53627a;
}
.initial-load-batch.registration-workspace input[aria-invalid=true] {
  border: 2px solid #a41d29;
  background: #fffafa;
}
.initial-load-batch.registration-workspace .registration-field-error {
  color: #a41d29;
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
}
.initial-load-batch.registration-workspace .batch-empty {
  padding: 32px 20px;
  text-align: center;
  color: #465d7e;
  line-height: 1.5;
}
.initial-load-batch.registration-workspace .batch-empty strong {
  display: block;
  font-size: 18px;
  color: #091b40;
}
.initial-load-batch.registration-workspace .batch-empty p {
  font-size: 14px;
  margin: 10px auto;
  max-width: 34ch;
}
.initial-load-batch.registration-workspace .batch-empty small {
  font-size: 12px;
}
.initial-load-batch.registration-workspace .registration-checkout {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #fff;
  border-top: 1px solid #d7e0ed;
  margin-top: 24px;
  padding: 18px 0 max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.initial-load-batch.registration-workspace .registration-summary {
  display: grid;
  gap: 4px;
  padding: 0;
  margin-right: auto;
}
.initial-load-batch.registration-workspace .registration-summary strong {
  font-size: 18px;
}
.initial-load-batch.registration-workspace .registration-summary [role=status] {
  margin: 0;
  font-size: 12px;
}
.initial-load-batch.registration-workspace .batch-final-actions {
  margin: 0;
  gap: 12px;
  align-items: center;
}
.initial-load-batch.registration-workspace .registration-review {
  font-weight: 700;
  min-height: 48px;
  min-width: 190px;
  padding: 12px 20px;
}
.initial-load-batch.registration-workspace .registration-edit-hint {
  flex-basis: 100%;
  color: #465d7e;
  font-size: 13px;
}
@media (min-width: 1100px) {
  .initial-load-batch.registration-workspace .registration-body {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
  }
  .initial-load-batch.registration-workspace .registration-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .initial-load-batch.registration-workspace .registration-search {
    grid-column: 1/-1;
  }
  .initial-load-batch.registration-workspace .batch-entry-row {
    gap: 14px;
  }
  .initial-load-batch.registration-workspace .batch-entry-row > .batch-product-name {
    flex-basis: 100%;
  }
  .initial-load-batch.registration-workspace .batch-add {
    flex: 1 1 120px;
  }
}
@media (max-width: 640px) {
  .initial-load-batch.registration-workspace {
    padding: 16px;
  }
  .initial-load-batch.registration-workspace .registration-body {
    gap: 24px;
  }
  .initial-load-batch.registration-workspace .registration-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .initial-load-batch.registration-workspace .registration-search {
    grid-column: 1/-1;
  }
  .initial-load-batch.registration-workspace .registration-form {
    padding: 14px;
  }
  .initial-load-batch.registration-workspace :is(input, select) {
    font-size: 16px;
  }
  .initial-load-batch.registration-workspace .registration-columns {
    display: none;
  }
  .initial-load-batch.registration-workspace .batch-session li {
    display: block;
    padding: 14px 0;
  }
  .initial-load-batch.registration-workspace .batch-row-actions {
    margin-top: 12px;
    width: 100%;
    justify-content: flex-end;
  }
  .initial-load-batch.registration-workspace .batch-line-total {
    margin-right: auto;
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
  }
  .initial-load-batch.registration-workspace .batch-row-edit {
    width: 100%;
  }
  .initial-load-batch.registration-workspace .registration-checkout {
    display: block;
    padding-top: 14px;
    margin-top: 20px;
  }
  .initial-load-batch.registration-workspace .registration-summary {
    display: flex;
    gap: 4px 12px;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
  }
  .initial-load-batch.registration-workspace .registration-summary strong {
    font-size: 16px;
  }
  .initial-load-batch.registration-workspace .registration-summary small {
    font-size: 12px;
  }
  .initial-load-batch.registration-workspace .registration-summary [role=status] {
    flex-basis: 100%;
  }
  .initial-load-batch.registration-workspace .batch-final-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .initial-load-batch.registration-workspace .registration-review {
    width: 100%;
    order: -1;
  }
  .initial-load-batch.registration-workspace .registration-edit-hint {
    display: block;
    margin-top: 10px;
  }
}

/* apps/web/app/components/print-workspace.css */
.receiving-mobile.print-screen {
  max-width: 1200px;
  width: 100%;
  color: #091b40;
}
.label-navigation {
  display: flex;
  background: #f3f6fb;
  border-bottom: 1px solid #e0e7f1;
  margin-bottom: 28px;
}
.label-navigation button {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 12px;
  color: #405477;
  font: inherit;
  cursor: pointer;
}
.label-navigation button[aria-current=page] {
  border-bottom-color: #064bff;
  color: #0046e8;
  font-weight: 700;
}
.print-workspace {
  background: white;
  padding: 26px;
  border: 1px solid #e0e7f1;
  border-radius: 12px;
}
.print-workspace button,
.print-workspace input,
.print-workspace select {
  font: inherit;
}
.print-workspace button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid #c8d4e6;
  background: white;
  color: #13294e;
  border-radius: 8px;
  padding: 10px 16px;
}
.print-workspace button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
.print-workspace .primary-button {
  background: #074bfa;
  color: white;
  border-color: #074bfa;
  font-weight: 700;
}
.print-workspace :is(button, input, select):focus-visible,
.label-navigation button:focus-visible {
  outline: 3px solid #537bfa;
  outline-offset: 3px;
}
.print-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}
.print-heading h2 {
  font-size: 32px;
  letter-spacing: -.8px;
  line-height: 1.2;
  margin: 0 0 10px;
}
.print-heading p {
  color: #576c90;
  margin: 0;
  line-height: 1.5;
}
.print-connection {
  flex: 0 1 300px;
  border: 1px solid #e3e9f3;
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
  min-width: 230px;
}
.print-connection strong,
.print-connection small {
  display: block;
  line-height: 1.5;
}
.print-connection small {
  color: #5d6e89;
  margin-top: 4px;
}
.print-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9a6b14;
  margin-right: 7px;
}
.print-dot.recent {
  background: #2867c4;
}
.print-tools {
  display: grid;
  grid-template-columns: 220px minmax(180px, 1fr);
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.print-location {
  font-size: 13px;
  color: #405477;
  display: grid;
  gap: 6px;
}
.print-workspace select,
.print-search input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid #d6e0ee;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 10px 12px;
  color: #233b63;
}
.print-pending {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #405477;
}
.print-pending strong {
  font-size: 23px;
  color: #091b40;
}
.print-pending button {
  margin-left: auto;
  border: 0;
  padding: 6px;
  color: #0046e8;
  text-decoration: underline;
  background: transparent;
}
.print-table-heading,
.print-product {
  display: grid;
  grid-template-columns: 44px minmax(180px, 2fr) minmax(100px, 1fr) 90px 150px;
  gap: 14px;
  align-items: center;
}
.print-table-heading {
  border-radius: 8px 8px 0 0;
  background: #f0f4f9;
  color: #465b7a;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}
.print-table-heading > span:first-child {
  font-size: 0;
}
.print-products {
  border: 1px solid #e0e7f1;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}
.print-product {
  padding: 18px 16px;
  border-bottom: 1px solid #e7edf6;
}
.print-product:last-child {
  border-bottom: 0;
}
.print-product > input {
  accent-color: #064bff;
  width: 21px;
  height: 21px;
  min-height: 0;
  cursor: pointer;
}
.print-product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.print-product-name strong {
  font-size: 15px;
  line-height: 1.45;
}
.print-product-name small {
  display: block;
  color: #6980a3;
  font-size: 13px;
  margin-top: 4px;
}
.print-product-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 48px;
  background: #f1f4f8;
  color: #8496b2;
  border-radius: 8px;
  font-size: 24px;
}
.print-product-location {
  color: #435a7e;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.print-product-count {
  text-align: center;
}
.print-quantity {
  display: flex;
  align-items: stretch;
  border: 1px solid #d5dfed;
  border-radius: 8px;
  overflow: hidden;
}
.print-quantity button {
  padding: 5px;
  width: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  background: #f5f7fb;
  font-size: 20px;
}
.print-quantity input {
  min-width: 0;
  width: 100%;
  border: 0;
  text-align: center;
  color: #0c2044;
  appearance: textfield;
  -moz-appearance: textfield;
}
.print-quantity input::-webkit-inner-spin-button {
  appearance: none;
}
.print-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #e4eaf3;
  margin-top: 24px;
  padding: 20px 0 4px;
  background: white;
}
.print-actions strong {
  font-size: 19px;
}
.print-actions small {
  display: block;
  color: #6a7c99;
  margin-top: 7px;
  font-size: 12px;
}
.print-action-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.print-action-buttons button {
  min-height: 50px;
}
.print-secondary {
  margin-top: 20px;
  border-top: 1px solid #e6ecf5;
  padding-top: 14px;
}
.print-secondary > summary {
  cursor: pointer;
  color: #4c6284;
  padding: 6px 0;
}
.print-secondary article {
  border-bottom: 1px solid #e0e7f1;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.print-preview {
  border: 1px solid #cddaf0;
  background: #f8faff;
  padding: 16px;
  border-radius: 8px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.print-empty {
  padding: 24px 10px;
  text-align: center;
  color: #637492;
}
.print-mobile-label {
  display: none;
}
.print-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .label-navigation {
    margin-bottom: 18px;
  }
  .label-navigation button {
    padding: 10px 4px;
    font-size: 12px;
    line-height: 1.4;
  }
  .print-workspace {
    padding: 16px 12px;
  }
  .print-heading {
    display: block;
    margin-bottom: 18px;
  }
  .print-heading h2 {
    font-size: 25px;
  }
  .print-heading p {
    font-size: 14px;
  }
  .print-connection {
    margin-top: 16px;
    min-width: 0;
    font-size: 12px;
    padding: 10px;
  }
  .print-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .print-pending {
    grid-row: 2;
    font-size: 13px;
  }
  .print-pending strong {
    font-size: 21px;
  }
  .print-table-heading {
    display: none;
  }
  .print-products {
    display: grid;
    gap: 12px;
    border: 0;
  }
  .print-product {
    grid-template-columns: 24px minmax(0, 1fr) 126px;
    gap: 10px;
    border: 1px solid #dfe7f2 !important;
    border-radius: 9px;
    padding: 14px 10px;
  }
  .print-product > input {
    grid-row: 1/4;
    align-self: start;
    margin-top: 5px;
  }
  .print-product-name {
    grid-column: 2/4;
    gap: 8px;
  }
  .print-product-icon {
    flex-basis: 32px;
    height: 40px;
    font-size: 21px;
  }
  .print-product-name strong {
    font-size: 14px;
  }
  .print-product-location {
    grid-column: 2/4;
    font-size: 12px;
  }
  .print-product-count {
    grid-column: 2;
    text-align: left;
    font-size: 12px;
    color: #5d7190;
  }
  .print-mobile-label {
    display: inline;
  }
  .print-quantity {
    grid-column: 3;
    grid-row: 3;
  }
  .print-quantity button {
    width: 38px;
    min-height: 44px;
  }
  .print-actions {
    display: block;
    position: sticky;
    bottom: 0;
    padding: 14px 0 8px;
    z-index: 2;
  }
  .print-actions strong {
    font-size: 16px;
  }
  .print-action-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    margin-top: 12px;
  }
  .print-action-buttons button {
    padding: 10px 6px;
    font-size: 13px;
  }
}
.print-selection-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.print-pending-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 16px;
  border: 1px solid #e0e7f1;
}
.print-pending-table th {
  background: #edf1f6;
  text-align: left;
}
.print-pending-table :is(th, td) {
  padding: 14px;
  border-bottom: 1px solid #e0e7f1;
}
.print-pending-table :is(th, td):last-child {
  width: 82px;
  text-align: center;
}
.print-inline-product {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: baseline;
  white-space: nowrap;
}
.print-inline-product b {
  flex-shrink: 0;
}
.print-inline-product > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
}
.print-quick {
  background: #f3f6f9;
  padding: 20px;
  border-radius: 12px;
}
.print-quick h3 {
  margin: 0 0 16px;
}
.print-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.print-presets button {
  flex: 1;
  padding: 10px;
}
.print-presets button[aria-pressed=true] {
  background: #065bed;
  color: white;
  border-color: #065bed;
}
.print-quick label {
  display: grid;
  gap: 7px;
}
.print-quick input {
  width: 160px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #c8d4e6;
  border-radius: 7px;
}
.print-quick > p {
  border-top: 1px solid #dae2ed;
  padding-top: 16px;
  line-height: 1.5;
}
.print-quick > .primary-button {
  width: 100%;
  min-height: 52px;
}
.print-specific {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}
.print-specific label {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.print-specific > input {
  width: 64px;
  min-height: 44px;
}
.print-specific label > input {
  flex-shrink: 0;
}
.print-confirm > p {
  line-height: 1.6;
}
.print-confirm details {
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.print-chosen-products {
  list-style: none;
  padding: 0;
}
.print-chosen-products li {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  border-bottom: 1px solid #e0e7f1;
  padding: 12px 0;
}
.print-confirm .print-actions {
  justify-content: flex-end;
}
.print-confirm .print-actions button {
  min-width: 180px;
}
.print-workspace summary {
  cursor: pointer;
}
@media (max-width: 700px) {
  .print-selection-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .print-quick {
    padding: 14px;
  }
  .print-presets {
    gap: 6px;
  }
  .print-presets button {
    font-size: 13px;
    padding: 8px 5px;
  }
  .print-pending-table :is(th, td) {
    padding: 10px 8px;
    font-size: 14px;
  }
  .print-pending-table :is(th, td):last-child {
    width: 66px;
  }
  .print-confirm .print-actions {
    display: flex;
    position: static;
    gap: 10px;
  }
  .print-confirm .print-actions button {
    min-width: 0;
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
  }
}
.print-selection-layout > div {
  min-width: 0;
  max-width: 100%;
}
.print-workspace .print-pending-table {
  display: table;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}
.print-workspace .print-pending-table thead {
  display: table-header-group;
}
.print-workspace .print-pending-table tbody {
  display: table-row-group;
}
.print-workspace .print-pending-table tr {
  display: table-row;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.print-workspace .print-pending-table :is(th, td) {
  display: table-cell;
  width: auto;
  white-space: nowrap;
  vertical-align: middle;
}
.print-workspace .print-pending-table th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: #13294e;
}
.print-workspace .print-pending-table :is(th, td):last-child {
  width: 96px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.print-workspace .print-pending-table td::before {
  content: none;
}
@media (max-width: 700px) {
  .print-workspace .print-pending-table :is(th, td) {
    padding: 10px 8px;
  }
  .print-workspace .print-pending-table :is(th, td):last-child {
    width: 84px;
  }
}
.print-workspace .print-pending-table td {
  font-weight: 400;
  color: #13294e;
}
.print-quantity-panel {
  position: sticky;
  top: 72px;
}
.print-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #405477;
  font-size: 14px;
}
.print-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.print-mobile-selection {
  display: none;
}
@media (max-width: 700px) {
  .print-quantity-panel {
    position: static;
    grid-row: 1;
  }
  .print-list-page {
    grid-row: 2;
  }
  .print-quick > p,
  .print-quick > .primary-button {
    display: none;
  }
  .print-pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }
  .print-pagination button {
    padding: 8px;
  }
  .print-mobile-selection {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: white;
    border-top: 1px solid #d6e0ee;
    padding: 12px 0 max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -5px 12px #13294e0a;
  }
  .print-mobile-selection p {
    margin: 0 0 8px;
    font-size: 15px;
  }
  .print-mobile-selection button {
    width: 100%;
  }
}

/* apps/web/app/globals.css */
:root {
  --blue-900:#082d68;
  --blue-800:#0b438f;
  --blue:#0861c9;
  --blue-100:#eaf3ff;
  --red:#d92d35;
  --red-100:#fff0f1;
  --green:#16875f;
  --green-100:#e8f7f0;
  --orange:#c66b12;
  --orange-100:#fff3e1;
  --ink:#172436;
  --muted:#68778a;
  --line:#dce5ee;
  --bg:#f4f7fa;
  --white:#fff;
  --radius:16px;
  --shadow:0 7px 25px #082d6810;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 Arial, sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background:
    linear-gradient(
      180deg,
      var(--blue-900),
      #061f47);
  color: white;
  padding: 22px 15px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 20px;
  border-bottom: 1px solid #ffffff20;
}
.brand-word {
  border-left: 4px solid var(--red);
  padding: 4px;
  color: white;
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: .7px;
}
.brand-word b {
  font-size: 12px;
}
.brand strong,
.brand span {
  display: block;
}
.brand span {
  color: #a9bad1;
  font-size: 12px;
}
aside nav {
  display: grid;
  gap: 2px;
  padding-top: 15px;
}
aside nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #c4d2e4;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  text-align: left;
}
aside nav button i {
  font-style: normal;
  font-size: 17px;
  width: 21px;
  text-align: center;
}
aside nav button:hover,
aside nav button.active {
  background: #ffffff15;
  color: white;
}
aside nav button.active {
  box-shadow: inset 3px 0 var(--red);
}
aside nav button.manager-start {
  margin-top: 13px;
  border-top: 1px solid #ffffff20;
  border-radius: 0;
  padding-top: 18px;
}
aside footer {
  margin-top: auto;
  padding: 15px 9px 2px;
  color: #a4b5cc;
  font-size: 12px;
}
aside footer i,
.online-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3bd18e;
  margin-right: 5px;
}
.offline {
  color: var(--orange) !important;
}
.offline i,
i.offline {
  background: var(--orange) !important;
}
main {
  min-width: 0;
}
header {
  height: 82px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
header > div {
  margin-right: auto;
}
header small {
  color: var(--blue);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}
header h1 {
  font-size: 21px;
  margin: 2px 0;
}
.store-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.store-select span {
  font-size: 11px;
  color: var(--muted);
}
select,
input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
select:focus,
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
header select {
  min-height: 40px;
}
.online-status {
  font-size: 12px;
  color: var(--green);
}
.avatar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.content {
  padding: 26px 28px;
  max-width: 1400px;
  margin: auto;
}
.page-title {
  display: none;
}
.mobile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(
      125deg,
      var(--blue-900),
      var(--blue));
  color: white;
  border-radius: 21px;
  padding: 23px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.mobile-hero small {
  color: #c6dcff;
  letter-spacing: 1px;
  font-weight: 700;
}
.mobile-hero h1 {
  font-size: 25px;
  margin: 3px 0;
}
.mobile-hero p {
  margin: 0;
  color: #d7e7ff;
}
.mobile-hero > b {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #ffffff18;
  border: 1px solid #ffffff30;
}
.mobile-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 13px;
  margin-bottom: 22px;
  box-shadow: 0 3px 15px #082d6808;
}
.mobile-search > span {
  font-size: 22px;
  color: var(--blue);
}
.mobile-search input {
  width: 100%;
  border: 0;
  box-shadow: none !important;
}
.mobile-search button {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 21px 0 11px;
}
.section-head small {
  font-size: 10px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1px;
}
.section-head h2 {
  font-size: 18px;
  margin: 2px 0;
}
.section-head > button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.quick-grid > button {
  display: grid;
  grid-template-columns: 48px 1fr 15px;
  grid-template-rows: auto auto;
  align-items: center;
  text-align: left;
  column-gap: 12px;
  min-height: 85px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
  color: var(--ink);
  box-shadow: 0 3px 14px #082d6808;
}
.quick-grid button > i {
  grid-row: 1/3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-100);
  color: var(--blue);
  font-size: 22px;
  font-style: normal;
}
.quick-grid button > strong {
  align-self: end;
}
.quick-grid button > small {
  align-self: start;
  color: var(--muted);
}
.quick-grid button > b {
  grid-column: 3;
  grid-row: 1/3;
  font-size: 20px;
  color: #aab6c5;
}
.quick-grid button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.quick-grid button.primary i {
  background: #ffffff20;
  color: white;
}
.quick-grid button.primary small,
.quick-grid button.primary b {
  color: #deebff;
}
.pending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}
.pending-grid button {
  display: flex;
  align-items: center;
  min-height: 72px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  text-align: left;
}
.pending-grid button > i {
  width: 5px;
  height: 39px;
  border-radius: 5px;
  margin-right: 12px;
}
.pending-grid .blue {
  background: var(--blue);
}
.pending-grid .orange {
  background: var(--orange);
}
.pending-grid .red {
  background: var(--red);
}
.pending-grid span {
  flex: 1;
}
.pending-grid strong,
.pending-grid small {
  display: block;
}
.pending-grid strong {
  font-size: 21px;
}
.pending-grid small {
  color: var(--muted);
}
.pending-grid b {
  color: #aab6c5;
  font-size: 20px;
}
.safe-note {
  font-size: 11px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.card,
.panel,
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 14px #082d6808;
}
.card {
  padding: 17px;
}
.card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.card strong {
  font-size: 21px;
}
.panel {
  padding: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 17px;
}
.panel h2 {
  font-size: 17px;
  margin: 0;
}
.panel-head span {
  color: var(--muted);
  font-size: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 115px;
  align-items: center;
  gap: 14px;
  margin: 13px 0;
}
.bar-row > div {
  height: 8px;
  background: #eaf0f5;
  border-radius: 10px;
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  background: var(--blue);
}
.bar-row strong {
  text-align: right;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 830px;
}
th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  background: #f8fafc;
}
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 20px;
  background: #edf1f5;
  color: #536176;
}
.healthy,
.ativo,
.complete,
.in-stock,
.delivered,
.resolved {
  background: var(--green-100);
  color: var(--green);
}
.attention,
.warning,
.b,
.slow-moving,
.waiting-erp,
.document-review,
.aguardando {
  background: var(--orange-100);
  color: var(--orange);
}
.critical,
.out-of-stock,
.dead-stock,
.error,
.cancelled,
.erp-divergence {
  background: var(--red-100);
  color: var(--red);
}
.overstock,
.c,
.a,
.read,
.ready,
.out-for-delivery {
  background: var(--blue-100);
  color: var(--blue);
}
.loading,
.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.loading i {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  margin: 4px;
  animation: pulse .9s infinite alternate;
}
.loading i:nth-child(2) {
  animation-delay: .2s;
}
.loading i:nth-child(3) {
  animation-delay: .4s;
}
@keyframes pulse {
  to {
    opacity: .2;
  }
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  flex: 1;
  min-width: 190px;
}
.link-button,
.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  padding: 10px 16px;
}
.link-button:hover,
.primary-button:hover {
  background: var(--blue-800);
}
.link-button:disabled,
.primary-button:disabled {
  background: #aab5c1;
  cursor: not-allowed;
}
.settings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.settings label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.settings input {
  width: 100%;
}
.settings p {
  grid-column: 1/-1;
}
.receiving-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.receiving-grid .panel:last-child {
  grid-column: 1/-1;
}
.operational-form {
  max-width: 620px;
  margin: auto;
}
.operational-form label {
  display: grid;
  gap: 5px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}
.operational-form select,
.operational-form input,
.operational-form > .primary-button {
  width: 100%;
}
.notice,
.feedback {
  padding: 13px;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-800);
}
.more-list {
  max-width: 650px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
}
.more-list h2 {
  margin: 0 0 9px;
}
.more-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 53px;
  border: 0;
  border-top: 1px solid var(--line);
  background: white;
  text-align: left;
}
.more-list button.manager-start {
  margin-top: 10px;
  border-top: 6px solid var(--bg);
}
.more-list button i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue);
  font-style: normal;
}
.more-list button strong {
  flex: 1;
}
.more-list button b {
  color: #aab6c5;
}
.bottom-nav {
  display: none;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .content {
    padding: 20px;
  }
  .online-status {
    display: none;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .shell {
    display: block;
    padding-bottom: 78px;
  }
  aside {
    display: none;
  }
  header {
    height: 70px;
    padding: 8px 13px;
    gap: 9px;
  }
  header > div {
    display: none;
  }
  .store-select {
    display: block;
    margin-right: auto;
  }
  .store-select span {
    display: block;
    margin-left: 3px;
    font-size: 9px;
    color: var(--muted);
  }
  header select {
    max-width: 205px;
    width: 100%;
    min-height: 38px;
    font-size: 12px;
    padding: 5px 8px;
  }
  .avatar {
    width: 38px;
    height: 38px;
  }
  .content {
    padding: 15px 13px 24px;
  }
  .bottom-nav {
    position: fixed;
    display: flex;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    z-index: 50;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 23px #082d6812;
    padding: 5px;
  }
  .bottom-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    color: #778698;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
  }
  .bottom-nav button i {
    font-style: normal;
    font-size: 20px;
  }
  .bottom-nav button small {
    font-size: 10px;
  }
  .bottom-nav button.active {
    color: var(--blue);
    font-weight: 800;
  }
  .bottom-nav button.scanner i {
    display: grid;
    place-items: center;
    width: 51px;
    height: 51px;
    border-radius: 16px;
    background: var(--blue);
    color: white;
    border: 5px solid var(--bg);
    box-sizing: content-box;
    margin-top: -27px;
    box-shadow: 0 6px 17px #0861c944;
  }
  .bottom-nav button.scanner small {
    margin-top: -4px;
  }
  .mobile-hero {
    padding: 18px;
    border-radius: 18px;
  }
  .mobile-hero h1 {
    font-size: 23px;
  }
  .mobile-hero > b {
    width: 49px;
    height: 49px;
    border-radius: 14px;
  }
  .mobile-search {
    min-height: 54px;
    margin-bottom: 18px;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .quick-grid > button {
    display: block;
    position: relative;
    min-height: 139px;
    padding: 12px;
  }
  .quick-grid button > i {
    margin-bottom: 9px;
  }
  .quick-grid button > strong,
  .quick-grid button > small {
    display: block;
  }
  .quick-grid button > strong {
    line-height: 1.2;
  }
  .quick-grid button > small {
    font-size: 10px;
    line-height: 1.3;
    margin-top: 4px;
  }
  .quick-grid button > b {
    position: absolute;
    right: 11px;
    top: 14px;
  }
  .pending-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pending-grid button {
    min-height: 67px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .card {
    padding: 13px;
  }
  .card strong {
    font-size: 18px;
  }
  .panel {
    padding: 15px;
  }
  .receiving-grid {
    grid-template-columns: 1fr;
  }
  .receiving-grid .panel:last-child {
    grid-column: auto;
  }
  .filters {
    display: grid;
  }
  .filters input,
  .filters select,
  .filters button {
    width: 100%;
    min-width: 0;
  }
  .bar-row {
    grid-template-columns: 90px 1fr;
  }
  .bar-row strong {
    grid-column: 2;
  }
  .table-wrap {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
  }
  table {
    min-width: 0;
    display: block;
  }
  thead {
    display: none;
  }
  tbody {
    display: grid;
    gap: 9px;
  }
  tr {
    display: block;
    background: white;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 12px;
    box-shadow: 0 3px 12px #082d6808;
  }
  td {
    display: block;
    border: 0;
    padding: 3px 4px;
    white-space: normal;
  }
  td:nth-child(1) {
    font-weight: 800;
    color: var(--blue);
  }
  .settings {
    grid-template-columns: 1fr;
  }
  .settings p {
    grid-column: auto;
  }
  .loading,
  .empty {
    padding: 35px 12px;
  }
  .data-note {
    margin-bottom: 0;
  }
}
@media (max-width: 370px) {
  .content {
    padding-left: 10px;
    padding-right: 10px;
  }
  .mobile-hero > b {
    display: none;
  }
  .quick-grid > button {
    min-height: 133px;
  }
  .avatar {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.brand-mark {
  display: grid;
  place-items: center;
  min-width: 88px;
  min-height: 52px;
}
.brand-mark img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-mark span {
  display: block;
  max-width: 88px;
  color: #dce8f8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}
.brand-mark.compact {
  min-width: 72px;
  min-height: 42px;
}
.mobile-hero .brand-mark span {
  color: white;
}
.erp-divergence {
  background: var(--red-100);
  color: var(--red);
}
.state {
  display: grid;
  place-items: center;
  gap: 9px;
  min-height: 150px;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
}
.state > i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-style: normal;
}
.state.empty {
  color: var(--muted);
  background: #f8fafc;
}
.state.empty > i {
  background: #e8edf2;
}
.state.error-state {
  color: var(--red);
  background: var(--red-100);
  border: 1px solid #f3c9cc;
}
.state.error-state > i {
  color: white;
  background: var(--red);
  font-weight: 800;
}
.state.loading {
  color: var(--muted);
  background: transparent;
}
.state.loading > span {
  display: flex;
}
.state.loading > strong {
  font-weight: 500;
}
.feedback.success,
.success-message {
  background: var(--green-100);
  color: var(--green);
}
.secondary-button,
.success-button {
  min-height: 48px;
  border: 0;
  border-radius: 11px;
  padding: 10px 16px;
  font-weight: 700;
}
.secondary-button {
  background: var(--blue-100);
  color: var(--blue-800);
}
.success-button {
  background: var(--green);
  color: white;
}
.search-submit {
  min-height: 38px;
  border: 0 !important;
  border-radius: 9px;
  background: var(--blue) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: 700;
  padding: 7px 12px;
  white-space: nowrap;
}
.mobile-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-100);
}
@media (max-width: 700px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .store-select select {
    min-height: 48px;
    font-size: 16px;
  }
  .shell {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .bottom-nav {
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
  }
  .mobile-search {
    gap: 5px;
  }
  .mobile-search .search-submit {
    min-height: 40px;
    font-size: 12px;
  }
  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(92px, 38%) 1fr;
    gap: 10px;
    align-items: baseline;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
  }
  .table-wrap td:nth-child(1) {
    color: var(--ink);
  }
  .table-wrap td:nth-child(1)::before {
    color: var(--muted);
  }
  .filters .secondary-button,
  .filters .success-button {
    width: 100%;
  }
  .filters .success-button {
    margin-top: 6px;
  }
  .receiving-grid .link-button {
    width: 100%;
    text-align: left;
  }
  .state {
    min-height: 130px;
    padding: 25px 15px;
  }
}
.scan-page,
.receiving-mobile {
  max-width: 720px;
  margin: auto;
}
.operational-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.operational-heading > button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--blue);
  font-size: 28px;
}
.operational-heading h2 {
  margin: 0;
  font-size: 23px;
}
.operational-heading small {
  color: var(--muted);
}
.mode-tabs {
  display: flex;
  padding: 4px;
  margin-bottom: 15px;
  border-radius: 13px;
  background: #e6edf5;
}
.mode-tabs button {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.mode-tabs button.active {
  background: white;
  color: var(--blue);
  box-shadow: 0 2px 9px #082d6815;
}
.scanner-box {
  display: grid;
  gap: 13px;
}
.scanner-unsupported {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  text-align: center;
  box-shadow: 0 3px 14px #082d6808;
}
.scanner-unsupported > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue);
}
.scanner-unsupported strong {
  font-size: 16px;
}
.scanner-unsupported p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 280px;
}
.camera-viewport {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 20px;
  background: #0b1828;
}
.camera-viewport video {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: cover;
}
.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: white;
}
.camera-placeholder span {
  font-size: 54px;
}
.camera-placeholder small {
  color: #b8c7d9;
}
.scan-guide {
  position: absolute;
  z-index: 2;
  inset: 17%;
  pointer-events: none;
}
.scan-guide i {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: #65aaff;
  border-style: solid;
}
.scan-guide i:nth-child(1) {
  left: 0;
  top: 0;
  border-width: 4px 0 0 4px;
}
.scan-guide i:nth-child(2) {
  right: 0;
  top: 0;
  border-width: 4px 4px 0 0;
}
.scan-guide i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-width: 0 0 4px 4px;
}
.scan-guide i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-width: 0 4px 4px 0;
}
.scanner-actions,
.result-actions,
.stage-actions {
  display: flex;
  gap: 10px;
}
.scanner-actions > * {
  flex: 1;
}
.manual-scan label,
.receipt-start label,
.receipt-items label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.manual-scan input,
.manual-scan .primary-button,
.receipt-start select,
.receipt-start .primary-button {
  width: 100%;
}
.scan-result {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}
.result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.result-title small {
  color: var(--blue);
  font-weight: 800;
}
.result-title h2 {
  margin: 3px 0;
}
.result-title p {
  margin: 0;
  color: var(--muted);
}
.scan-result dl,
.receipt-totals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 18px 0;
}
.scan-result dl > div,
.receipt-totals > div {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
}
.scan-result dt,
.receipt-totals dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.scan-result dd,
.receipt-totals dd {
  margin: 4px 0 0;
  font-weight: 700;
}
.scan-result > .primary-button {
  width: 100%;
  margin-top: 12px;
}
.feedback.warning {
  background: var(--orange-100);
  color: var(--orange);
}
.receipt-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 22px;
}
.receipt-steps > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
}
.receipt-steps > div:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 58%;
  right: -42%;
  top: 16px;
  height: 2px;
  background: var(--line);
}
.receipt-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4eaf0;
}
.receipt-steps .active,
.receipt-steps .done {
  color: var(--blue);
  font-weight: 700;
}
.receipt-steps .active b,
.receipt-steps .done b {
  background: var(--blue);
  color: white;
}
.receipt-steps small {
  font-size: 10px;
}
.receipt-history {
  margin-top: 20px;
}
.receipt-history h3 {
  font-size: 15px;
}
.receipt-history > button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 10px 13px;
  text-align: left;
}
.receipt-history > button span {
  flex: 1;
}
.receipt-history strong,
.receipt-history small {
  display: block;
}
.receipt-history small {
  color: var(--muted);
}
.receipt-summary,
.progress-card,
.receipt-items article,
.final-stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 3px 14px #082d6808;
}
.receipt-summary small {
  color: var(--blue);
  font-weight: 800;
}
.receipt-summary h2 {
  margin: 3px 0;
}
.receipt-summary p {
  margin: 0;
  color: var(--muted);
}
.progress-card {
  margin: 12px 0;
}
.progress-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.progress-card strong {
  font-size: 25px;
  color: var(--blue);
}
.progress-card p {
  margin-bottom: 0;
  color: var(--muted);
}
.receipt-items {
  display: grid;
  gap: 10px;
}
.receipt-items article h3 {
  margin: 7px 0 3px;
}
.receipt-items article p {
  margin: 0 0 13px;
  color: var(--muted);
}
.receipt-totals {
  grid-template-columns: repeat(4, 1fr);
}
.stage-actions > * {
  flex: 1;
}
.final-stage {
  text-align: center;
}
.final-icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  margin: auto auto 12px;
  border-radius: 50%;
  font-size: 27px;
}
.final-icon.success {
  background: var(--green-100);
  color: var(--green);
}
.final-icon.waiting {
  background: var(--orange-100);
  color: var(--orange);
}
.divergence-list {
  text-align: left;
  margin: 18px 0;
}
.divergence-list article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 13px;
  margin-top: 8px;
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  background: var(--orange-100);
}
.divergence-list article strong,
.divergence-list article b {
  grid-column: 1/-1;
}
.label-list {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.label-list code {
  padding: 9px;
  border-radius: 8px;
  background: var(--bg);
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .scan-page,
  .receiving-mobile {
    max-width: none;
  }
  .scanner-actions,
  .result-actions,
  .stage-actions {
    display: grid;
  }
  .scanner-actions > * {
    width: 100%;
  }
  .result-title {
    display: grid;
  }
  .receipt-totals {
    grid-template-columns: 1fr 1fr;
  }
  .sticky-cta {
    position: sticky;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 5;
    box-shadow: 0 6px 18px #082d6830;
  }
  .receipt-stage > .sticky-cta {
    width: 100%;
    margin-top: 12px;
  }
  .receipt-steps small {
    font-size: 9px;
  }
  .divergence-list article {
    grid-template-columns: 1fr;
  }
  .divergence-list article strong,
  .divergence-list article b {
    grid-column: auto;
  }
}
.camera-close {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  min-height: 48px;
  background: #fffffff0;
  color: var(--blue-900);
  box-shadow: 0 4px 16px #0004;
}
.scan-result dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.final-icon.error {
  background: var(--red-100);
  color: var(--red);
}
.confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 15px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.confirm-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
}
.full-button {
  width: 100%;
  margin: 12px 0;
}
.feedback.error {
  background: var(--red-100);
  color: var(--red);
  border: 1px solid #f3c9cc;
}
.feedback.uncertain {
  background: var(--orange-100);
  color: var(--orange);
  border: 1px solid #f0d4ae;
}
.demo-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--orange-100);
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible {
  outline: none;
}
.camera-close {
  display: flex;
  align-items: center;
  gap: 6px;
}
.more-group {
  margin-bottom: 4px;
}
.more-group > small {
  display: block;
  padding: 16px 2px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.more-group.manager {
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.more-group.manager > small {
  padding-top: 14px;
}
@media (max-width: 700px) {
  .online-status {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
  }
  .camera-viewport,
  .camera-viewport video {
    height: 40vh;
    min-height: 240px;
    max-height: 360px;
  }
  .camera-placeholder small {
    max-width: 220px;
    text-align: center;
  }
  .scan-guide {
    inset: 14%;
  }
  .receipt-steps {
    gap: 2px;
  }
  .receipt-steps small {
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .operational-heading {
    margin-bottom: 12px;
  }
  .mode-tabs {
    margin-bottom: 11px;
  }
}
.picking-mobile,
.delivery-mobile,
.flow-success {
  max-width: 760px;
  margin: auto;
}
.flow-heading {
  margin-bottom: 18px;
}
.flow-heading h2 {
  margin: 0;
  font-size: 24px;
}
.flow-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}
.sale-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sale-cards > article,
.active-flow,
.pending-volumes,
.completion-card,
.flow-success {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 3px 14px #082d6808;
}
.sale-cards small,
.flow-order small {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}
.sale-cards h3,
.flow-order h3 {
  margin: 3px 0;
  font-size: 18px;
}
.sale-cards p,
.flow-order p {
  margin: 0;
  color: var(--muted);
}
.sale-cards dl,
.flow-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 14px 0;
}
.sale-cards dl > div,
.flow-facts > div {
  padding: 9px;
  border-radius: 9px;
  background: var(--bg);
}
.sale-cards dt,
.flow-facts dt {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.sale-cards dd,
.flow-facts dd {
  margin: 3px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.sale-cards .primary-button {
  width: 100%;
}
.flow-order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.flow-progress {
  margin: 18px 0;
}
.flow-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.flow-progress span {
  color: var(--blue);
  font-weight: 800;
}
.progress-track {
  height: 10px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 10px;
  background: #e7edf3;
}
.progress-track i {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: var(--blue);
}
.volume-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 9px;
}
.volume-entry label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}
.volume-entry input {
  width: 100%;
}
.pending-volumes {
  margin-top: 12px;
}
.pending-volumes h3,
.completion-card h3 {
  margin: 0 0 12px;
}
.pending-volumes > article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pending-volumes > article > div {
  flex: 1;
}
.pending-volumes strong,
.pending-volumes span {
  display: block;
}
.pending-volumes span {
  color: var(--muted);
  font-size: 12px;
}
.flow-success {
  text-align: center;
}
.flow-success > .primary-button,
.flow-success > .secondary-button {
  width: 100%;
  margin-top: 9px;
}
.delivery-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 20px;
}
.delivery-steps > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
}
.delivery-steps > div:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 58%;
  right: -42%;
  top: 16px;
  height: 2px;
  background: var(--line);
}
.delivery-steps b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e4eaf0;
}
.delivery-steps .active,
.delivery-steps .done {
  color: var(--blue);
  font-weight: 700;
}
.delivery-steps .active b,
.delivery-steps .done b {
  background: var(--blue);
  color: white;
}
.completion-card {
  margin-top: 12px;
}
.completion-card p {
  color: var(--muted);
}
.completion-card > .success-button {
  width: 100%;
}
@media (max-width: 700px) {
  .picking-mobile,
  .delivery-mobile,
  .flow-success {
    max-width: none;
  }
  .sale-cards {
    grid-template-columns: 1fr;
  }
  .sale-cards dl,
  .flow-facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .volume-entry {
    grid-template-columns: 1fr;
  }
  .volume-entry .primary-button {
    width: 100%;
  }
  .active-flow,
  .pending-volumes,
  .completion-card,
  .flow-success {
    padding: 15px;
  }
  .sticky-flow-cta {
    position: sticky;
    bottom: calc(82px + env(safe-area-inset-bottom));
    z-index: 6;
    min-height: 52px;
    box-shadow: 0 6px 18px #16875f35;
  }
  .pending-volumes > article {
    min-height: 64px;
  }
  .flow-heading {
    margin-bottom: 14px;
  }
  .flow-heading h2 {
    font-size: 22px;
  }
}
@media (max-width: 370px) {
  .flow-order {
    display: grid;
  }
  .delivery-steps span {
    font-size: 11px;
  }
}
.secondary-button:disabled,
.success-button:disabled {
  background: #e1e6ec;
  color: #596575;
  cursor: not-allowed;
  box-shadow: none;
  opacity: .75;
}
.divergence-list article.positive {
  border-left-color: var(--green);
  background: var(--green-100);
}
.scan-action-panel {
  margin-top: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  isolation: isolate;
}
.scan-action-panel .feedback {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.scan-action-panel input {
  min-width: 0;
}
.scan-action-panel .camera-viewport {
  isolation: isolate;
}
@media (max-width: 700px) {
  .picking-mobile,
  .delivery-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .picking-mobile > .pending-volumes,
  .delivery-mobile > .pending-volumes {
    order: 1;
  }
  .scan-action-panel {
    order: 2;
    position: sticky;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 10;
    margin-top: 0;
    box-shadow: 0 -4px 16px #082d6818;
  }
  .scan-action-panel.camera-mode {
    position: static;
    box-shadow: none;
  }
  .completion-card {
    order: 3;
  }
  .sticky-flow-cta,
  .sticky-cta {
    z-index: 10;
  }
  .bottom-nav {
    z-index: 20;
  }
  .camera-close {
    z-index: 3;
  }
  .scan-guide {
    z-index: 2;
  }
  html[data-operation-keyboard=true] .scan-action-panel {
    bottom: calc(var(--operation-keyboard-inset,0px) + 8px);
  }
  html[data-operation-keyboard=true] .bottom-nav {
    visibility: hidden;
  }
  .flow-order > div,
  .pending-volumes > article > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 500px) {
  .sale-cards dl,
  .flow-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sale-cards dl > div:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 500px) {
  .flow-facts > div:last-child:nth-child(3) {
    grid-column: 1/-1;
  }
}
.stock-consultation,
.transfer-mobile {
  max-width: 1000px;
  margin: auto;
  min-width: 0;
}
.stock-search {
  display: grid;
  gap: 8px;
}
.stock-search label {
  font-weight: 700;
}
.stock-search > div {
  display: flex;
  gap: 8px;
}
.stock-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  font-size: 16px;
  min-height: 48px;
}
.stock-search button {
  flex-shrink: 0;
}
.stock-help {
  font-size: 13px;
  color: var(--muted);
}
.stock-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.stock-product,
.transfer-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
}
.stock-product-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  border: 0;
  background: white;
  text-align: left;
  color: var(--blue-900);
  padding: 0;
}
.stock-product-heading > span:first-child {
  min-width: 0;
  flex: 1;
}
.stock-product-heading strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.stock-product-heading small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.stock-product-heading > span:last-child {
  font-size: 13px;
  color: var(--blue);
}
.stock-balances {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.stock-balances li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.stock-balances li span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.stock-balances strong {
  font-size: 18px;
  text-align: right;
  flex-shrink: 0;
  color: var(--blue-900);
}
.stock-balances .stock-zero {
  font-size: 15px;
  font-weight: 800;
  color: var(--red);
}
.stock-detail {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}
.stock-detail dl,
.transfer-review dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stock-detail dt,
.transfer-review dt {
  color: var(--muted);
  font-size: 13px;
}
.stock-detail dd,
.transfer-review dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.stock-detail h3 {
  font-size: 15px;
}
.transfer-mobile {
  max-width: 720px;
}
.transfer-fields {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.transfer-card h3 {
  margin: 0 0 15px;
}
.transfer-card label:not(.confirm-check) {
  display: grid;
  gap: 8px;
}
.transfer-card input:not([type=checkbox]),
.transfer-card select {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  font-size: 16px;
}
.transfer-card small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.product-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.product-options button {
  display: grid;
  gap: 5px;
  min-height: 60px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow-wrap: anywhere;
}
.product-options button.selected {
  border: 2px solid var(--blue);
  background: var(--blue-100);
}
.product-options span,
.selected-product span {
  font-size: 14px;
  color: var(--muted);
}
.selected-product strong,
.selected-product span {
  display: block;
  overflow-wrap: anywhere;
}
.product-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.transfer-submit {
  width: 100%;
  margin-top: 12px;
}
.transfer-review .confirm-check {
  line-height: 1.4;
}
.transfer-review input[type=checkbox] {
  flex-shrink: 0;
}
.transfer-fields:disabled button {
  opacity: .65;
  cursor: not-allowed;
}
.transfer-review dd {
  font-weight: 700;
}
@media (max-width: 700px) {
  .stock-products {
    grid-template-columns: 1fr;
  }
  .stock-product,
  .transfer-card {
    padding: 15px;
  }
  .stock-balances strong {
    font-size: 20px;
  }
  .stock-balances .stock-zero {
    font-size: 16px;
  }
  .stock-detail > .primary-button {
    width: 100%;
  }
  .transfer-submit {
    position: sticky;
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 10;
  }
  .stock-product-heading {
    align-items: flex-start;
  }
  .stock-product-heading > span:last-child {
    max-width: 72px;
    line-height: 1.4;
  }
  .transfer-review dl {
    grid-template-columns: 1fr;
  }
  .stock-detail dl {
    gap: 10px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .delivery-mobile {
    padding-bottom: 16px;
  }
  .delivery-mobile:has(.completion-card) > .pending-volumes .state {
    min-height: 0;
    padding: 8px 0;
  }
  .delivery-mobile:has(.completion-card) > .pending-volumes h3 {
    margin-bottom: 6px;
  }
  .delivery-mobile .completion-card {
    scroll-margin-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 20px 0;
}
.catalog-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}
.catalog-controls input,
.catalog-controls select {
  padding: 12px;
  max-width: 100%;
  min-width: 0;
}
.catalog-pagination {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
.catalog-real button {
  padding: 12px 18px;
  min-height: 44px;
}
.catalog-real button:disabled {
  opacity: .5;
}
.catalog-real {
  min-width: 0;
}
.catalog-real td {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .catalog-controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  .catalog-controls input,
  .catalog-controls select {
    width: 100%;
  }
  .catalog-real .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }
  .catalog-real h2 {
    font-size: 22px;
  }
}
.ler-etiqueta-capture {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 3px 14px #082d6808;
}
.ler-etiqueta-capture h2 {
  display: none;
}
.ler-etiqueta-capture > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 14px;
}
.ler-etiqueta-capture label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.ler-etiqueta-capture input {
  width: 100%;
}
.ler-etiqueta-capture .reader-entry {
  display: grid;
  gap: 10px;
}
.ler-etiqueta-capture .reader-entry button {
  width: 100%;
  min-height: 48px;
  border-radius: 11px;
  font-weight: 700;
  padding: 10px 16px;
}
.ler-etiqueta-capture .reader-entry button:first-of-type {
  background: var(--blue);
  color: white;
  border: 0;
}
.ler-etiqueta-capture .reader-entry button:last-of-type {
  background: var(--blue-100);
  color: var(--blue-800);
  border: 0;
}
.ler-etiqueta-capture .reader-entry button:disabled {
  background: #aab5c1;
  color: white;
}
.erp-inactive {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid #c9a227;
  border-radius: 4px;
  color: #7a5c00;
  background: #fff8e1;
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .02em;
  vertical-align: middle;
}
.initial-load-batch {
  min-width: 0;
}
.initial-load-batch .panel-head {
  margin: 12px 0;
}
.initial-load-batch h2 {
  font-size: 18px;
  margin: 0;
}
.initial-load-batch .operational-form {
  max-width: none;
  border: 0;
  padding: 0;
  min-width: 0;
}
.initial-load-batch .batch-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.initial-load-batch label {
  min-width: 0;
  margin-bottom: 8px;
}
.initial-load-batch input,
.initial-load-batch select {
  min-width: 0;
  min-height: 44px;
  font-size: 16px;
}
.initial-load-batch .batch-context-hint {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}
.initial-load-batch .batch-entry-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.initial-load-batch .batch-product-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.initial-load-batch .batch-quantity {
  display: flex;
  flex: none;
  gap: 4px;
  align-items: center;
  margin: 0;
  font-size: 11px;
}
.initial-load-batch .batch-quantity input {
  width: 52px;
  padding: 6px;
  text-align: center;
}
.initial-load-batch .batch-add {
  flex: none;
  width: auto;
  min-height: 44px;
  padding: 8px;
  font-size: 11px;
  border-radius: 8px;
}
.initial-load-batch .batch-selected > small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.initial-load-batch .batch-volumes {
  margin: 8px 0;
  font-size: 12px;
  color: var(--muted);
}
.initial-load-batch .batch-volumes summary {
  cursor: pointer;
  padding: 6px 0;
}
.initial-load-batch .batch-volumes[open] summary {
  margin-bottom: 8px;
}
.initial-load-batch .batch-session h3 {
  font-size: 12px;
  letter-spacing: .04em;
  margin: 18px 0 6px;
}
.initial-load-batch .batch-session ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.initial-load-batch .batch-session li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 2px 0 2px 6px;
  border-bottom: 1px solid var(--line);
}
.initial-load-batch .batch-recent {
  background: var(--blue-100);
}
.initial-load-batch .batch-row-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 2px;
}
.initial-load-batch .batch-row-actions b {
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.initial-load-batch .batch-row-actions button {
  width: 40px;
  min-height: 44px;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--blue-800);
  font-size: 20px;
}
.initial-load-batch .batch-row-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.initial-load-batch button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.initial-load-batch .feedback {
  padding: 6px 10px;
  margin: 8px 0;
  font-size: 13px;
}
.initial-load-batch .batch-undo {
  margin-left: 8px;
  min-height: 36px;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: underline;
  font-weight: 700;
}
.initial-load-batch .batch-empty {
  margin: 10px 0;
  color: var(--muted);
}
.initial-load-batch .batch-final-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.initial-load-batch .batch-final-actions > .primary-button {
  order: -1;
}
.initial-load-batch .batch-discard {
  align-self: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.receiving-mobile .batch-secondary-panel {
  margin: 12px 0;
  border-top: 1px solid var(--line);
}
.receiving-mobile .batch-secondary-panel > summary {
  padding: 12px 4px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 340px) {
  .initial-load-batch .batch-context {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .initial-load-batch .batch-quantity input {
    width: 44px;
  }
  .initial-load-batch .batch-entry-row {
    gap: 4px;
  }
}
