/* =========================================================
   WIRTZ HUB · OPERACIONES · PEDIDOS SHOPIFY
   ========================================================= */


/* =========================================================
   ROOT
   ========================================================= */

.pedidos-shopify-page,
.pedidos-shopify-page * {
  box-sizing: border-box;
}

.pedidos-shopify-page {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 18px;
  color: #111827;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

html[data-theme="dark"] .pedidos-shopify-page {
  color: rgba(255, 255, 255, 0.94);
}


/* =========================================================
   ICONOS
   ========================================================= */

.pedidos-shopify-page .icon,
.pedidos-shopify-manual-modal .icon,
.pedidos-shopify-edit-modal .icon {
  display: block;
  width: 16px;
  height: 16px;
  stroke-width: 2.1;
  flex-shrink: 0;
}


/* =========================================================
   SPIN
   ========================================================= */

@keyframes pedidosShopifySpin {
  to {
    transform: rotate(360deg);
  }
}

.pedidos-shopify-spin {
  animation: pedidosShopifySpin 0.8s linear infinite;
}


/* =========================================================
   HEADER
   ========================================================= */

.pedidos-shopify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-width: 0;
  margin-bottom: 14px;
}

.pedidos-shopify-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.pedidos-shopify-brand__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 11px;
  background: #ffffff;
  color: #111827;
}

html[data-theme="dark"] .pedidos-shopify-brand__icon {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111111;
  color: rgba(255, 255, 255, 0.94);
}

.pedidos-shopify-brand__icon .icon {
  width: 19px;
  height: 19px;
}

.pedidos-shopify-brand > div {
  min-width: 0;
}

.pedidos-shopify-brand h2 {
  margin: 0;
  color: inherit;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.pedidos-shopify-brand p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

html[data-theme="dark"] .pedidos-shopify-brand p {
  color: rgba(255, 255, 255, 0.52);
}

.pedidos-shopify-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}


/* =========================================================
   BOTONES
   ========================================================= */

.pedidos-shopify-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    opacity 0.16s ease;
}

.pedidos-shopify-btn:hover:not(:disabled) {
  border-color: rgba(15, 23, 42, 0.35);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: #111111;
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .pedidos-shopify-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.3);
  background: #181818;
}

.pedidos-shopify-btn--dark {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.pedidos-shopify-btn--dark:hover:not(:disabled) {
  border-color: #000000;
  background: #000000;
}

html[data-theme="dark"] .pedidos-shopify-btn--dark {
  border-color: #ffffff;
  background: #ffffff;
  color: #050505;
}

html[data-theme="dark"] .pedidos-shopify-btn--dark:hover:not(:disabled) {
  border-color: #e5e7eb;
  background: #e5e7eb;
}

.pedidos-shopify-btn--danger {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.04);
  color: #dc2626;
}

.pedidos-shopify-btn--danger:hover:not(:disabled) {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

html[data-theme="dark"] .pedidos-shopify-btn--danger {
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.04);
  color: #f87171;
}

.pedidos-shopify-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pedidos-shopify-btn .icon {
  width: 14px;
  height: 14px;
}


/* =========================================================
   MÉTRICAS
   ========================================================= */

.pedidos-shopify-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

.pedidos-shopify-metric {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-metric {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101010;
}

.pedidos-shopify-metric__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
}

html[data-theme="dark"] .pedidos-shopify-metric__icon {
  background: #1c1c1c;
  color: rgba(255, 255, 255, 0.82);
}

.pedidos-shopify-metric__icon .icon {
  width: 15px;
  height: 15px;
}

.pedidos-shopify-metric > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-metric > div > span {
  color: #64748b;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-metric > div > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-metric strong {
  color: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}


/* =========================================================
   CREATE LAYOUT
   ========================================================= */

.pedidos-shopify-create-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-bottom: 12px;
}

.pedidos-shopify-upload,
.pedidos-shopify-preview,
.pedidos-shopify-list-panel,
.pedidos-shopify-detail {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 11px;
  background: #ffffff;
  overflow: hidden;
}

html[data-theme="dark"] .pedidos-shopify-upload,
html[data-theme="dark"] .pedidos-shopify-preview,
html[data-theme="dark"] .pedidos-shopify-list-panel,
html[data-theme="dark"] .pedidos-shopify-detail {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101010;
}


/* =========================================================
   PANEL HEADER
   ========================================================= */

.pedidos-shopify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-panel-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}

.pedidos-shopify-panel-head > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-panel-head > div:first-child > span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

html[data-theme="dark"] .pedidos-shopify-panel-head > div:first-child > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-panel-head > div:first-child > strong {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
}

.pedidos-shopify-panel-head > .icon {
  color: #64748b;
}

html[data-theme="dark"] .pedidos-shopify-panel-head > .icon {
  color: rgba(255, 255, 255, 0.5);
}

.pedidos-shopify-panel-head--stack {
  align-items: flex-start;
  flex-direction: column;
}


/* =========================================================
   UPLOAD
   ========================================================= */

.pedidos-shopify-upload__body {
  display: grid;
  gap: 10px;
  padding: 11px;
}

.pedidos-shopify-dropzone {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 128px;
  padding: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 9px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

html[data-theme="dark"] .pedidos-shopify-dropzone {
  border-color: rgba(255, 255, 255, 0.18);
  background: #141414;
}

.pedidos-shopify-dropzone:hover {
  border-color: rgba(15, 23, 42, 0.44);
}

html[data-theme="dark"] .pedidos-shopify-dropzone:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.pedidos-shopify-dropzone input {
  display: none;
}

.pedidos-shopify-dropzone__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
}

html[data-theme="dark"] .pedidos-shopify-dropzone__icon {
  background: #202020;
  color: rgba(255, 255, 255, 0.82);
}

.pedidos-shopify-dropzone__icon .icon {
  width: 16px;
  height: 16px;
}

.pedidos-shopify-dropzone strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.pedidos-shopify-dropzone > span:last-child {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-dropzone > span:last-child {
  color: rgba(255, 255, 255, 0.48);
}


/* =========================================================
   ARCHIVOS SELECCIONADOS
   ========================================================= */

.pedidos-shopify-selected-files {
  display: grid;
  gap: 5px;
  max-height: 190px;
  overflow-y: auto;
}

.pedidos-shopify-selected-files__empty {
  padding: 8px 4px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

html[data-theme="dark"] .pedidos-shopify-selected-files__empty {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-selected-file {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-selected-file {
  border-color: rgba(255, 255, 255, 0.08);
  background: #141414;
}

.pedidos-shopify-selected-file__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #f1f5f9;
}

html[data-theme="dark"] .pedidos-shopify-selected-file__icon {
  background: #202020;
}

.pedidos-shopify-selected-file__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pedidos-shopify-selected-file__body strong,
.pedidos-shopify-selected-file__body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-selected-file__body strong {
  color: inherit;
  font-size: 9.5px;
  font-weight: 850;
}

.pedidos-shopify-selected-file__body small {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-selected-file__body small {
  color: rgba(255, 255, 255, 0.45);
}

.pedidos-shopify-selected-file > button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.pedidos-shopify-selected-file > button:hover {
  background: rgba(220, 38, 38, 0.06);
  color: #dc2626;
}

.pedidos-shopify-selected-file > button .icon {
  width: 13px;
  height: 13px;
}


/* =========================================================
   UPLOAD ACTIONS
   ========================================================= */

.pedidos-shopify-upload__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}


/* =========================================================
   PREVIEW
   ========================================================= */

.pedidos-shopify-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 280px;
}

.pedidos-shopify-preview__body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  max-height: 315px;
  padding: 9px;
  overflow-y: auto;
}

.pedidos-shopify-preview-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 190px;
  padding: 16px;
  text-align: center;
}

.pedidos-shopify-preview-state > .icon {
  width: 26px;
  height: 26px;
  color: #64748b;
}

html[data-theme="dark"] .pedidos-shopify-preview-state > .icon {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-preview-state strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.pedidos-shopify-preview-state span {
  max-width: 300px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

html[data-theme="dark"] .pedidos-shopify-preview-state span {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-preview-count {
  color: #64748b;
  font-size: 9px;
  font-weight: 850;
}

html[data-theme="dark"] .pedidos-shopify-preview-count {
  color: rgba(255, 255, 255, 0.52);
}


/* =========================================================
   PREVIEW ORDER
   ========================================================= */

.pedidos-shopify-preview-order {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-preview-order {
  border-color: rgba(255, 255, 255, 0.08);
  background: #141414;
}

.pedidos-shopify-preview-order__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.pedidos-shopify-preview-order__head > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pedidos-shopify-preview-order__head strong,
.pedidos-shopify-preview-order__head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-preview-order__head strong {
  color: inherit;
  font-size: 10px;
  font-weight: 900;
}

.pedidos-shopify-preview-order__head > div > span {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-preview-order__head > div > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-preview-order__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-preview-order__meta {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-preview-order__meta strong {
  color: inherit;
  font-weight: 900;
}


/* =========================================================
   WORKSPACE
   ========================================================= */

.pedidos-shopify-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.pedidos-shopify-detail {
  order: 1;
}

.pedidos-shopify-list-panel {
  order: 2;
}


/* =========================================================
   FILTROS
   ========================================================= */

.pedidos-shopify-filters {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.4fr)
    minmax(130px, 0.8fr)
    minmax(125px, 0.75fr)
    120px
    120px
    auto;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.pedidos-shopify-filters input,
.pedidos-shopify-filters select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 7px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-family: inherit;
  font-size: 9px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-filters input,
html[data-theme="dark"] .pedidos-shopify-filters select {
  border-color: rgba(255, 255, 255, 0.14);
  background: #101010;
  color: rgba(255, 255, 255, 0.92);
}

.pedidos-shopify-filters input:focus,
.pedidos-shopify-filters select:focus {
  border-color: rgba(15, 23, 42, 0.5);
}

html[data-theme="dark"] .pedidos-shopify-filters input:focus,
html[data-theme="dark"] .pedidos-shopify-filters select:focus {
  border-color: rgba(255, 255, 255, 0.45);
}


/* =========================================================
   LISTA PEDIDOS
   ========================================================= */

.pedidos-shopify-list {
  display: grid;
  min-width: 0;
}

.pedidos-shopify-list-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  min-height: 160px;
  padding: 18px;
  text-align: center;
}

.pedidos-shopify-list-state > .icon {
  width: 25px;
  height: 25px;
  color: #64748b;
}

html[data-theme="dark"] .pedidos-shopify-list-state > .icon {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-list-state strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.pedidos-shopify-list-state span {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-list-state span {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 20px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 9px 11px;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

html[data-theme="dark"] .pedidos-shopify-order-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.pedidos-shopify-order-row:last-child {
  border-bottom: 0;
}

.pedidos-shopify-order-row:hover {
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-order-row:hover {
  background: #151515;
}

.pedidos-shopify-order-row.is-selected {
  background: #f1f5f9;
}

html[data-theme="dark"] .pedidos-shopify-order-row.is-selected {
  background: #1b1b1b;
}

.pedidos-shopify-order-row__main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pedidos-shopify-order-row__top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.pedidos-shopify-order-row__top > strong {
  min-width: 0;
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-order-row__info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-order-row__info {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-order-row__info > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-order-row__progress {
  display: grid;
  grid-template-columns: minmax(0, 160px) auto;
  align-items: center;
  gap: 7px;
}

.pedidos-shopify-order-row__progress > span {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

html[data-theme="dark"] .pedidos-shopify-order-row__progress > span {
  background: #282828;
}

.pedidos-shopify-order-row__progress > span > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111827;
}

html[data-theme="dark"] .pedidos-shopify-order-row__progress > span > i {
  background: #ffffff;
}

.pedidos-shopify-order-row__progress small {
  color: #64748b;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

html[data-theme="dark"] .pedidos-shopify-order-row__progress small {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-order-row__date {
  color: #64748b;
  font-size: 8.5px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

html[data-theme="dark"] .pedidos-shopify-order-row__date {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-order-row > .icon {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}


/* =========================================================
   TAG MANUAL
   ========================================================= */

.pedidos-shopify-manual-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.06);
  color: #7c3aed;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-manual-tag {
  border-color: rgba(196, 181, 253, 0.22);
  background: rgba(139, 92, 246, 0.08);
  color: #c4b5fd;
}


/* =========================================================
   CHIPS
   ========================================================= */

.pedidos-shopify-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

html[data-theme="dark"] .pedidos-shopify-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171717;
  color: rgba(255, 255, 255, 0.72);
}

.pedidos-shopify-chip.is-flex {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
}

html[data-theme="dark"] .pedidos-shopify-chip.is-flex {
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
}

.pedidos-shopify-chip.is-correo {
  border-color: rgba(234, 179, 8, 0.28);
  background: rgba(234, 179, 8, 0.07);
  color: #a16207;
}

html[data-theme="dark"] .pedidos-shopify-chip.is-correo {
  border-color: rgba(250, 204, 21, 0.25);
  background: rgba(234, 179, 8, 0.08);
  color: #fde047;
}


/* =========================================================
   ESTADOS
   ========================================================= */

.pedidos-shopify-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.pedidos-shopify-status.is-pending {
  border-color: rgba(100, 116, 139, 0.2);
  background: rgba(100, 116, 139, 0.07);
  color: #475569;
}

.pedidos-shopify-status.is-progress {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.07);
  color: #2563eb;
}

.pedidos-shopify-status.is-complete {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.07);
  color: #15803d;
}

.pedidos-shopify-status.is-warning {
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(217, 119, 6, 0.07);
  color: #b45309;
}

.pedidos-shopify-status.is-cancelled {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.07);
  color: #dc2626;
}

html[data-theme="dark"] .pedidos-shopify-status.is-pending {
  color: #cbd5e1;
}

html[data-theme="dark"] .pedidos-shopify-status.is-progress {
  color: #93c5fd;
}

html[data-theme="dark"] .pedidos-shopify-status.is-complete {
  color: #86efac;
}

html[data-theme="dark"] .pedidos-shopify-status.is-warning {
  color: #fcd34d;
}

html[data-theme="dark"] .pedidos-shopify-status.is-cancelled {
  color: #fca5a5;
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.pedidos-shopify-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 8px 11px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-pagination {
  border-top-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}

.pedidos-shopify-pagination__info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-pagination__info {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-pagination__info strong {
  color: inherit;
  font-weight: 900;
}

.pedidos-shopify-pagination__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =========================================================
   FIN PARTE 1 DE 3
   ========================================================= *//* =========================================================
   DETALLE
   ========================================================= */

.pedidos-shopify-detail {
  min-width: 0;
}

.pedidos-shopify-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-detail-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}

.pedidos-shopify-detail-head > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-detail-head > div:first-child > span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

html[data-theme="dark"] .pedidos-shopify-detail-head > div:first-child > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-detail-head > div:first-child > strong {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-detail-head__badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.pedidos-shopify-detail-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.pedidos-shopify-detail-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 18px;
  text-align: center;
}

.pedidos-shopify-detail-state--small {
  min-height: 120px;
}

.pedidos-shopify-detail-state > .icon {
  width: 28px;
  height: 28px;
  color: #64748b;
}

html[data-theme="dark"] .pedidos-shopify-detail-state > .icon {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-detail-state strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.pedidos-shopify-detail-state span {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-detail-state span {
  color: rgba(255, 255, 255, 0.48);
}


/* =========================================================
   DETALLE · GRID DATOS
   ========================================================= */

.pedidos-shopify-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.pedidos-shopify-detail-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-detail-field {
  border-color: rgba(255, 255, 255, 0.08);
  background: #141414;
}

.pedidos-shopify-detail-field > span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-detail-field > span {
  color: rgba(255, 255, 255, 0.44);
}

.pedidos-shopify-detail-field > strong {
  min-width: 0;
  color: inherit;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================================================
   DETALLE · PROGRESO
   ========================================================= */

.pedidos-shopify-detail-progress {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-detail-progress {
  border-color: rgba(255, 255, 255, 0.08);
  background: #141414;
}

.pedidos-shopify-detail-progress > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pedidos-shopify-detail-progress > div > span {
  color: #64748b;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-detail-progress > div > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-detail-progress > div > strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.pedidos-shopify-detail-progress__bar {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

html[data-theme="dark"] .pedidos-shopify-detail-progress__bar {
  background: #282828;
}

.pedidos-shopify-detail-progress__bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #111827;
}

html[data-theme="dark"] .pedidos-shopify-detail-progress__bar > i {
  background: #ffffff;
}

.pedidos-shopify-detail-progress > small {
  color: #64748b;
  font-size: 8.5px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-detail-progress > small {
  color: rgba(255, 255, 255, 0.46);
}


/* =========================================================
   SUBHEAD
   ========================================================= */

.pedidos-shopify-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-subhead {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: #171717;
}

.pedidos-shopify-subhead > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-subhead > div > span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.07em;
}

html[data-theme="dark"] .pedidos-shopify-subhead > div > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-subhead > div > strong {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
}

.pedidos-shopify-subhead > span {
  color: #64748b;
  font-size: 8.5px;
  font-weight: 850;
}

html[data-theme="dark"] .pedidos-shopify-subhead > span {
  color: rgba(255, 255, 255, 0.48);
}


/* =========================================================
   DETALLE · ITEMS
   ========================================================= */

.pedidos-shopify-detail-items {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  overflow: hidden;
}

html[data-theme="dark"] .pedidos-shopify-detail-items {
  border-color: rgba(255, 255, 255, 0.08);
}

.pedidos-shopify-items-table {
  width: 100%;
  min-width: 0;
}

.pedidos-shopify-items-row {
  display: grid;
  grid-template-columns:
    minmax(90px, 0.85fr)
    minmax(180px, 1.8fr)
    85px
    85px
    85px
    120px
    76px;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-items-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: #101010;
}

.pedidos-shopify-items-row:last-child {
  border-bottom: 0;
}

.pedidos-shopify-items-row--head {
  min-height: 36px;
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-items-row--head {
  background: #171717;
}

.pedidos-shopify-items-row > * {
  min-width: 0;
  padding: 0 8px;
}

.pedidos-shopify-items-row > strong,
.pedidos-shopify-items-row > span {
  color: inherit;
  font-size: 9px;
  font-weight: 750;
}

.pedidos-shopify-items-row > strong {
  font-weight: 900;
}

.pedidos-shopify-items-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-items-row--head > span {
  color: #64748b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-items-row--head > span {
  color: rgba(255, 255, 255, 0.44);
}


/* =========================================================
   ITEM ACTIONS
   ========================================================= */

.pedidos-shopify-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: visible !important;
}

.pedidos-shopify-item-actions button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
}

.pedidos-shopify-item-actions button:hover {
  border-color: #111827;
  color: #111827;
}

html[data-theme="dark"] .pedidos-shopify-item-actions button {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171717;
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .pedidos-shopify-item-actions button:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.pedidos-shopify-item-actions button.is-danger {
  border-color: rgba(220, 38, 38, 0.22);
  color: #dc2626;
}

html[data-theme="dark"] .pedidos-shopify-item-actions button.is-danger {
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.pedidos-shopify-item-actions button .icon {
  width: 12px;
  height: 12px;
}


/* =========================================================
   DETALLE ACTIONS
   ========================================================= */

.pedidos-shopify-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}


/* =========================================================
   MODAL EDITAR ITEM
   ========================================================= */

.pedidos-shopify-edit-modal,
.pedidos-shopify-edit-modal * {
  box-sizing: border-box;
}

.pedidos-shopify-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pedidos-shopify-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(5px);
}

.pedidos-shopify-edit-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, 100%);
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .pedidos-shopify-edit-modal__dialog {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101010;
  color: rgba(255, 255, 255, 0.94);
}

.pedidos-shopify-edit-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-edit-modal__head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}

.pedidos-shopify-edit-modal__head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-edit-modal__head span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .pedidos-shopify-edit-modal__head span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-edit-modal__head strong {
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-edit-modal__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

html[data-theme="dark"] .pedidos-shopify-edit-modal__close {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}

.pedidos-shopify-edit-modal__body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
}

.pedidos-shopify-edit-current {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-edit-current {
  border-color: rgba(255, 255, 255, 0.08);
  background: #171717;
}

.pedidos-shopify-edit-current > span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-edit-current > span {
  color: rgba(255, 255, 255, 0.44);
}

.pedidos-shopify-edit-current > strong {
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}

.pedidos-shopify-edit-current > p {
  margin: 0;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-edit-current > p {
  color: rgba(255, 255, 255, 0.48);
}


/* =========================================================
   EDIT WARNING
   ========================================================= */

.pedidos-shopify-edit-warning {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.05);
}

.pedidos-shopify-edit-warning > .icon {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: #b45309;
}

html[data-theme="dark"] .pedidos-shopify-edit-warning > .icon {
  color: #fcd34d;
}

.pedidos-shopify-edit-warning > div {
  display: grid;
  gap: 2px;
}

.pedidos-shopify-edit-warning strong {
  color: inherit;
  font-size: 9.5px;
  font-weight: 900;
}

.pedidos-shopify-edit-warning span {
  color: #92400e;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.45;
}

html[data-theme="dark"] .pedidos-shopify-edit-warning span {
  color: #fde68a;
}


/* =========================================================
   FORM GENERAL
   ========================================================= */

.pedidos-shopify-edit-form {
  display: grid;
  gap: 9px;
}

.pedidos-shopify-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pedidos-shopify-field > label {
  color: #475569;
  font-size: 8px;
  font-weight: 900;
}

html[data-theme="dark"] .pedidos-shopify-field > label {
  color: rgba(255, 255, 255, 0.62);
}

.pedidos-shopify-field input,
.pedidos-shopify-field textarea,
.pedidos-shopify-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-family: inherit;
  font-size: 10px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-field input,
html[data-theme="dark"] .pedidos-shopify-field textarea,
html[data-theme="dark"] .pedidos-shopify-field select {
  border-color: rgba(255, 255, 255, 0.15);
  background: #101010;
  color: rgba(255, 255, 255, 0.94);
}

.pedidos-shopify-field input,
.pedidos-shopify-field select {
  height: 36px;
  padding: 0 9px;
}

.pedidos-shopify-field textarea {
  min-height: 68px;
  padding: 8px 9px;
  resize: vertical;
}

.pedidos-shopify-field input:focus,
.pedidos-shopify-field textarea:focus,
.pedidos-shopify-field select:focus {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.07);
}

html[data-theme="dark"] .pedidos-shopify-field input:focus,
html[data-theme="dark"] .pedidos-shopify-field textarea:focus,
html[data-theme="dark"] .pedidos-shopify-field select:focus {
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.pedidos-shopify-field input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

.pedidos-shopify-edit-help {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
}

html[data-theme="dark"] .pedidos-shopify-edit-help {
  color: rgba(255, 255, 255, 0.44);
}


/* =========================================================
   EDIT FOOTER
   ========================================================= */

.pedidos-shopify-edit-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-edit-modal__footer {
  border-top-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}


/* =========================================================
   MODAL PEDIDO MANUAL
   ========================================================= */

.pedidos-shopify-manual-modal,
.pedidos-shopify-manual-modal * {
  box-sizing: border-box;
}

.pedidos-shopify-manual-modal {
  position: fixed;
  inset: 0;
  z-index: 16000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pedidos-shopify-manual-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(5px);
}

.pedidos-shopify-manual-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1100px, 100%);
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  background: #ffffff;
  color: #111827;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .pedidos-shopify-manual-modal__dialog {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101010;
  color: rgba(255, 255, 255, 0.94);
}


/* =========================================================
   MANUAL · HEADER
   ========================================================= */

.pedidos-shopify-manual-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-manual-modal__head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}

.pedidos-shopify-manual-modal__head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-manual-modal__head > div > span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

html[data-theme="dark"] .pedidos-shopify-manual-modal__head > div > span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-manual-modal__head strong {
  color: inherit;
  font-size: 13px;
  font-weight: 900;
}

.pedidos-shopify-manual-modal__head p {
  margin: 0;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.4;
}

html[data-theme="dark"] .pedidos-shopify-manual-modal__head p {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-manual-modal__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

html[data-theme="dark"] .pedidos-shopify-manual-modal__close {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}


/* =========================================================
   MANUAL · BODY
   ========================================================= */

.pedidos-shopify-manual-modal__body {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

.pedidos-shopify-manual-section {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

html[data-theme="dark"] .pedidos-shopify-manual-section {
  border-color: rgba(255, 255, 255, 0.08);
  background: #101010;
}

.pedidos-shopify-manual-products {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.pedidos-shopify-manual-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-manual-section__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: #171717;
}

.pedidos-shopify-manual-section__head > div:first-child {
  display: grid;
  gap: 2px;
}

.pedidos-shopify-manual-section__head > div:first-child > span {
  color: #64748b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .pedidos-shopify-manual-section__head > div:first-child > span {
  color: rgba(255, 255, 255, 0.44);
}

.pedidos-shopify-manual-section__head > div:first-child > strong {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
}


/* =========================================================
   MANUAL · FORM GRID
   ========================================================= */

.pedidos-shopify-manual-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 10px;
  overflow-y: auto;
}

.pedidos-shopify-manual-field--wide {
  grid-column: 1 / -1;
}


/* =========================================================
   MANUAL · PDF
   ========================================================= */

.pedidos-shopify-manual-pdf {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  cursor: pointer;
}

html[data-theme="dark"] .pedidos-shopify-manual-pdf {
  border-color: rgba(255, 255, 255, 0.18);
  background: #171717;
  color: rgba(255, 255, 255, 0.94);
}

.pedidos-shopify-manual-pdf:hover {
  border-color: currentColor;
}

.pedidos-shopify-manual-pdf input {
  display: none;
}

.pedidos-shopify-manual-pdf__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 7px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-manual-pdf__icon {
  border-color: rgba(255, 255, 255, 0.1);
  background: #101010;
}

.pedidos-shopify-manual-pdf__icon .icon {
  width: 15px;
  height: 15px;
}

.pedidos-shopify-manual-pdf__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pedidos-shopify-manual-pdf__body strong {
  min-width: 0;
  color: inherit;
  font-size: 9px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-manual-pdf__body small {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-manual-pdf__body small {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-manual-pdf__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: inherit;
  font-size: 7.5px;
  font-weight: 900;
}

html[data-theme="dark"] .pedidos-shopify-manual-pdf__action {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101010;
}


/* =========================================================
   MANUAL · SUMMARY
   ========================================================= */

.pedidos-shopify-manual-summary {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.pedidos-shopify-manual-summary strong {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
}

.pedidos-shopify-manual-summary span {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 800;
}

html[data-theme="dark"] .pedidos-shopify-manual-summary span {
  color: rgba(255, 255, 255, 0.46);
}


/* =========================================================
   MANUAL · SEARCH
   ========================================================= */

.pedidos-shopify-manual-search-wrap {
  position: relative;
  z-index: 20;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-manual-search-wrap {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: #101010;
}

.pedidos-shopify-manual-search {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 30px;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-manual-search {
  border-color: rgba(255, 255, 255, 0.14);
  background: #101010;
}

.pedidos-shopify-manual-search:focus-within {
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.06);
}

html[data-theme="dark"] .pedidos-shopify-manual-search:focus-within {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.pedidos-shopify-manual-search > .icon {
  width: 14px;
  height: 14px;
  justify-self: center;
  color: #64748b;
}

.pedidos-shopify-manual-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  outline: none;
  font-family: inherit;
  font-size: 9px;
  font-weight: 750;
}

.pedidos-shopify-manual-search__loader {
  display: grid;
  place-items: center;
}

.pedidos-shopify-manual-search__loader .icon {
  width: 13px;
  height: 13px;
}


/* =========================================================
   MANUAL · RESULTADOS
   ========================================================= */

.pedidos-shopify-manual-search-results {
  position: absolute;
  top: calc(100% - 5px);
  left: 10px;
  right: 10px;
  z-index: 50;
  display: grid;
  gap: 3px;
  max-height: 270px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

.pedidos-shopify-manual-search-results:empty {
  display: none;
}

html[data-theme="dark"] .pedidos-shopify-manual-search-results {
  border-color: rgba(255, 255, 255, 0.12);
  background: #151515;
}

.pedidos-shopify-manual-search-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 8px;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 800;
  text-align: center;
}

html[data-theme="dark"] .pedidos-shopify-manual-search-state {
  color: rgba(255, 255, 255, 0.48);
}

.pedidos-shopify-manual-search-state .icon {
  width: 14px;
  height: 14px;
}

.pedidos-shopify-manual-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.pedidos-shopify-manual-result:hover {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-manual-result:hover {
  border-color: rgba(255, 255, 255, 0.09);
  background: #202020;
}

.pedidos-shopify-manual-result.is-added {
  background: rgba(22, 163, 74, 0.05);
}

html[data-theme="dark"] .pedidos-shopify-manual-result.is-added {
  background: rgba(74, 222, 128, 0.05);
}

.pedidos-shopify-manual-result__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 7px;
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-manual-result__icon {
  border-color: rgba(255, 255, 255, 0.08);
  background: #202020;
}

.pedidos-shopify-manual-result__icon .icon {
  width: 14px;
  height: 14px;
}

.pedidos-shopify-manual-result__body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.pedidos-shopify-manual-result__body strong,
.pedidos-shopify-manual-result__body span,
.pedidos-shopify-manual-result__body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-manual-result__body strong {
  color: inherit;
  font-size: 9px;
  font-weight: 900;
}

.pedidos-shopify-manual-result__body span {
  color: inherit;
  font-size: 8.5px;
  font-weight: 750;
}

.pedidos-shopify-manual-result__body small {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-manual-result__body small {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-manual-result__action {
  color: #64748b;
  font-size: 7.5px;
  font-weight: 900;
  white-space: nowrap;
}

.pedidos-shopify-manual-result.is-added .pedidos-shopify-manual-result__action {
  color: #16a34a;
}

html[data-theme="dark"] .pedidos-shopify-manual-result.is-added .pedidos-shopify-manual-result__action {
  color: #4ade80;
}


/* =========================================================
   FIN PARTE 2 DE 3
   ========================================================= *//* =========================================================
   MANUAL · ITEMS
   ========================================================= */

.pedidos-shopify-manual-items {
  min-height: 0;
  overflow-y: auto;
}

.pedidos-shopify-manual-items-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 18px;
  text-align: center;
}

.pedidos-shopify-manual-items-empty > .icon {
  width: 26px;
  height: 26px;
  color: #64748b;
}

html[data-theme="dark"] .pedidos-shopify-manual-items-empty > .icon {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-manual-items-empty strong {
  color: inherit;
  font-size: 10.5px;
  font-weight: 900;
}

.pedidos-shopify-manual-items-empty span {
  color: #64748b;
  font-size: 8.5px;
  font-weight: 700;
}

html[data-theme="dark"] .pedidos-shopify-manual-items-empty span {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-manual-items-table {
  width: 100%;
  min-width: 0;
}

.pedidos-shopify-manual-item {
  display: grid;
  grid-template-columns:
    minmax(90px, 0.9fr)
    minmax(170px, 1.8fr)
    70px
    125px
    80px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

html[data-theme="dark"] .pedidos-shopify-manual-item {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: #101010;
}

.pedidos-shopify-manual-item:last-child {
  border-bottom: 0;
}

.pedidos-shopify-manual-item--head {
  min-height: 34px;
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-manual-item--head {
  background: #171717;
}

.pedidos-shopify-manual-item > * {
  min-width: 0;
  padding: 0 7px;
}

.pedidos-shopify-manual-item > strong,
.pedidos-shopify-manual-item > span,
.pedidos-shopify-manual-item > div {
  color: inherit;
  font-size: 8.5px;
  font-weight: 750;
}

.pedidos-shopify-manual-item > strong {
  font-weight: 900;
}

.pedidos-shopify-manual-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedidos-shopify-manual-item--head > span {
  color: #64748b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[data-theme="dark"] .pedidos-shopify-manual-item--head > span {
  color: rgba(255, 255, 255, 0.44);
}


/* =========================================================
   MANUAL · CANTIDAD
   ========================================================= */

.pedidos-shopify-manual-quantity {
  display: grid;
  grid-template-columns: 27px minmax(42px, 1fr) 27px;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.pedidos-shopify-manual-quantity button {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
}

.pedidos-shopify-manual-quantity button:hover:not(:disabled) {
  border-color: #111827;
}

html[data-theme="dark"] .pedidos-shopify-manual-quantity button {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171717;
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .pedidos-shopify-manual-quantity button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.55);
}

.pedidos-shopify-manual-quantity button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pedidos-shopify-manual-quantity button .icon {
  width: 11px;
  height: 11px;
}

.pedidos-shopify-manual-quantity input {
  width: 100%;
  min-width: 0;
  height: 27px;
  padding: 0 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-family: inherit;
  font-size: 8.5px;
  font-weight: 900;
  text-align: center;
}

html[data-theme="dark"] .pedidos-shopify-manual-quantity input {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101010;
  color: rgba(255, 255, 255, 0.94);
}

.pedidos-shopify-manual-quantity input:focus {
  border-color: #111827;
}

html[data-theme="dark"] .pedidos-shopify-manual-quantity input:focus {
  border-color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   MANUAL · ACCIONES ITEM
   ========================================================= */

.pedidos-shopify-manual-item__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible !important;
}

.pedidos-shopify-manual-item__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 6px;
  background: transparent;
  color: #dc2626;
  font-family: inherit;
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}

.pedidos-shopify-manual-item__actions button:hover {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.05);
}

html[data-theme="dark"] .pedidos-shopify-manual-item__actions button {
  border-color: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.pedidos-shopify-manual-item__actions button .icon {
  width: 11px;
  height: 11px;
}


/* =========================================================
   MANUAL · FOOTER
   ========================================================= */

.pedidos-shopify-manual-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.09);
  background: #f8fafc;
}

html[data-theme="dark"] .pedidos-shopify-manual-modal__footer {
  border-top-color: rgba(255, 255, 255, 0.09);
  background: #171717;
}

.pedidos-shopify-manual-footer-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #64748b;
  font-size: 8px;
  font-weight: 750;
}

html[data-theme="dark"] .pedidos-shopify-manual-footer-info {
  color: rgba(255, 255, 255, 0.46);
}

.pedidos-shopify-manual-footer-info .icon {
  width: 13px;
  height: 13px;
}

.pedidos-shopify-manual-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-shrink: 0;
}


/* =========================================================
   TOAST
   ========================================================= */

.pedidos-shopify-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20000;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 9px;
  background: #ffffff;
  color: #111827;
  font-family: "DM Sans", sans-serif;
  font-size: 9.5px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .pedidos-shopify-toast {
  border-color: rgba(255, 255, 255, 0.12);
  background: #171717;
  color: rgba(255, 255, 255, 0.94);
}

.pedidos-shopify-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pedidos-shopify-toast.is-success {
  border-color: rgba(22, 163, 74, 0.28);
}

.pedidos-shopify-toast.is-error {
  border-color: rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

html[data-theme="dark"] .pedidos-shopify-toast.is-error {
  color: #fca5a5;
}


/* =========================================================
   SCROLLBARS
   ========================================================= */

.pedidos-shopify-preview__body::-webkit-scrollbar,
.pedidos-shopify-selected-files::-webkit-scrollbar,
.pedidos-shopify-manual-items::-webkit-scrollbar,
.pedidos-shopify-manual-search-results::-webkit-scrollbar,
.pedidos-shopify-manual-form-grid::-webkit-scrollbar,
.pedidos-shopify-edit-modal__body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pedidos-shopify-preview__body::-webkit-scrollbar-track,
.pedidos-shopify-selected-files::-webkit-scrollbar-track,
.pedidos-shopify-manual-items::-webkit-scrollbar-track,
.pedidos-shopify-manual-search-results::-webkit-scrollbar-track,
.pedidos-shopify-manual-form-grid::-webkit-scrollbar-track,
.pedidos-shopify-edit-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.pedidos-shopify-preview__body::-webkit-scrollbar-thumb,
.pedidos-shopify-selected-files::-webkit-scrollbar-thumb,
.pedidos-shopify-manual-items::-webkit-scrollbar-thumb,
.pedidos-shopify-manual-search-results::-webkit-scrollbar-thumb,
.pedidos-shopify-manual-form-grid::-webkit-scrollbar-thumb,
.pedidos-shopify-edit-modal__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.42);
  background-clip: padding-box;
}


/* =========================================================
   RESPONSIVE · 1200
   ========================================================= */

@media (max-width: 1200px) {
  .pedidos-shopify-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pedidos-shopify-create-layout {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-filters {
    grid-template-columns:
      minmax(180px, 1fr)
      minmax(130px, 0.7fr)
      minmax(125px, 0.7fr)
      120px
      120px;
  }

  .pedidos-shopify-filters .pedidos-shopify-btn {
    grid-column: auto / span 1;
  }

  .pedidos-shopify-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pedidos-shopify-items-row {
    grid-template-columns:
      minmax(80px, 0.8fr)
      minmax(150px, 1.6fr)
      75px
      75px
      75px
      110px
      70px;
  }
}


/* =========================================================
   RESPONSIVE · 900
   ========================================================= */

@media (max-width: 900px) {
  .pedidos-shopify-page {
    padding: 12px;
  }

  .pedidos-shopify-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pedidos-shopify-head__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pedidos-shopify-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pedidos-shopify-filters > :first-child {
    grid-column: 1 / -1;
  }

  .pedidos-shopify-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pedidos-shopify-items-table {
    overflow-x: auto;
  }

  .pedidos-shopify-items-row {
    min-width: 760px;
  }

  .pedidos-shopify-manual-modal__body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .pedidos-shopify-manual-products {
    min-height: 430px;
  }

  .pedidos-shopify-manual-search-wrap {
    position: static;
  }

  .pedidos-shopify-manual-search-results {
    position: static;
    margin-top: 6px;
    max-height: 220px;
    box-shadow: none;
  }

  .pedidos-shopify-manual-form-grid {
    overflow: visible;
  }
}


/* =========================================================
   RESPONSIVE · 700
   ========================================================= */

@media (max-width: 700px) {
  .pedidos-shopify-page {
    padding: 10px;
  }

  .pedidos-shopify-brand {
    align-items: flex-start;
  }

  .pedidos-shopify-brand h2 {
    font-size: 17px;
  }

  .pedidos-shopify-head__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pedidos-shopify-head__actions .pedidos-shopify-btn {
    width: 100%;
  }

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

  .pedidos-shopify-filters {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-filters > :first-child {
    grid-column: auto;
  }

  .pedidos-shopify-detail-grid {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pedidos-shopify-detail-head__badges {
    justify-content: flex-start;
  }

  .pedidos-shopify-order-row {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .pedidos-shopify-order-row__date {
    grid-column: 1;
    text-align: left;
  }

  .pedidos-shopify-order-row > .icon {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .pedidos-shopify-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pedidos-shopify-pagination__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .pedidos-shopify-pagination__actions .pedidos-shopify-btn {
    width: 100%;
  }

  .pedidos-shopify-manual-modal {
    align-items: end;
    padding: 8px;
  }

  .pedidos-shopify-manual-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .pedidos-shopify-manual-modal__head {
    min-height: 60px;
    padding: 10px;
  }

  .pedidos-shopify-manual-modal__body {
    padding: 8px;
  }

  .pedidos-shopify-manual-form-grid {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-manual-field--wide {
    grid-column: auto;
  }

  .pedidos-shopify-manual-item--head {
    display: none;
  }

  .pedidos-shopify-manual-items-table {
    display: grid;
    gap: 7px;
    padding: 7px;
  }

  .pedidos-shopify-manual-item {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
  }

  html[data-theme="dark"] .pedidos-shopify-manual-item {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .pedidos-shopify-manual-item > strong,
  .pedidos-shopify-manual-item > span,
  .pedidos-shopify-manual-item > div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  }

  html[data-theme="dark"] .pedidos-shopify-manual-item > strong,
  html[data-theme="dark"] .pedidos-shopify-manual-item > span,
  html[data-theme="dark"] .pedidos-shopify-manual-item > div {
    border-bottom-color: rgba(255, 255, 255, 0.07);
  }

  .pedidos-shopify-manual-item > *:last-child {
    border-bottom: 0;
  }

  .pedidos-shopify-manual-item > strong::before,
  .pedidos-shopify-manual-item > span::before,
  .pedidos-shopify-manual-item > div::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  html[data-theme="dark"] .pedidos-shopify-manual-item > strong::before,
  html[data-theme="dark"] .pedidos-shopify-manual-item > span::before,
  html[data-theme="dark"] .pedidos-shopify-manual-item > div::before {
    color: rgba(255, 255, 255, 0.44);
  }

  .pedidos-shopify-manual-quantity {
    grid-template-columns: 90px 27px minmax(42px, 1fr) 27px !important;
  }

  .pedidos-shopify-manual-quantity::before {
    grid-column: 1;
  }

  .pedidos-shopify-manual-item__actions {
    grid-template-columns: 90px minmax(0, 1fr) !important;
  }

  .pedidos-shopify-manual-item__actions button {
    width: fit-content;
  }

  .pedidos-shopify-manual-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pedidos-shopify-manual-footer-info {
    line-height: 1.4;
  }

  .pedidos-shopify-manual-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .pedidos-shopify-manual-footer-actions .pedidos-shopify-btn {
    width: 100%;
  }

  .pedidos-shopify-edit-modal {
    align-items: end;
    padding: 8px;
  }

  .pedidos-shopify-edit-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }
}


/* =========================================================
   RESPONSIVE · 520
   ========================================================= */

@media (max-width: 520px) {
  .pedidos-shopify-metrics {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-head__actions {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-upload__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-upload__actions .pedidos-shopify-btn {
    width: 100%;
  }

  .pedidos-shopify-preview-order__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .pedidos-shopify-preview-order__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pedidos-shopify-order-row__info {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pedidos-shopify-order-row__progress {
    grid-template-columns: 1fr auto;
  }

  .pedidos-shopify-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pedidos-shopify-detail-actions .pedidos-shopify-btn {
    width: 100%;
  }

  .pedidos-shopify-manual-pdf {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .pedidos-shopify-manual-pdf__action {
    grid-column: 2;
    width: fit-content;
  }

  .pedidos-shopify-manual-result {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .pedidos-shopify-manual-result__action {
    grid-column: 2;
  }

  .pedidos-shopify-manual-footer-actions {
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-edit-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pedidos-shopify-edit-modal__footer .pedidos-shopify-btn {
    width: 100%;
  }
}


/* =========================================================
   AJUSTES DE SEGURIDAD
   SIN SCROLL HORIZONTAL GLOBAL
   ========================================================= */

.pedidos-shopify-page,
.pedidos-shopify-head,
.pedidos-shopify-metrics,
.pedidos-shopify-create-layout,
.pedidos-shopify-workspace,
.pedidos-shopify-list-panel,
.pedidos-shopify-detail,
.pedidos-shopify-detail-body,
.pedidos-shopify-detail-items,
.pedidos-shopify-preview,
.pedidos-shopify-upload {
  max-width: 100%;
}

.pedidos-shopify-page {
  overflow-x: clip;
}

.pedidos-shopify-manual-modal,
.pedidos-shopify-edit-modal {
  overscroll-behavior: contain;
}


/* =========================================================
   DARK · SELECT OPTIONS
   ========================================================= */

html[data-theme="dark"] .pedidos-shopify-page select option,
html[data-theme="dark"] .pedidos-shopify-manual-modal select option,
html[data-theme="dark"] .pedidos-shopify-edit-modal select option {
  background: #101010;
  color: rgba(255, 255, 255, 0.94);
}


/* =========================================================
   FIN
   WIRTZ HUB · OPERACIONES · PEDIDOS SHOPIFY
   ========================================================= */