/* =========================================================
   WIRTZ HUB · EVENTOS · EGRESOS DE STOCK
   CSS limpio · tabla redimensionable · mobile cards
   ========================================================= */

/* =========================================================
   01. BASE / FUENTE
   ========================================================= */

.stock-out-page,
.stock-out-page *,
.stock-out-modal,
.stock-out-modal *,
.stock-out-toast {
  box-sizing: border-box;
  font-family:
    "ATF Franklin Gothic",
    "Franklin Gothic Medium",
    "Arial Narrow",
    Arial,
    sans-serif;
}

.stock-out-page {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  min-height: calc(100vh - var(--topbar-height) - 44px);
  color: var(--text);
  overflow-x: hidden;
  animation: stockOutPageIn 0.24s ease both;
}

/* =========================================================
   02. BLOQUES BASE
   ========================================================= */

.stock-out-head,
.stock-out-metrics,
.stock-out-panel {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--panel-solid) 97%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.035),
    0 12px 28px rgba(0, 0, 0, 0.035);
  overflow: hidden;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

html[data-theme="dark"] .stock-out-head,
html[data-theme="dark"] .stock-out-metrics,
html[data-theme="dark"] .stock-out-panel {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(10, 10, 10, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 32px rgba(0, 0, 0, 0.28);
}

/* =========================================================
   03. HEADER
   ========================================================= */

.stock-out-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
}

.stock-out-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.stock-out-brand__icon {
  display: grid;
  width: 33px;
  height: 33px;
  min-width: 33px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #ea580c 28%, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  background: color-mix(in srgb, #ea580c 6%, transparent);
  color: #ea580c;
}

html[data-theme="dark"] .stock-out-brand__icon {
  border-color: color-mix(in srgb, #fb923c 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #fb923c 8%, transparent);
  color: #fb923c;
}

.stock-out-brand__icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.15;
}

.stock-out-brand h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stock-out-brand p {
  margin: 3px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

html[data-theme="dark"] .stock-out-brand h2 {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .stock-out-brand p {
  color: rgba(255, 255, 255, 0.48);
}

.stock-out-actions,
.stock-out-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

/* =========================================================
   04. BOTONES
   ========================================================= */

.stock-out-btn,
.stock-out-action,
.stock-out-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 9px;
  background: transparent;
  color: var(--text-strong);
  font-size: 9.6px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    opacity var(--transition);
}

.stock-out-btn:hover,
.stock-out-action:hover,
.stock-out-modal__close:hover {
  border-color: rgba(0, 0, 0, 0.24);
  background: rgba(0, 0, 0, 0.055);
}

.stock-out-btn:active,
.stock-out-action:active,
.stock-out-modal__close:active {
  transform: scale(0.98);
}

.stock-out-btn:focus-visible,
.stock-out-action:focus-visible,
.stock-out-modal__close:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text-strong) 16%, transparent);
}

.stock-out-btn .icon,
.stock-out-action .icon,
.stock-out-modal__close .icon {
  width: 13px;
  height: 13px;
  min-width: 13px;
  stroke-width: 2.15;
}

html[data-theme="dark"] .stock-out-btn,
html[data-theme="dark"] .stock-out-action,
html[data-theme="dark"] .stock-out-modal__close {
  border-color: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

html[data-theme="dark"] .stock-out-btn:hover,
html[data-theme="dark"] .stock-out-action:hover,
html[data-theme="dark"] .stock-out-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.075);
}

.stock-out-btn--dark,
.stock-out-action--dark {
  border-color: rgba(17, 24, 39, 0.92);
  background: rgba(17, 24, 39, 0.96);
  color: #ffffff;
}

.stock-out-btn--dark:hover,
.stock-out-action--dark:hover {
  border-color: rgba(17, 24, 39, 1);
  background: rgba(17, 24, 39, 0.9);
}

html[data-theme="dark"] .stock-out-btn--dark,
html[data-theme="dark"] .stock-out-action--dark {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

html[data-theme="dark"] .stock-out-btn--dark:hover,
html[data-theme="dark"] .stock-out-action--dark:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.15);
}

.stock-out-btn--danger {
  border-color: color-mix(in srgb, var(--danger) 48%, rgba(0, 0, 0, 0.13));
  color: var(--danger);
}

.stock-out-btn--danger:hover {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

/* =========================================================
   05. MÉTRICAS
   ========================================================= */

.stock-out-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stock-out-metric {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 56px;
  padding: 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.stock-out-metric:last-child {
  border-right: 0;
}

.stock-out-metric:hover {
  background: rgba(0, 0, 0, 0.045);
}

html[data-theme="dark"] .stock-out-metric {
  border-right-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .stock-out-metric:hover {
  background: rgba(255, 255, 255, 0.065);
}

.stock-out-metric span {
  min-width: 0;
  color: var(--muted);
  font-size: 8.2px;
  font-weight: 950;
  letter-spacing: 0.085em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-out-metric strong {
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-out-metric small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stock-out-metric:nth-child(1) strong {
  color: #ea580c;
}

.stock-out-metric:nth-child(2) strong {
  color: #dc2626;
}

.stock-out-metric:nth-child(3) strong {
  color: #2563eb;
}

.stock-out-metric:nth-child(4) strong {
  color: #7c3aed;
}

.stock-out-metric:nth-child(5) strong {
  color: #ca8a04;
}

.stock-out-metric:nth-child(6) strong {
  color: #16a34a;
}

html[data-theme="dark"] .stock-out-metric span {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .stock-out-metric strong {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .stock-out-metric small {
  color: rgba(255, 255, 255, 0.38);
}

html[data-theme="dark"] .stock-out-metric:nth-child(1) strong {
  color: #fb923c;
}

html[data-theme="dark"] .stock-out-metric:nth-child(2) strong {
  color: #f87171;
}

html[data-theme="dark"] .stock-out-metric:nth-child(3) strong {
  color: #60a5fa;
}

html[data-theme="dark"] .stock-out-metric:nth-child(4) strong {
  color: #a78bfa;
}

html[data-theme="dark"] .stock-out-metric:nth-child(5) strong {
  color: #facc15;
}

html[data-theme="dark"] .stock-out-metric:nth-child(6) strong {
  color: #4ade80;
}

/* =========================================================
   06. PANEL / TOOLBAR
   ========================================================= */

.stock-out-panel {
  display: grid;
  min-width: 0;
}

.stock-out-toolbar {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .stock-out-toolbar {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.stock-out-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.stock-out-title span {
  color: var(--muted);
  font-size: 8.2px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.stock-out-title strong {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

html[data-theme="dark"] .stock-out-title span {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .stock-out-title strong {
  color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   07. FILTROS
   ========================================================= */

.stock-out-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: min(420px, 100%);
  min-width: 260px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.stock-out-search:focus-within {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.045);
}

html[data-theme="dark"] .stock-out-search {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .stock-out-search:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.065);
}

.stock-out-search .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke-width: 2.15;
  color: #2563eb;
}

html[data-theme="dark"] .stock-out-search .icon {
  color: #60a5fa;
}

.stock-out-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  outline: none;
  font-size: 10px;
  font-weight: 780;
}

.stock-out-search input::placeholder {
  color: var(--muted-2);
}

html[data-theme="dark"] .stock-out-search input {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .stock-out-search input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.stock-out-filters select {
  height: 32px;
  min-width: 112px;
  padding: 0 9px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 9px;
  background: transparent;
  color: var(--text-strong);
  outline: none;
  font-size: 9.6px;
  font-weight: 850;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.stock-out-filters select:hover,
.stock-out-filters select:focus {
  border-color: rgba(0, 0, 0, 0.28);
  background: rgba(0, 0, 0, 0.045);
}

html[data-theme="dark"] .stock-out-filters select {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .stock-out-filters select:hover,
html[data-theme="dark"] .stock-out-filters select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.065);
}

/* =========================================================
   08. TABLA DESKTOP · RESIZE REAL
   Importante:
   - NO usar overflow-x hidden en desktop.
   - NO usar width en % con !important.
   - El JS controla width/min-width en px.
   ========================================================= */

.stock-out-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 128, 145, 0.35) transparent;
}

.stock-out-table-wrap::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.stock-out-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.stock-out-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(120, 128, 145, 0.35);
  background-clip: content-box;
}

.stock-out-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 128, 145, 0.55);
  background-clip: content-box;
}

.stock-out-table {
  width: auto;
  max-width: none;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
}

/* El JS inyecta min-width de tabla y width de TH.
   Estas reglas evitan que CSS bloquee ese cálculo. */
.stock-out-table th,
.stock-out-table td {
  position: relative;
  height: 38px;
  padding: 0 10px;
  border-right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
  color: var(--text);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .stock-out-table th,
html[data-theme="dark"] .stock-out-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.stock-out-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--panel-solid) 98%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 7.8px;
  font-weight: 950;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  overflow: visible;
}

html[data-theme="dark"] .stock-out-table th {
  background: rgba(10, 10, 10, 0.98);
  color: rgba(255, 255, 255, 0.46);
}

.stock-out-table tbody tr {
  transition:
    background var(--transition),
    color var(--transition);
}

.stock-out-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.045);
}

html[data-theme="dark"] .stock-out-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.stock-out-table tbody tr:last-child td {
  border-bottom: 0;
}

.stock-out-table strong {
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 950;
}

html[data-theme="dark"] .stock-out-table strong {
  color: rgba(255, 255, 255, 0.9);
}

/* Separadores visuales de columnas */
.stock-out-table th:not(:last-child)::after,
.stock-out-table td:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.stock-out-table th:not(:last-child)::after {
  height: 13px;
  background: rgba(0, 0, 0, 0.16);
}

.stock-out-table td:not(:last-child)::after {
  height: 15px;
  background: rgba(0, 0, 0, 0.105);
}

html[data-theme="dark"] .stock-out-table th:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] .stock-out-table td:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.11);
}

/* Código oculto */
.stock-out-table th:nth-child(1),
.stock-out-table td:nth-child(1) {
  display: none;
  width: 0;
  min-width: 0;
  max-width: 0;
  padding: 0;
}

/* Alineaciones */
.stock-out-table td:nth-child(5),
.stock-out-table th:nth-child(5),
.stock-out-table td:nth-child(10),
.stock-out-table th:nth-child(10) {
  text-align: right;
}

.stock-out-table td:nth-child(11) {
  color: var(--muted);
  font-size: 9.6px;
  font-weight: 760;
}

html[data-theme="dark"] .stock-out-table td:nth-child(11) {
  color: rgba(255, 255, 255, 0.58);
}

/* =========================================================
   09. ORDENAMIENTO + HANDLE DE RESIZE
   ========================================================= */

.stock-out-th {
  position: sticky;
  top: 0;
  z-index: 4;
  overflow: visible;
}

.stock-out-th__sort {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.stock-out-th__sort:disabled {
  cursor: default;
}

.stock-out-th__sort span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-out-th__sort .icon {
  width: 11px;
  height: 11px;
  min-width: 11px;
  color: var(--muted);
  opacity: 0.72;
}

.stock-out-th.is-sorted .stock-out-th__sort {
  color: var(--text-strong);
}

.stock-out-th.is-sorted .stock-out-th__sort .icon {
  color: #ea580c;
  opacity: 1;
}

html[data-theme="dark"] .stock-out-th.is-sorted .stock-out-th__sort {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .stock-out-th.is-sorted .stock-out-th__sort .icon {
  color: #fb923c;
}

.stock-out-th.is-right .stock-out-th__sort {
  text-align: right;
}

.stock-out-th.is-right .stock-out-th__sort span {
  text-align: right;
}

/* Zona sensible para arrastrar columnas */
.stock-out-th__resize {
  display: block;
  position: absolute;
  top: 0;
  right: -5px;
  z-index: 40;
  width: 12px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  pointer-events: auto;
}

.stock-out-th__resize::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 5px;
  width: 2px;
  height: calc(100% - 14px);
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.35);
  opacity: 0;
  transition:
    opacity var(--transition),
    background var(--transition);
}

.stock-out-th:hover .stock-out-th__resize::after,
body.is-resizing-stock-out-column .stock-out-th__resize::after {
  opacity: 1;
}

html[data-theme="dark"] .stock-out-th__resize::after {
  background: rgba(251, 146, 60, 0.45);
}

body.is-resizing-stock-out-column,
body.is-resizing-stock-out-column * {
  cursor: col-resize !important;
  user-select: none !important;
}

/* =========================================================
   10. BADGES / VALORES TABLA
   ========================================================= */

.stock-out-code,
.stock-out-status,
.stock-out-origin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.025);
  color: var(--text-strong);
  font-size: 8.6px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .stock-out-code,
html[data-theme="dark"] .stock-out-status,
html[data-theme="dark"] .stock-out-origin {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
}

.stock-out-code {
  color: var(--muted);
}

html[data-theme="dark"] .stock-out-code {
  color: rgba(255, 255, 255, 0.46);
}

.stock-out-status::before,
.stock-out-origin::before {
  content: "";
  flex: 0 0 auto;
  width: 5.5px;
  height: 5.5px;
  border-radius: 999px;
  background: var(--muted);
}

.stock-out-status.is-done::before {
  background: var(--success);
}

.stock-out-status.is-pending::before {
  background: var(--warning);
}

.stock-out-origin.is-manual::before {
  background: var(--info);
}

.stock-out-origin.is-bulk::before {
  background: var(--warning);
}

.stock-out-origin.is-shopify::before {
  background: #7c3aed;
}

.stock-out-origin.is-mercado-libre::before {
  background: #facc15;
}

.stock-out-origin.is-inventory::before {
  background: #2563eb;
}

/* Cantidad sin mini-card */
.stock-out-qty {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--danger);
  font-size: 10.4px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.025em;
}

.stock-out-qty::before {
  display: none;
}

html[data-theme="dark"] .stock-out-qty {
  color: #f87171;
}

/* =========================================================
   11. MODALES
   ========================================================= */

.stock-out-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.stock-out-modal.is-open {
  display: grid;
  animation: stockOutModalBackdropIn 0.16s ease both;
}

.stock-out-modal__card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(780px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--panel-solid) 98%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.24),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  overflow: hidden;
  animation: stockOutModalIn 0.2s ease both;
}

.stock-out-modal__card--wide {
  width: min(920px, 100%);
}

html[data-theme="dark"] .stock-out-modal__card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.96);
  box-shadow:
    0 22px 80px rgba(0, 0, 0, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.stock-out-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .stock-out-modal__head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.stock-out-modal__title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.stock-out-modal__icon {
  display: grid;
  width: 34px;
  height: 34px;
  min-width: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #ea580c 28%, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  background: color-mix(in srgb, #ea580c 6%, transparent);
  color: #ea580c;
}

html[data-theme="dark"] .stock-out-modal__icon {
  border-color: color-mix(in srgb, #fb923c 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #fb923c 8%, transparent);
  color: #fb923c;
}

.stock-out-modal__icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.15;
}

.stock-out-modal__title h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.045em;
}

.stock-out-modal__title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9.6px;
  font-weight: 730;
  line-height: 1.35;
}

html[data-theme="dark"] .stock-out-modal__title h3 {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .stock-out-modal__title p {
  color: rgba(255, 255, 255, 0.48);
}

.stock-out-modal__close {
  width: 31px;
  height: 31px;
  min-width: 31px;
  padding: 0;
  flex: 0 0 auto;
}

.stock-out-modal__body {
  display: grid;
  gap: 9px;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 128, 145, 0.35) transparent;
}

.stock-out-modal__body::-webkit-scrollbar {
  width: 7px;
}

.stock-out-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.stock-out-modal__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(120, 128, 145, 0.35);
  background-clip: content-box;
}

.stock-out-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .stock-out-modal__footer {
  border-top-color: rgba(255, 255, 255, 0.09);
}

/* =========================================================
   12. FORMULARIOS
   ========================================================= */

.stock-out-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 13px;
  overflow: hidden;
}

html[data-theme="dark"] .stock-out-form-grid {
  border-color: rgba(255, 255, 255, 0.1);
}

.stock-out-field {
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: transparent;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.stock-out-field:hover {
  background: rgba(0, 0, 0, 0.035);
}

html[data-theme="dark"] .stock-out-field {
  border-right-color: rgba(255, 255, 255, 0.09);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] .stock-out-field:hover {
  background: rgba(255, 255, 255, 0.055);
}

.stock-out-field:nth-child(2n) {
  border-right: 0;
}

.stock-out-field:nth-last-child(1),
.stock-out-field:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.stock-out-field--full {
  grid-column: 1 / -1;
}

.stock-out-field label {
  color: var(--muted);
  font-size: 8.2px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

html[data-theme="dark"] .stock-out-field label {
  color: rgba(255, 255, 255, 0.48);
}

.stock-out-field input,
.stock-out-field select,
.stock-out-field textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  outline: none;
  font-size: 10px;
  font-weight: 820;
  resize: none;
}

html[data-theme="dark"] .stock-out-field input,
html[data-theme="dark"] .stock-out-field select,
html[data-theme="dark"] .stock-out-field textarea {
  color: rgba(255, 255, 255, 0.9);
}

.stock-out-field input::placeholder,
.stock-out-field textarea::placeholder {
  color: var(--muted-2);
}

html[data-theme="dark"] .stock-out-field input::placeholder,
html[data-theme="dark"] .stock-out-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.stock-out-field input[readonly],
.stock-out-field textarea[readonly],
.stock-out-field input:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

html[data-theme="dark"] .stock-out-field input[readonly],
html[data-theme="dark"] .stock-out-field textarea[readonly],
html[data-theme="dark"] .stock-out-field input:disabled {
  color: rgba(255, 255, 255, 0.42);
}

.stock-out-field textarea {
  min-height: 128px;
  line-height: 1.42;
}

/* =========================================================
   13. AYUDAS / MENSAJES
   ========================================================= */

.stock-out-help {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 13px;
  background: transparent;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.stock-out-help:hover {
  background: rgba(0, 0, 0, 0.035);
}

html[data-theme="dark"] .stock-out-help {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .stock-out-help:hover {
  background: rgba(255, 255, 255, 0.055);
}

.stock-out-help__icon {
  display: grid;
  width: 30px;
  height: 30px;
  min-width: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, #2563eb 28%, rgba(0, 0, 0, 0.12));
  border-radius: 9px;
  background: color-mix(in srgb, #2563eb 6%, transparent);
  color: #2563eb;
}

html[data-theme="dark"] .stock-out-help__icon {
  border-color: color-mix(in srgb, #60a5fa 30%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, #60a5fa 8%, transparent);
  color: #60a5fa;
}

.stock-out-help__icon .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.15;
}

.stock-out-help strong {
  display: block;
  color: var(--text-strong);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.1;
}

.stock-out-help p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.38;
}

.stock-out-help b {
  color: var(--text-strong);
  font-weight: 950;
}

html[data-theme="dark"] .stock-out-help strong,
html[data-theme="dark"] .stock-out-help b {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .stock-out-help p {
  color: rgba(255, 255, 255, 0.48);
}

/* =========================================================
   14. TOAST
   ========================================================= */

.stock-out-toast {
  position: fixed;
  right: 14px;
  bottom: 38px;
  z-index: 10000;
  max-width: min(390px, calc(100vw - 28px));
  padding: 11px 13px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-solid) 98%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-strong);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.stock-out-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

html[data-theme="dark"] .stock-out-toast {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.96);
  color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* =========================================================
   15. RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 1380px) {
  .stock-out-head,
  .stock-out-toolbar {
    grid-template-columns: 1fr;
  }

  .stock-out-actions,
  .stock-out-filters {
    justify-content: flex-start;
  }

  .stock-out-brand h2 {
    font-size: 14.8px;
  }

  .stock-out-brand p {
    font-size: 9.8px;
  }
}

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

  .stock-out-metric:nth-child(3n) {
    border-right: 0;
  }

  .stock-out-metric:nth-child(n + 4) {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  html[data-theme="dark"] .stock-out-metric:nth-child(n + 4) {
    border-top-color: rgba(255, 255, 255, 0.09);
  }

  .stock-out-table th,
  .stock-out-table td {
    height: 36px;
    padding-left: 7px;
    padding-right: 7px;
    font-size: 8.8px;
  }

  .stock-out-table th {
    font-size: 7px;
  }

  .stock-out-code,
  .stock-out-status,
  .stock-out-origin {
    font-size: 7.7px;
    padding: 2px 6px;
  }

  .stock-out-qty {
    font-size: 9.4px;
  }
}

@media (max-width: 820px) {
  .stock-out-page {
    gap: 7px;
  }

  .stock-out-head {
    padding: 9px;
  }

  .stock-out-actions,
  .stock-out-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .stock-out-search {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
  }

  .stock-out-btn,
  .stock-out-filters select {
    width: 100%;
  }

  .stock-out-table th,
  .stock-out-table td {
    height: 34px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 7.8px;
  }

  .stock-out-table th {
    font-size: 6.5px;
  }

  .stock-out-th__sort .icon {
    display: none;
  }

  .stock-out-code,
  .stock-out-status,
  .stock-out-origin {
    font-size: 7px;
    padding: 1px 4px;
  }

  .stock-out-qty {
    font-size: 8.8px;
  }

  .stock-out-modal {
    padding: 10px;
  }

  .stock-out-modal__card {
    max-height: calc(100vh - 20px);
  }
}

/* =========================================================
   16. MOBILE · TABLA A CARDS
   En mobile se apaga resize y se muestra cada fila como tarjeta.
   ========================================================= */

@media (max-width: 620px) {
  .stock-out-page {
    gap: 7px;
    padding: 0;
    overflow-x: hidden;
  }

  .stock-out-head,
  .stock-out-panel,
  .stock-out-metrics {
    border-radius: 14px;
  }

  .stock-out-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
    min-height: auto;
  }

  .stock-out-brand {
    align-items: center;
    gap: 8px;
  }

  .stock-out-brand__icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .stock-out-brand__icon .icon {
    width: 15px;
    height: 15px;
  }

  .stock-out-brand h2 {
    font-size: 14.5px;
  }

  .stock-out-brand p {
    display: none;
  }

  .stock-out-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stock-out-actions .stock-out-btn {
    min-height: 34px;
    font-size: 9.2px;
  }

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

  .stock-out-metric {
    min-height: 54px;
    padding: 9px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .stock-out-metric:nth-child(1),
  .stock-out-metric:nth-child(2) {
    border-top: 0;
  }

  .stock-out-metric:nth-child(2n) {
    border-right: 0;
  }

  html[data-theme="dark"] .stock-out-metric {
    border-right-color: rgba(255, 255, 255, 0.09);
    border-top-color: rgba(255, 255, 255, 0.09);
  }

  .stock-out-metric span {
    font-size: 7.6px;
  }

  .stock-out-metric strong {
    font-size: 17px;
  }

  .stock-out-metric small {
    font-size: 7.6px;
  }

  .stock-out-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px;
  }

  .stock-out-title span {
    font-size: 7.8px;
  }

  .stock-out-title strong {
    font-size: 13px;
  }

  .stock-out-filters {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stock-out-search,
  .stock-out-filters select,
  .stock-out-filters .stock-out-btn {
    width: 100%;
    min-width: 0;
    height: 34px;
    min-height: 34px;
    font-size: 9.4px;
  }

  .stock-out-search input {
    font-size: 9.4px;
  }

  .stock-out-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .stock-out-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
  }

  .stock-out-table thead {
    display: none;
  }

  .stock-out-table tbody {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .stock-out-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: color-mix(in srgb, var(--panel-solid) 98%, transparent);
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.035),
      0 8px 22px rgba(0, 0, 0, 0.035);
    overflow: hidden;
  }

  html[data-theme="dark"] .stock-out-table tbody tr {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.94);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.03),
      0 10px 26px rgba(0, 0, 0, 0.32);
  }

  .stock-out-table th,
  .stock-out-table td {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .stock-out-table td:nth-child(1) {
    display: none;
  }

  .stock-out-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    height: auto;
    min-height: 34px;
    padding: 7px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.075);
    color: var(--text-strong);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stock-out-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  html[data-theme="dark"] .stock-out-table td {
    border-bottom-color: rgba(255, 255, 255, 0.075);
    color: rgba(255, 255, 255, 0.88);
  }

  .stock-out-table td::before {
    display: block;
    width: 86px;
    min-width: 86px;
    max-width: 86px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html[data-theme="dark"] .stock-out-table td::before {
    color: rgba(255, 255, 255, 0.46);
  }

  .stock-out-table td:nth-child(2)::before {
    content: "Fecha";
  }

  .stock-out-table td:nth-child(3)::before {
    content: "SKU";
  }

  .stock-out-table td:nth-child(4)::before {
    content: "Producto";
  }

  .stock-out-table td:nth-child(5)::before {
    content: "Cantidad";
  }

  .stock-out-table td:nth-child(6)::before {
    content: "Motivo";
  }

  .stock-out-table td:nth-child(7)::before {
    content: "Canal";
  }

  .stock-out-table td:nth-child(8)::before {
    content: "Origen";
  }

  .stock-out-table td:nth-child(9)::before {
    content: "Usuario";
  }

  .stock-out-table td:nth-child(10)::before {
    content: "Estado";
  }

  .stock-out-table td:nth-child(11)::before {
    content: "Obs.";
  }

  .stock-out-table td::after,
  .stock-out-table th::after {
    display: none;
  }

  .stock-out-table td > * {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    max-width: 100%;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .stock-out-th__resize {
    display: none;
  }

  .stock-out-code,
  .stock-out-status,
  .stock-out-origin,
  .stock-out-qty {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    max-width: 100%;
    min-width: 0;
    font-size: 8.7px;
    line-height: 1.1;
  }

  .stock-out-qty {
    font-size: 9.8px;
  }

  .stock-out-status,
  .stock-out-origin {
    min-height: 22px;
    padding: 3px 8px;
  }

  .stock-out-table tbody tr:has(td[colspan]) {
    display: block;
    padding: 13px;
  }

  .stock-out-table td[colspan] {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: 0;
  }

  .stock-out-table td[colspan]::before {
    display: none;
  }

  .stock-out-table td[colspan] strong {
    display: block;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.25;
    text-align: left;
  }

  .stock-out-modal {
    padding: 8px;
  }

  .stock-out-modal__card {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }

  .stock-out-modal__head {
    align-items: flex-start;
    padding: 9px;
  }

  .stock-out-modal__title p {
    display: none;
  }

  .stock-out-modal__body {
    padding: 9px;
  }

  .stock-out-form-grid {
    grid-template-columns: 1fr;
  }

  .stock-out-field {
    min-height: 58px;
    border-right: 0;
  }

  .stock-out-field:nth-child(2n) {
    border-right: 0;
  }

  .stock-out-field:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  html[data-theme="dark"] .stock-out-field:nth-last-child(2):nth-child(odd) {
    border-bottom-color: rgba(255, 255, 255, 0.09);
  }

  .stock-out-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 9px;
  }

  .stock-out-modal__footer .stock-out-btn {
    width: 100%;
    min-height: 34px;
  }

  .stock-out-help {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

/* =========================================================
   17. MOBILE SMALL
   ========================================================= */

@media (max-width: 420px) {
  .stock-out-head,
  .stock-out-panel,
  .stock-out-metrics {
    border-radius: 12px;
  }

  .stock-out-toolbar {
    padding: 8px;
  }

  .stock-out-table-wrap {
    padding: 7px;
  }

  .stock-out-table tbody {
    gap: 7px;
  }

  .stock-out-table tbody tr {
    padding: 9px;
    border-radius: 13px;
  }

  .stock-out-table td {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 8px;
    min-height: 32px;
    padding: 6px 0;
    font-size: 8.5px;
  }

  .stock-out-table td::before {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    font-size: 6.6px;
  }

  .stock-out-code,
  .stock-out-status,
  .stock-out-origin {
    font-size: 8px;
  }

  .stock-out-qty {
    font-size: 9.2px;
  }

  .stock-out-toast {
    right: 10px;
    bottom: 34px;
    max-width: calc(100vw - 20px);
  }
}

/* =========================================================
   18. ANIMACIONES
   ========================================================= */

@keyframes stockOutPageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stockOutModalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes stockOutModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .stock-out-page,
  .stock-out-page *,
  .stock-out-page *::before,
  .stock-out-page *::after,
  .stock-out-modal,
  .stock-out-modal *,
  .stock-out-modal *::before,
  .stock-out-modal *::after,
  .stock-out-toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}/* =========================================================
   EGRESOS DE STOCK · MISMO TAMAÑO DE TEXTO GENERAL
   Agregar al final de egresos-stock.css
   ========================================================= */

/* Encabezado */

.stock-out-brand h2 {
  font-size: 22px !important;
}

.stock-out-brand p {
  font-size: 11px !important;
  line-height: 1.4 !important;
}


/* Botones */

.stock-out-btn,
.stock-out-action,
.stock-out-modal__close {
  min-height: 34px !important;
  padding: 0 12px !important;

  font-size: 10.5px !important;
}

.stock-out-btn .icon,
.stock-out-action .icon,
.stock-out-modal__close .icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
}


/* Métricas */

.stock-out-metric {
  min-height: 58px !important;
  padding: 10px 12px !important;
}

.stock-out-metric span {
  font-size: 8.5px !important;
}

.stock-out-metric strong {
  font-size: 18px !important;
}

.stock-out-metric small {
  font-size: 8.5px !important;
}


/* Toolbar */

.stock-out-title span {
  font-size: 8.5px !important;
}

.stock-out-title strong {
  font-size: 14px !important;
}


/* Buscador y filtros */

.stock-out-search,
.stock-out-filters select {
  height: 34px !important;
}

.stock-out-search input,
.stock-out-filters select {
  font-size: 10.5px !important;
}


/* Tabla */

.stock-out-table th {
  font-size: 8.5px !important;
}

.stock-out-table td {
  font-size: 10.5px !important;
}

.stock-out-table strong {
  font-size: 10.5px !important;
}

.stock-out-table td:nth-child(11) {
  font-size: 10px !important;
}

.stock-out-code,
.stock-out-status,
.stock-out-origin {
  font-size: 9.5px !important;
}

.stock-out-qty {
  font-size: 11px !important;
}


/* Modal */

.stock-out-modal__title h3 {
  font-size: 18px !important;
}

.stock-out-modal__title p {
  font-size: 10px !important;
}


/* Formulario */

.stock-out-field label {
  font-size: 8.5px !important;
}

.stock-out-field input,
.stock-out-field select,
.stock-out-field textarea {
  font-size: 10.5px !important;
}


/* Ayudas */

.stock-out-help strong {
  font-size: 12px !important;
}

.stock-out-help p {
  font-size: 10px !important;
}


/* Toast */

.stock-out-toast {
  font-size: 10.5px !important;
}


/* Vista mobile en formato card */

@media (max-width: 620px) {
  .stock-out-table td {
    font-size: 10px !important;
  }

  .stock-out-table td::before {
    font-size: 8px !important;
  }

  .stock-out-code,
  .stock-out-status,
  .stock-out-origin {
    font-size: 9px !important;
  }

  .stock-out-qty {
    font-size: 10.5px !important;
  }
}/* =========================================================
   EGRESOS DE STOCK · MISMA ESCALA VISUAL DEL SISTEMA
   Agregar al FINAL de egresos-stock.css
   ========================================================= */

/* =========================================================
   ESCALA GENERAL
   ========================================================= */

.stock-out-page {
  gap: 12px !important;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.stock-out-head {
  min-height: 92px !important;

  padding:
    15px
    17px !important;

  gap: 16px !important;
}

.stock-out-brand {
  gap: 13px !important;
}

.stock-out-brand__icon {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;

  border-radius: 11px !important;
}

.stock-out-brand__icon .icon {
  width: 21px !important;
  height: 21px !important;
}

.stock-out-brand h2 {
  font-size:
    clamp(
      24px,
      2.1vw,
      30px
    ) !important;

  font-weight: 950 !important;
  line-height: 1 !important;
}

.stock-out-brand p {
  margin-top: 6px !important;

  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

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

.stock-out-btn,
.stock-out-action,
.stock-out-modal__close {
  min-height: 36px !important;

  padding:
    0
    12px !important;

  border-radius: 9px !important;

  font-size: 11px !important;
  font-weight: 900 !important;
}

.stock-out-btn .icon,
.stock-out-action .icon,
.stock-out-modal__close .icon {
  width: 15px !important;
  height: 15px !important;

  min-width: 15px !important;
  min-height: 15px !important;
}

.stock-out-modal__close {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;

  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;

  padding: 0 !important;
}

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

.stock-out-metric {
  min-height: 72px !important;

  padding:
    11px
    12px !important;

  gap: 5px !important;
}

.stock-out-metric span {
  font-size: 9px !important;
  font-weight: 900 !important;
}

.stock-out-metric strong {
  font-size: 19px !important;
  font-weight: 950 !important;
}

.stock-out-metric small {
  font-size: 9.5px !important;
  font-weight: 700 !important;
}

/* =========================================================
   PANEL Y TOOLBAR
   ========================================================= */

.stock-out-toolbar {
  grid-template-columns:
    minmax(190px, 0.3fr)
    minmax(0, 1fr) !important;

  gap: 12px !important;

  padding:
    12px !important;
}

.stock-out-title {
  gap: 5px !important;
}

.stock-out-title span {
  font-size: 9px !important;
  font-weight: 900 !important;
}

.stock-out-title strong {
  font-size: 16px !important;
  font-weight: 950 !important;
}

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

.stock-out-filters {
  gap: 7px !important;
}

.stock-out-search,
.stock-out-filters select {
  height: 36px !important;
  min-height: 36px !important;

  border-radius: 9px !important;
}

.stock-out-search {
  max-width: 460px !important;

  padding:
    0
    10px !important;
}

.stock-out-search .icon {
  width: 14px !important;
  height: 14px !important;
}

.stock-out-search input,
.stock-out-filters select {
  font-size: 10.8px !important;
  font-weight: 800 !important;
}

.stock-out-filters select {
  min-width: 120px !important;

  padding:
    0
    10px !important;
}

/* =========================================================
   TABLA
   ========================================================= */

.stock-out-table th {
  height: 42px !important;

  padding:
    0
    10px !important;

  font-size: 8.8px !important;
  font-weight: 950 !important;
}

.stock-out-table td {
  height: 48px !important;

  padding:
    0
    10px !important;

  font-size: 10.8px !important;
  font-weight: 760 !important;
}

.stock-out-table strong {
  font-size: 11px !important;
  font-weight: 950 !important;
}

.stock-out-table td:nth-child(11) {
  font-size: 10px !important;
}

.stock-out-code,
.stock-out-status,
.stock-out-origin {
  min-height: 24px !important;

  padding:
    4px
    9px !important;

  font-size: 9px !important;
  font-weight: 950 !important;
}

.stock-out-qty {
  font-size: 11px !important;
}

/* =========================================================
   CABECERA ORDENABLE
   ========================================================= */

.stock-out-th__sort {
  font-size: 8.8px !important;
}

.stock-out-th__sort .icon {
  width: 13px !important;
  height: 13px !important;

  min-width: 13px !important;
  min-height: 13px !important;
}

/* =========================================================
   MODAL · CAPA GENERAL
   ========================================================= */

.stock-out-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99990 !important;

  display: none !important;
  place-items: center !important;

  width: 100vw !important;
  height: 100vh !important;

  padding: 18px !important;

  background:
    rgba(
      0,
      0,
      0,
      0.68
    ) !important;

  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;

  overflow: hidden !important;
}

.stock-out-modal.is-open {
  display: grid !important;
}

/* =========================================================
   TARJETA DEL MODAL
   ========================================================= */

.stock-out-modal__card {
  position: relative !important;
  z-index: 2 !important;

  display: grid !important;
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto !important;

  width:
    min(
      900px,
      calc(100vw - 36px)
    ) !important;

  min-width: 0 !important;

  max-height:
    calc(
      100vh -
      36px
    ) !important;

  color: #111111 !important;

  background: #ffffff !important;

  border:
    1px solid
    rgba(
      0,
      0,
      0,
      0.18
    ) !important;

  border-radius: 16px !important;

  box-shadow:
    0 30px 90px
    rgba(
      0,
      0,
      0,
      0.34
    ) !important;

  opacity: 1 !important;
  visibility: visible !important;

  overflow: hidden !important;
}

.stock-out-modal__card--wide {
  width:
    min(
      1040px,
      calc(100vw - 36px)
    ) !important;
}

/* =========================================================
   MODAL OSCURO
   ========================================================= */

html[data-theme="dark"]
.stock-out-modal__card {
  color: #f5f5f5 !important;

  background: #0b0b0b !important;

  border-color:
    rgba(
      255,
      255,
      255,
      0.16
    ) !important;

  box-shadow:
    0 34px 100px
    rgba(
      0,
      0,
      0,
      0.84
    ) !important;
}

/* =========================================================
   HEADER DEL MODAL
   ========================================================= */

.stock-out-modal__head {
  position: relative !important;
  z-index: 5 !important;

  min-height: 70px !important;

  padding:
    13px
    15px !important;

  background: #ffffff !important;

  border-bottom:
    1px solid
    rgba(
      0,
      0,
      0,
      0.12
    ) !important;
}

html[data-theme="dark"]
.stock-out-modal__head {
  background: #0b0b0b !important;

  border-bottom-color:
    rgba(
      255,
      255,
      255,
      0.11
    ) !important;
}

.stock-out-modal__title {
  gap: 12px !important;
}

.stock-out-modal__icon {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;

  border-radius: 10px !important;
}

.stock-out-modal__icon .icon {
  width: 19px !important;
  height: 19px !important;
}

.stock-out-modal__title h3 {
  color: #111111 !important;

  font-size: 19px !important;
  font-weight: 950 !important;
}

.stock-out-modal__title p {
  color: #666666 !important;

  font-size: 10.5px !important;
  font-weight: 700 !important;
}

html[data-theme="dark"]
.stock-out-modal__title h3 {
  color: #ffffff !important;
}

html[data-theme="dark"]
.stock-out-modal__title p {
  color:
    rgba(
      255,
      255,
      255,
      0.58
    ) !important;
}

/* =========================================================
   CUERPO DEL MODAL
   ========================================================= */

.stock-out-modal__body {
  min-height: 0 !important;

  padding:
    14px !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  background: #ffffff !important;
}

html[data-theme="dark"]
.stock-out-modal__body {
  background: #0b0b0b !important;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.stock-out-form-grid {
  border-radius: 11px !important;
}

.stock-out-field {
  min-height: 76px !important;

  padding:
    12px !important;

  gap: 7px !important;

  background: #ffffff !important;
}

html[data-theme="dark"]
.stock-out-field {
  background: #0b0b0b !important;
}

.stock-out-field label {
  color: #666666 !important;

  font-size: 9px !important;
  font-weight: 900 !important;
}

html[data-theme="dark"]
.stock-out-field label {
  color:
    rgba(
      255,
      255,
      255,
      0.58
    ) !important;
}

.stock-out-field input,
.stock-out-field select,
.stock-out-field textarea {
  min-height: 36px !important;

  padding:
    0
    10px !important;

  color: #111111 !important;

  background: #f7f7f7 !important;

  border:
    1px solid
    rgba(
      0,
      0,
      0,
      0.16
    ) !important;

  border-radius: 8px !important;

  font-size: 10.8px !important;
  font-weight: 800 !important;

  opacity: 1 !important;
}

.stock-out-field textarea {
  min-height: 100px !important;

  padding:
    10px !important;
}

.stock-out-field input:focus,
.stock-out-field select:focus,
.stock-out-field textarea:focus {
  background: #ffffff !important;

  border-color:
    rgba(
      0,
      0,
      0,
      0.4
    ) !important;

  box-shadow:
    0 0 0 3px
    rgba(
      0,
      0,
      0,
      0.06
    ) !important;
}

html[data-theme="dark"]
.stock-out-field input,
html[data-theme="dark"]
.stock-out-field select,
html[data-theme="dark"]
.stock-out-field textarea {
  color: #f5f5f5 !important;

  background: #111111 !important;

  border-color:
    rgba(
      255,
      255,
      255,
      0.15
    ) !important;
}

html[data-theme="dark"]
.stock-out-field input:focus,
html[data-theme="dark"]
.stock-out-field select:focus,
html[data-theme="dark"]
.stock-out-field textarea:focus {
  background: #151515 !important;

  border-color:
    rgba(
      255,
      255,
      255,
      0.34
    ) !important;

  box-shadow:
    0 0 0 3px
    rgba(
      255,
      255,
      255,
      0.06
    ) !important;
}

/* =========================================================
   AYUDA DEL MODAL
   ========================================================= */

.stock-out-help {
  grid-template-columns:
    38px
    minmax(0, 1fr) !important;

  gap: 11px !important;

  min-height: 72px !important;

  padding:
    12px !important;

  border-radius: 10px !important;

  background: #f7f7f7 !important;
}

html[data-theme="dark"]
.stock-out-help {
  background: #111111 !important;
}

.stock-out-help__icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;

  border-radius: 9px !important;
}

.stock-out-help__icon .icon {
  width: 17px !important;
  height: 17px !important;
}

.stock-out-help strong {
  font-size: 12px !important;
  font-weight: 950 !important;
}

.stock-out-help p {
  font-size: 10px !important;
  font-weight: 700 !important;
}

/* =========================================================
   FOOTER DEL MODAL
   ========================================================= */

.stock-out-modal__footer {
  position: relative !important;
  z-index: 5 !important;

  min-height: 64px !important;

  padding:
    12px
    15px !important;

  background: #ffffff !important;

  border-top:
    1px solid
    rgba(
      0,
      0,
      0,
      0.12
    ) !important;
}

html[data-theme="dark"]
.stock-out-modal__footer {
  background: #0b0b0b !important;

  border-top-color:
    rgba(
      255,
      255,
      255,
      0.11
    ) !important;
}

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

.stock-out-toast {
  min-height: 56px !important;

  padding:
    11px
    13px !important;

  font-size: 10.8px !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1380px) {
  .stock-out-toolbar {
    grid-template-columns: 1fr !important;
  }

  .stock-out-brand h2 {
    font-size: 25px !important;
  }

  .stock-out-brand p {
    font-size: 11px !important;
  }
}

@media (max-width: 820px) {
  .stock-out-page {
    gap: 10px !important;
  }

  .stock-out-head {
    min-height: 0 !important;

    padding:
      12px !important;
  }

  .stock-out-brand h2 {
    font-size: 22px !important;
  }

  .stock-out-modal {
    padding: 8px !important;
  }

  .stock-out-modal__card,
  .stock-out-modal__card--wide {
    width:
      calc(
        100vw -
        16px
      ) !important;

    max-height:
      calc(
        100vh -
        16px
      ) !important;

    border-radius: 13px !important;
  }

  .stock-out-form-grid {
    grid-template-columns: 1fr !important;
  }

  .stock-out-field {
    border-right: 0 !important;
  }

  .stock-out-modal__footer {
    grid-template-columns: 1fr !important;
  }

  .stock-out-modal__footer
  .stock-out-btn {
    width: 100% !important;
  }
}/* =========================================================
   EGRESOS DE STOCK
   BORDES VISIBLES + TABLA CUADRICULADA + MISMA ESCALA
   Agregar al FINAL de egresos-stock.css
   ========================================================= */

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.app-content:has(.stock-out-page) {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding: 10px !important;

  overflow: visible !important;
}

.stock-out-page {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  gap: 12px !important;

  overflow: visible !important;
}

/* =========================================================
   BORDES PRINCIPALES
   ========================================================= */

.stock-out-head,
.stock-out-metrics,
.stock-out-panel,
.stock-out-modal__card {
  border:
    1px solid
    rgba(
      15,
      23,
      42,
      0.19
    ) !important;

  box-shadow:
    0 1px 0
    rgba(
      255,
      255,
      255,
      0.86
    ) inset,
    0 5px 16px
    rgba(
      15,
      23,
      42,
      0.055
    ) !important;
}

.stock-out-head:hover,
.stock-out-panel:hover {
  border-color:
    rgba(
      15,
      23,
      42,
      0.29
    ) !important;
}

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

.stock-out-metrics {
  overflow: hidden !important;
}

.stock-out-metric {
  border-right:
    1px solid
    rgba(
      15,
      23,
      42,
      0.16
    ) !important;

  border-bottom: 0 !important;
}

.stock-out-metric:last-child {
  border-right: 0 !important;
}

.stock-out-metric:hover {
  background:
    rgba(
      15,
      23,
      42,
      0.04
    ) !important;
}

/* =========================================================
   TOOLBAR Y FILTROS
   ========================================================= */

.stock-out-toolbar {
  border-bottom:
    1px solid
    rgba(
      15,
      23,
      42,
      0.18
    ) !important;
}

.stock-out-search,
.stock-out-filters select,
.stock-out-filters button {
  border-color:
    rgba(
      15,
      23,
      42,
      0.18
    ) !important;
}

.stock-out-search:hover,
.stock-out-search:focus-within,
.stock-out-filters select:hover,
.stock-out-filters select:focus,
.stock-out-filters button:hover {
  border-color:
    rgba(
      15,
      23,
      42,
      0.29
    ) !important;
}

/* =========================================================
   PANEL Y TABLA
   ========================================================= */

.stock-out-panel {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow: visible !important;
}

.stock-out-table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  overflow-x: auto !important;
  overflow-y: visible !important;
}

/* =========================================================
   TABLA CUADRICULADA
   ========================================================= */

.stock-out-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;

  border:
    1px solid
    rgba(
      15,
      23,
      42,
      0.2
    ) !important;
}

.stock-out-table th,
.stock-out-table td {
  border-right:
    1px solid
    rgba(
      15,
      23,
      42,
      0.15
    ) !important;

  border-bottom:
    1px solid
    rgba(
      15,
      23,
      42,
      0.15
    ) !important;
}

.stock-out-table th:last-child,
.stock-out-table td:last-child {
  border-right: 0 !important;
}

.stock-out-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Desactiva los separadores cortos anteriores */

.stock-out-table th:not(:last-child)::after,
.stock-out-table td:not(:last-child)::after {
  display: none !important;
}

/* Encabezado marcado */

.stock-out-table thead th {
  background:
    color-mix(
      in srgb,
      var(--panel-solid) 94%,
      #eef1f4
    ) !important;

  border-bottom:
    1px solid
    rgba(
      15,
      23,
      42,
      0.23
    ) !important;
}

/* Filas alternadas */

.stock-out-table tbody tr:nth-child(even) td {
  background:
    rgba(
      15,
      23,
      42,
      0.018
    ) !important;
}

.stock-out-table tbody tr:hover td {
  background:
    rgba(
      15,
      23,
      42,
      0.05
    ) !important;
}

/* Columna de observaciones más separada */

.stock-out-table th:last-child,
.stock-out-table td:last-child {
  border-left:
    1px solid
    rgba(
      15,
      23,
      42,
      0.2
    ) !important;
}

/* =========================================================
   HANDLE DE COLUMNAS
   ========================================================= */

.stock-out-th__resize {
  right: -6px !important;

  width: 13px !important;
}

.stock-out-th__resize::after {
  top: 6px !important;
  right: 5px !important;

  width: 2px !important;
  height:
    calc(
      100% -
      12px
    ) !important;

  background:
    rgba(
      234,
      88,
      12,
      0.55
    ) !important;
}

/* =========================================================
   BADGES
   ========================================================= */

.stock-out-code,
.stock-out-status,
.stock-out-origin,
.stock-out-brand__icon,
.stock-out-modal__icon,
.stock-out-help__icon {
  border-color:
    rgba(
      15,
      23,
      42,
      0.18
    ) !important;
}

/* =========================================================
   MODAL Y FORMULARIO CUADRICULADO
   ========================================================= */

.stock-out-form-grid {
  gap: 0 !important;

  border:
    1px solid
    rgba(
      15,
      23,
      42,
      0.19
    ) !important;

  border-radius: 11px !important;

  overflow: hidden !important;
}

.stock-out-field {
  border-right:
    1px solid
    rgba(
      15,
      23,
      42,
      0.14
    ) !important;

  border-bottom:
    1px solid
    rgba(
      15,
      23,
      42,
      0.14
    ) !important;
}

.stock-out-field:nth-child(2n) {
  border-right: 0 !important;
}

.stock-out-field--full {
  border-right: 0 !important;
}

.stock-out-field:hover,
.stock-out-field:focus-within {
  background:
    rgba(
      15,
      23,
      42,
      0.028
    ) !important;
}

.stock-out-field input,
.stock-out-field select,
.stock-out-field textarea {
  border-color:
    rgba(
      15,
      23,
      42,
      0.18
    ) !important;
}

/* =========================================================
   CARD DE AYUDA
   ========================================================= */

.stock-out-help {
  border-color:
    rgba(
      15,
      23,
      42,
      0.19
    ) !important;
}

.stock-out-help:hover {
  border-color:
    rgba(
      15,
      23,
      42,
      0.29
    ) !important;
}

/* =========================================================
   SCROLL DE PÁGINA Y FOOTER
   ========================================================= */

body:has(.stock-out-page) .app-main,
body:has(.stock-out-page) .app-shell {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.stock-out-page) .app-footer,
body:has(.stock-out-page) #footerMount,
body:has(.stock-out-page) footer.app-footer {
  position: static !important;

  inset: auto !important;

  width: 100% !important;

  margin-top: 12px !important;

  transform: none !important;
}

/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .stock-out-head,
html[data-theme="dark"] .stock-out-metrics,
html[data-theme="dark"] .stock-out-panel,
html[data-theme="dark"] .stock-out-modal__card {
  border-color:
    rgba(
      255,
      255,
      255,
      0.2
    ) !important;

  box-shadow:
    0 1px 0
    rgba(
      255,
      255,
      255,
      0.055
    ) inset,
    0 8px 20px
    rgba(
      0,
      0,
      0,
      0.32
    ) !important;
}

html[data-theme="dark"] .stock-out-table {
  border-color:
    rgba(
      255,
      255,
      255,
      0.2
    ) !important;
}

html[data-theme="dark"] .stock-out-table th,
html[data-theme="dark"] .stock-out-table td,
html[data-theme="dark"] .stock-out-metric,
html[data-theme="dark"] .stock-out-field {
  border-right-color:
    rgba(
      255,
      255,
      255,
      0.13
    ) !important;

  border-bottom-color:
    rgba(
      255,
      255,
      255,
      0.13
    ) !important;
}

html[data-theme="dark"] .stock-out-table thead th {
  background:
    #111111 !important;

  border-bottom-color:
    rgba(
      255,
      255,
      255,
      0.22
    ) !important;
}

html[data-theme="dark"]
.stock-out-table
tbody
tr:nth-child(even)
td {
  background:
    rgba(
      255,
      255,
      255,
      0.025
    ) !important;
}

html[data-theme="dark"]
.stock-out-table
tbody
tr:hover
td {
  background:
    rgba(
      255,
      255,
      255,
      0.06
    ) !important;
}

html[data-theme="dark"] .stock-out-form-grid,
html[data-theme="dark"] .stock-out-help {
  border-color:
    rgba(
      255,
      255,
      255,
      0.18
    ) !important;
}

html[data-theme="dark"] .stock-out-field:hover,
html[data-theme="dark"] .stock-out-field:focus-within {
  background:
    rgba(
      255,
      255,
      255,
      0.045
    ) !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .stock-out-metric {
    border-bottom:
      1px solid
      rgba(
        15,
        23,
        42,
        0.14
      ) !important;
  }

  .stock-out-metric:nth-child(3n) {
    border-right: 0 !important;
  }

  .stock-out-metric:nth-last-child(-n + 3) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 620px) {
  .stock-out-table-wrap {
    padding: 10px !important;
  }

  .stock-out-table {
    border: 0 !important;
  }

  .stock-out-table tbody {
    gap: 10px !important;
  }

  .stock-out-table tbody tr {
    padding: 0 !important;

    border:
      1px solid
      rgba(
        15,
        23,
        42,
        0.19
      ) !important;

    border-radius: 11px !important;

    box-shadow:
      0 4px 14px
      rgba(
        15,
        23,
        42,
        0.045
      ) !important;
  }

  .stock-out-table td {
    min-height: 42px !important;

    padding:
      8px
      10px !important;

    border-right: 0 !important;

    border-bottom:
      1px solid
      rgba(
        15,
        23,
        42,
        0.14
      ) !important;
  }

  .stock-out-table td:last-child {
    border-left: 0 !important;
    border-bottom: 0 !important;
  }

  .stock-out-form-grid {
    grid-template-columns:
      1fr !important;
  }

  .stock-out-field,
  .stock-out-field:nth-child(2n),
  .stock-out-field--full {
    border-right: 0 !important;
  }

  .stock-out-field:last-child {
    border-bottom: 0 !important;
  }
}

@media (max-width: 480px) {
  .stock-out-metrics {
    grid-template-columns:
      1fr !important;
  }

  .stock-out-metric,
  .stock-out-metric:nth-child(3n) {
    border-right: 0 !important;

    border-bottom:
      1px solid
      rgba(
        15,
        23,
        42,
        0.14
      ) !important;
  }

  .stock-out-metric:last-child {
    border-bottom: 0 !important;
  }
}/* =========================================================
   MOVIMIENTOS DE STOCK · USAR TODO EL ANCHO DISPONIBLE
   Agregar al FINAL de egresos-stock.css
   ========================================================= */

.app-content:has(.stock-out-page) {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  padding-left: 10px !important;
  padding-right: 10px !important;
}

.stock-out-page,
.stock-out-head,
.stock-out-metrics,
.stock-out-panel,
.stock-out-toolbar,
.stock-out-table-wrap {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.stock-out-table-wrap {
  overflow-x: auto !important;
}

.stock-out-table {
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
}/* =========================================================
   MOVIMIENTOS DE STOCK · TEXTO Y NÚMEROS CENTRADOS
   Agregar al FINAL de egresos-stock.css
   ========================================================= */

.stock-out-table th,
.stock-out-table td {
  text-align: center !important;
}

.stock-out-th__sort {
  justify-content: center !important;
  text-align: center !important;
}

.stock-out-th__sort span {
  width: 100% !important;
  text-align: center !important;
}

.stock-out-table td:nth-child(5),
.stock-out-table th:nth-child(5),
.stock-out-table td:nth-child(10),
.stock-out-table th:nth-child(10) {
  text-align: center !important;
}

.stock-out-code,
.stock-out-status,
.stock-out-origin,
.stock-out-qty {
  justify-content: center !important;
  text-align: center !important;
}