.operations-center {
  --oc-bg: #f5f7fa;
  --oc-surface: #ffffff;
  --oc-surface-soft: #eef2f6;
  --oc-ink: #172033;
  --oc-muted: #657085;
  --oc-line: #d7dde5;
  --oc-line-strong: #aab4c2;
  --oc-primary: #176b50;
  --oc-primary-hover: #125640;
  --oc-primary-soft: #e8f5ef;
  --oc-blue: #245ea8;
  --oc-blue-soft: #eaf1fb;
  --oc-danger: #b3262d;
  --oc-danger-soft: #fdebec;
  --oc-warning: #8a5a00;
  --oc-warning-soft: #fff4d6;
  --oc-success: #116942;
  --oc-success-soft: #e6f6ed;
  width: 100%;
  min-width: 0;
  color: var(--oc-ink);
  background: var(--oc-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.operations-center,
.operations-center *,
.operations-center *::before,
.operations-center *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.operations-center button,
.operations-center input,
.operations-center select,
.operations-center textarea {
  font: inherit;
}

.operations-center button {
  color: inherit;
}

.operations-center [hidden] {
  display: none !important;
}

.oc-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 480px;
  background: var(--oc-bg);
  border: 1px solid var(--oc-line);
  border-radius: 8px;
  overflow: clip;
}

.oc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--oc-line);
  background: var(--oc-surface);
}

.oc-heading {
  min-width: 170px;
}

.oc-heading h2,
.oc-section-head h3,
.oc-list-row h4,
.oc-picking-detail h3 {
  margin: 0;
  color: var(--oc-ink);
  line-height: 1.2;
}

.oc-heading h2 {
  font-size: 22px;
  font-weight: 800;
}

.oc-section-head h3,
.oc-picking-detail h3 {
  font-size: 19px;
  font-weight: 800;
}

.oc-list-row h4 {
  font-size: 16px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.oc-eyebrow {
  margin: 0 0 3px;
  color: var(--oc-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.oc-header-actions,
.oc-inline-actions,
.oc-form-actions,
.oc-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.oc-header-actions {
  justify-content: flex-end;
}

.oc-rates {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--oc-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--oc-surface-soft);
}

.oc-rate {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 7px;
  min-width: 126px;
  padding: 7px 10px;
}

.oc-rate + .oc-rate {
  border-left: 1px solid var(--oc-line);
}

.oc-rate b {
  color: var(--oc-blue);
  font-size: 12px;
}

.oc-rate span {
  font-weight: 800;
  white-space: nowrap;
}

.oc-rate small {
  grid-column: 1 / -1;
  color: var(--oc-muted);
  font-size: 11px;
}

.oc-button,
.oc-icon-command,
.oc-notification-button,
.oc-tab,
.oc-presets button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.oc-button:disabled,
.oc-icon-command:disabled,
.oc-notification-button:disabled,
.oc-tab:disabled,
.oc-presets button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.oc-button-primary {
  border-color: var(--oc-primary);
  color: #ffffff !important;
  background: var(--oc-primary);
}

.oc-button-primary:hover:not(:disabled) {
  border-color: var(--oc-primary-hover);
  background: var(--oc-primary-hover);
}

.oc-button-secondary,
.oc-icon-command,
.oc-notification-button,
.oc-presets button {
  border-color: var(--oc-line-strong);
  color: var(--oc-ink);
  background: var(--oc-surface);
}

.oc-button-secondary:hover:not(:disabled),
.oc-icon-command:hover:not(:disabled),
.oc-notification-button:hover:not(:disabled),
.oc-presets button:hover:not(:disabled) {
  border-color: var(--oc-blue);
  color: var(--oc-blue);
  background: var(--oc-blue-soft);
}

.oc-button-quiet {
  border-color: transparent;
  color: var(--oc-muted);
  background: transparent;
}

.oc-button-quiet:hover:not(:disabled) {
  color: var(--oc-ink);
  background: var(--oc-surface-soft);
}

.oc-button-danger {
  border-color: #dc9da1;
  color: var(--oc-danger);
  background: var(--oc-danger-soft);
}

.oc-button-danger:hover:not(:disabled) {
  border-color: var(--oc-danger);
  background: #f9dfe1;
}

.oc-notification-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.oc-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  color: #ffffff;
  background: var(--oc-danger);
  font-size: 11px;
  font-weight: 900;
}

.oc-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 54px;
  padding: 6px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-bottom: 1px solid var(--oc-line);
  background: var(--oc-surface);
  scrollbar-width: thin;
}

.oc-tab {
  flex: 0 0 auto;
  border-color: transparent;
  color: var(--oc-muted);
  background: transparent;
  white-space: nowrap;
}

.oc-tab:hover,
.oc-tab.is-active {
  color: var(--oc-primary);
  background: var(--oc-primary-soft);
}

.oc-tab.is-active {
  border-color: #a9d2c0;
}

.oc-body {
  min-width: 0;
  padding: 18px;
}

.oc-module {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.oc-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.oc-section-head > div:first-child {
  min-width: 0;
}

.oc-section-head p,
.oc-list-row p,
.oc-count-row p,
.oc-inline-status {
  margin: 4px 0 0;
  color: var(--oc-muted);
}

.oc-filter-bar,
.oc-scan-band,
.oc-editor {
  display: grid;
  align-items: end;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-top: 1px solid var(--oc-line);
  border-bottom: 1px solid var(--oc-line);
  background: var(--oc-surface);
}

.oc-filter-bar {
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
}

.oc-filter-bar:has(.oc-field:nth-of-type(4)) {
  grid-template-columns: repeat(4, minmax(125px, 1fr)) auto;
}

.oc-filter-compact {
  grid-template-columns: minmax(220px, 1fr) auto;
  max-width: 760px;
}

.oc-editor {
  align-items: stretch;
  gap: 16px;
  border: 1px solid var(--oc-line-strong);
  border-radius: 6px;
}

.oc-editor-operational {
  border-left: 4px solid var(--oc-primary);
}

.oc-editor > .oc-section-head,
.oc-editor > .oc-form-actions {
  grid-column: 1 / -1;
}

.oc-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.oc-form-grid-operational {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
}

.oc-field {
  display: grid;
  align-content: end;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.oc-field-wide {
  grid-column: span 2;
}

.oc-field > span,
.oc-check > span {
  color: var(--oc-muted);
  font-size: 12px;
  font-weight: 800;
}

.oc-field input,
.oc-field select,
.oc-field textarea,
.oc-table-input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--oc-line-strong);
  border-radius: 5px;
  padding: 9px 10px;
  color: var(--oc-ink);
  background: var(--oc-surface);
}

.oc-field textarea {
  min-height: 76px;
  resize: vertical;
}

.oc-field input::placeholder,
.oc-field textarea::placeholder {
  color: #8a94a5;
}

.oc-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 7px 4px;
  cursor: pointer;
}

.oc-check input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--oc-primary);
}

.oc-field input:focus,
.oc-field select:focus,
.oc-field textarea:focus,
.oc-table-input:focus,
.oc-button:focus-visible,
.oc-icon-command:focus-visible,
.oc-notification-button:focus-visible,
.oc-tab:focus-visible,
.oc-presets button:focus-visible,
.oc-queue-row:focus-visible,
.oc-notification:focus-visible {
  outline: 3px solid rgba(36, 94, 168, 0.28);
  outline-offset: 2px;
  border-color: var(--oc-blue);
}

.oc-progress {
  height: 3px;
  overflow: hidden;
  background: var(--oc-surface-soft);
}

.oc-progress::after {
  display: block;
  width: 32%;
  height: 100%;
  content: "";
  background: var(--oc-primary);
  animation: oc-progress-slide 1.1s ease-in-out infinite;
}

@keyframes oc-progress-slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(330%); }
}

.oc-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--oc-line);
  border-radius: 5px;
  font-weight: 700;
}

.oc-alert button {
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.oc-alert-error {
  border-color: #efb2b5;
  color: #851d23;
  background: var(--oc-danger-soft);
}

.oc-alert-warning {
  border-color: #e6c976;
  color: #684500;
  background: var(--oc-warning-soft);
}

.oc-alert-success {
  border-color: #a9d7bf;
  color: #0f5a39;
  background: var(--oc-success-soft);
}

.oc-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--oc-line-strong);
  border-radius: 6px;
  color: var(--oc-muted);
  text-align: center;
  background: var(--oc-surface);
}

.oc-empty b {
  color: var(--oc-ink);
}

.oc-empty.compact {
  min-height: 76px;
  padding: 14px;
}

.oc-failure,
.oc-no-access {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 20px auto;
}

.oc-list {
  display: grid;
  min-width: 0;
  border-top: 1px solid var(--oc-line);
  background: var(--oc-surface);
}

.oc-list-row {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px 4px;
  border-bottom: 1px solid var(--oc-line);
}

.oc-row-main,
.oc-row-footer,
.oc-row-title,
.oc-queue-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.oc-row-title {
  justify-content: flex-start;
}

.oc-row-title h4,
.oc-row-main > div {
  min-width: 0;
}

.oc-row-meta,
.oc-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--oc-muted);
  font-size: 13px;
}

.oc-row-footer small {
  color: var(--oc-muted);
}

.oc-resolution {
  padding: 9px 11px;
  border-left: 3px solid var(--oc-primary);
  background: var(--oc-primary-soft);
}

.oc-evidence {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--oc-line);
  border-radius: 6px;
  background: var(--oc-surface-soft);
}

.oc-evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oc-evidence-head > span,
.oc-evidence-loading,
.oc-evidence-empty {
  color: var(--oc-muted);
  font-size: 12px;
  font-weight: 700;
}

.oc-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  min-width: 0;
}

.oc-evidence-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--oc-line);
  border-radius: 6px;
  background: var(--oc-surface);
}

.oc-evidence-preview {
  display: grid;
  place-items: center;
  width: 96px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--oc-line);
  border-radius: 5px;
  color: var(--oc-muted);
  background: var(--oc-bg);
  font-size: 11px;
  text-align: center;
}

.oc-evidence-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oc-evidence-preview:focus-visible {
  outline: 3px solid rgba(36, 94, 168, 0.28);
  outline-offset: 2px;
}

.oc-evidence-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.oc-evidence-copy b,
.oc-evidence-copy small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.oc-evidence-copy small {
  color: var(--oc-muted);
}

.oc-evidence-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--oc-line-strong);
  border-radius: 5px;
  text-align: center;
  background: var(--oc-surface);
}

.oc-evidence-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid var(--oc-line);
}

.oc-evidence-upload input[type="file"] {
  max-width: 100%;
  min-height: 44px;
  padding: 5px;
  overflow: hidden;
}

.oc-evidence-upload input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 9px;
  border: 1px solid var(--oc-line-strong);
  border-radius: 4px;
  padding: 5px 9px;
  color: var(--oc-ink);
  background: var(--oc-surface-soft);
  font-weight: 800;
  cursor: pointer;
}

.oc-priority,
.oc-status,
.oc-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--oc-line);
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.oc-priority.oc-status-urgent,
.oc-priority.oc-status-high,
.oc-status-cancelled,
.oc-value-warning {
  color: var(--oc-danger);
}

.oc-priority.oc-status-urgent,
.oc-status-cancelled {
  border-color: #efb2b5;
  background: var(--oc-danger-soft);
}

.oc-priority.oc-status-high,
.oc-status-waiting,
.oc-status-partial {
  border-color: #e6c976;
  color: var(--oc-warning);
  background: var(--oc-warning-soft);
}

.oc-status-in_progress,
.oc-status-open,
.oc-status-pending {
  border-color: #afc6e5;
  color: var(--oc-blue);
  background: var(--oc-blue-soft);
}

.oc-status-done,
.oc-status-ready,
.oc-status-delivered,
.oc-status-completed,
.oc-status-picked,
.oc-discount {
  border-color: #a9d7bf;
  color: var(--oc-success);
  background: var(--oc-success-soft);
}

.oc-discount {
  min-width: 58px;
  font-size: 15px;
}

.oc-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding-top: 8px;
  color: var(--oc-muted);
}

.oc-split {
  display: grid;
  grid-template-columns: minmax(270px, 0.36fr) minmax(0, 0.64fr);
  min-height: 520px;
  border: 1px solid var(--oc-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--oc-surface);
}

.oc-pane {
  min-width: 0;
  min-height: 0;
}

.oc-pane-list {
  max-height: 760px;
  overflow-y: auto;
  border-right: 1px solid var(--oc-line);
  background: var(--oc-surface-soft);
}

.oc-pane-detail {
  overflow: hidden;
}

.oc-queue {
  display: grid;
}

.oc-queue-row,
.oc-notification {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--oc-line);
  border-radius: 0;
  padding: 14px;
  color: var(--oc-ink);
  background: var(--oc-surface);
  text-align: left;
  cursor: pointer;
}

.oc-queue-row:hover,
.oc-queue-row.is-active {
  background: var(--oc-primary-soft);
}

.oc-queue-row.is-active {
  box-shadow: inset 4px 0 0 var(--oc-primary);
}

.oc-progress-copy {
  color: var(--oc-muted);
  font-size: 12px;
  font-weight: 700;
}

.oc-meter {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #dce2e9;
}

.oc-meter i {
  display: block;
  height: 100%;
  background: var(--oc-primary);
}

.oc-picking-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
}

.oc-detail-meta {
  padding: 11px 0;
  border-top: 1px solid var(--oc-line);
  border-bottom: 1px solid var(--oc-line);
}

.oc-detail-meta span {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.oc-detail-meta b {
  color: var(--oc-ink);
  font-size: 11px;
  text-transform: uppercase;
}

.oc-command-band {
  display: flex;
  justify-content: flex-start;
  padding: 4px 0;
}

.oc-command-end {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--oc-line);
}

.oc-scan-band {
  grid-template-columns: minmax(220px, 1fr) 110px auto;
  border: 1px solid #a9d2c0;
  border-radius: 6px;
  background: var(--oc-primary-soft);
}

.oc-scan-band:has(.oc-field:nth-of-type(3)) {
  grid-template-columns: minmax(210px, 1fr) 110px minmax(150px, 0.7fr) auto;
}

.oc-scan-code input,
.oc-code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.oc-scan-code input {
  font-size: 17px;
  font-weight: 800;
}

.oc-code {
  display: inline;
  max-width: 100%;
  padding: 2px 4px;
  color: #0e5743;
  background: #eaf6f1;
  font-size: 13px;
  font-weight: 900;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: all;
}

.oc-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--oc-line);
  border-radius: 6px;
  background: var(--oc-surface);
}

.oc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: auto;
}

.oc-picking-table {
  min-width: 620px;
}

.oc-table th,
.oc-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--oc-line);
  text-align: left;
  vertical-align: top;
}

.oc-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--oc-muted);
  background: var(--oc-surface-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.oc-table td {
  overflow-wrap: anywhere;
}

.oc-table tr:last-child td {
  border-bottom: 0;
}

.oc-table tr.is-complete {
  background: #f1faf5;
}

.oc-table td > small {
  display: block;
  margin-top: 3px;
  color: var(--oc-muted);
}

.oc-table-input {
  min-width: 86px;
  max-width: 120px;
}

.oc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--oc-line);
  border-bottom: 1px solid var(--oc-line);
  background: var(--oc-surface);
}

.oc-metrics > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 13px 15px;
}

.oc-metrics > span + span {
  border-left: 1px solid var(--oc-line);
}

.oc-metrics b {
  font-size: 19px;
  overflow-wrap: anywhere;
}

.oc-metrics small {
  color: var(--oc-muted);
}

.oc-count-progress {
  display: grid;
  gap: 6px;
  color: var(--oc-muted);
  font-size: 13px;
  font-weight: 700;
}

.oc-presets {
  justify-content: flex-start;
}

.oc-presets button {
  min-height: 36px;
  padding: 7px 12px;
}

.oc-notifications {
  position: absolute;
  top: 74px;
  right: 14px;
  z-index: 30;
  display: grid;
  gap: 12px;
  width: min(470px, calc(100% - 28px));
  max-height: min(620px, calc(100vh - 100px));
  padding: 15px;
  overflow-y: auto;
  border: 1px solid var(--oc-line-strong);
  border-radius: 7px;
  background: var(--oc-surface);
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.2);
}

.oc-notification-list {
  display: grid;
  border-top: 1px solid var(--oc-line);
}

.oc-notification {
  grid-template-columns: 1fr;
  padding-inline: 4px;
}

.oc-notification > span:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.oc-notification small,
.oc-notification.is-read {
  color: var(--oc-muted);
}

.oc-notification:not(.is-read) {
  box-shadow: inset 3px 0 0 var(--oc-primary);
}

.oc-inline-status {
  padding: 8px 10px;
  border-left: 3px solid var(--oc-blue);
  background: var(--oc-blue-soft);
}

@media (max-width: 1100px) {
  .oc-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .oc-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .oc-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-filter-bar,
  .oc-filter-bar:has(.oc-field:nth-of-type(4)) {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .oc-filter-bar > .oc-button {
    align-self: end;
  }

  .oc-scan-band,
  .oc-scan-band:has(.oc-field:nth-of-type(3)) {
    grid-template-columns: minmax(220px, 1fr) 110px;
  }

  .oc-scan-band > .oc-button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .oc-body {
    padding: 14px;
  }

  .oc-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-pane-list {
    max-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--oc-line);
  }

  .oc-notifications {
    top: 132px;
  }
}

@media (max-width: 720px) {
  .operations-center {
    font-size: 14px;
  }

  .oc-shell {
    border-inline: 0;
    border-radius: 0;
  }

  .oc-header {
    min-height: 0;
    padding: calc(12px + env(safe-area-inset-top)) 12px 12px;
  }

  .oc-heading h2 {
    font-size: 20px;
  }

  .oc-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-rates {
    grid-column: 1 / -1;
    width: 100%;
  }

  .oc-rate {
    flex: 1 1 50%;
    min-width: 0;
  }

  .oc-header-actions > .oc-button,
  .oc-header-actions > .oc-icon-command,
  .oc-header-actions > .oc-notification-button {
    width: 100%;
    justify-content: center;
  }

  .oc-tabs {
    padding-inline: 8px;
  }

  .oc-body {
    padding: 12px 10px calc(20px + env(safe-area-inset-bottom));
  }

  .oc-section-head,
  .oc-row-main,
  .oc-row-footer,
  .oc-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .oc-section-head > .oc-button,
  .oc-row-footer > .oc-button,
  .oc-pagination .oc-inline-actions,
  .oc-pagination .oc-button {
    width: 100%;
  }

  .oc-inline-actions .oc-button {
    flex: 1 1 130px;
  }

  .oc-filter-bar,
  .oc-filter-bar:has(.oc-field:nth-of-type(4)),
  .oc-filter-compact,
  .oc-form-grid,
  .oc-evidence-upload,
  .oc-scan-band,
  .oc-scan-band:has(.oc-field:nth-of-type(3)) {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
  }

  .oc-field-wide {
    grid-column: auto;
  }

  .oc-filter-bar > .oc-button,
  .oc-evidence-upload > .oc-button,
  .oc-scan-band > .oc-button,
  .oc-form-actions .oc-button {
    width: 100%;
  }

  .oc-editor,
  .oc-filter-bar,
  .oc-scan-band {
    padding: 12px;
  }

  .oc-picking-detail {
    padding: 13px;
  }

  .oc-evidence {
    padding: 11px;
  }

  .oc-evidence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-evidence-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .oc-evidence-preview {
    width: 82px;
    height: 68px;
  }

  .oc-evidence-item > .oc-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .oc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oc-metrics > span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--oc-line);
  }

  .oc-metrics > span:nth-child(4) {
    border-top: 1px solid var(--oc-line);
  }

  .oc-table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .oc-table,
  .oc-table tbody,
  .oc-table tr,
  .oc-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .oc-table thead {
    display: none;
  }

  .oc-table tbody {
    display: grid;
    gap: 10px;
  }

  .oc-table tr {
    overflow: hidden;
    border: 1px solid var(--oc-line);
    border-radius: 6px;
    background: var(--oc-surface);
  }

  .oc-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.36fr) minmax(0, 0.64fr);
    gap: 10px;
    padding: 9px 11px;
    text-align: right;
  }

  .oc-table td::before {
    align-self: start;
    color: var(--oc-muted);
    content: attr(data-label);
    font-size: 11px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .oc-table td > * {
    justify-self: end;
    max-width: 100%;
  }

  .oc-table td[data-label="Producto"] {
    text-align: left;
  }

  .oc-table td[data-label="Producto"] > * {
    justify-self: stretch;
  }

  .oc-code {
    justify-self: end;
    text-align: right;
  }

  .oc-table-input {
    width: 112px;
  }

  .oc-notifications {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: none;
  }
}

@media (max-width: 420px) {
  .oc-header-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-rates {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-rate + .oc-rate {
    border-top: 1px solid var(--oc-line);
    border-left: 0;
  }

  .oc-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .oc-metrics > span + span,
  .oc-metrics > span:nth-child(3) {
    border-top: 1px solid var(--oc-line);
    border-left: 0;
  }

  .oc-table td {
    grid-template-columns: minmax(78px, 0.32fr) minmax(0, 0.68fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .operations-center *,
  .operations-center *::before,
  .operations-center *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-color-scheme: dark) {
  .operations-center[data-theme="dark"] {
    --oc-bg: #11161f;
    --oc-surface: #1a212d;
    --oc-surface-soft: #222b38;
    --oc-ink: #f3f6fa;
    --oc-muted: #a8b2c2;
    --oc-line: #354052;
    --oc-line-strong: #566277;
  }
}
