/* =========================================================
   WIRTZ HUB · MANUFACTURA · AUMENTOS

   UBICACIÓN:
   frontend/src/pages/manufactura/aumentos/aumentos.css

   PARTE 1 DE 2

   ESTILO:
   - Premium / limpio.
   - Sin glow.
   - Sin blur.
   - Sin sombras innecesarias.
   - Responsive.
   - Compatible dark / light.
   ========================================================= */


/* =========================================================
   VARIABLES LOCALES
   ========================================================= */

.manufactura-aumentos-page {
  --aumentos-bg:
    var(--app-bg, #f5f6f8);

  --aumentos-surface:
    var(--surface, #ffffff);

  --aumentos-surface-2:
    var(--surface-2, #f8f9fb);

  --aumentos-border:
    var(--border-color, #dfe3e8);

  --aumentos-border-strong:
    var(--border-strong, #cfd5dc);

  --aumentos-text:
    var(--text-primary, #15171a);

  --aumentos-text-secondary:
    var(--text-secondary, #646b73);

  --aumentos-text-muted:
    var(--text-muted, #8b929a);

  --aumentos-accent:
    var(--accent-color, #1f6feb);

  --aumentos-accent-soft:
    color-mix(
      in srgb,
      var(--aumentos-accent) 10%,
      transparent
    );

  --aumentos-success:
    #18864b;

  --aumentos-success-soft:
    rgba(
      24,
      134,
      75,
      0.10
    );

  --aumentos-danger:
    #c33c3c;

  --aumentos-danger-soft:
    rgba(
      195,
      60,
      60,
      0.10
    );

  --aumentos-warning:
    #a96b00;

  --aumentos-warning-soft:
    rgba(
      169,
      107,
      0,
      0.10
    );

  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    18px;

  padding:
    20px 22px 28px;

  box-sizing:
    border-box;
}


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

.manufactura-aumentos-page .icon,
.manufactura-aumentos-modal .icon,
.manufactura-aumentos-toast .icon {
  width:
    18px;

  height:
    18px;

  stroke-width:
    1.8;

  flex:
    0 0 auto;
}


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

.manufactura-aumentos-head {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    18px;
}


.manufactura-aumentos-brand {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    14px;
}


.manufactura-aumentos-brand__icon {
  width:
    44px;

  height:
    44px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    12px;

  background:
    var(--aumentos-surface);

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  color:
    var(--aumentos-accent);

  flex:
    0 0 auto;
}


.manufactura-aumentos-brand__copy {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.manufactura-aumentos-eyebrow {
  color:
    var(--aumentos-text-secondary);

  font-size:
    12px;

  font-weight:
    700;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}


.manufactura-aumentos-brand__copy h1 {
  margin:
    0;

  color:
    var(--aumentos-text);

  font-size:
    clamp(
      24px,
      2.3vw,
      34px
    );

  font-weight:
    800;

  line-height:
    1.08;

  letter-spacing:
    -0.03em;
}


.manufactura-aumentos-brand__copy p {
  max-width:
    760px;

  margin:
    2px 0 0;

  color:
    var(--aumentos-text-secondary);

  font-size:
    14px;

  line-height:
    1.55;
}


.manufactura-aumentos-actions {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  flex:
    0 0 auto;
}


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

.manufactura-aumentos-btn,
.manufactura-aumentos-icon-btn {
  border:
    1px solid
    var(--aumentos-border);

  background:
    var(--aumentos-surface);

  color:
    var(--aumentos-text);

  font:
    inherit;

  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}


.manufactura-aumentos-btn {
  min-height:
    38px;

  padding:
    0 13px;

  border-radius:
    10px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  font-size:
    13px;

  font-weight:
    700;

  cursor:
    pointer;
}


.manufactura-aumentos-icon-btn {
  width:
    38px;

  height:
    38px;

  padding:
    0;

  border-radius:
    10px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  cursor:
    pointer;
}


.manufactura-aumentos-btn:hover,
.manufactura-aumentos-icon-btn:hover {
  border-color:
    var(--aumentos-border-strong);

  background:
    var(--aumentos-surface-2);
}


.manufactura-aumentos-btn:active,
.manufactura-aumentos-icon-btn:active {
  transform:
    translateY(
      1px
    );
}


.manufactura-aumentos-btn:disabled,
.manufactura-aumentos-icon-btn:disabled {
  opacity:
    0.55;

  cursor:
    not-allowed;

  transform:
    none;
}


.manufactura-aumentos-btn--primary {
  border-color:
    var(--aumentos-accent);

  background:
    var(--aumentos-accent);

  color:
    #ffffff;
}


.manufactura-aumentos-btn--primary:hover {
  border-color:
    var(--aumentos-accent);

  background:
    var(--aumentos-accent);

  color:
    #ffffff;
}


.manufactura-aumentos-btn.is-active {
  border-color:
    var(--aumentos-accent);

  background:
    var(--aumentos-accent-soft);

  color:
    var(--aumentos-accent);
}


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

.manufactura-aumentos-metrics {
  width:
    100%;

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  gap:
    12px;
}


.manufactura-aumentos-metric {
  min-width:
    0;

  min-height:
    108px;

  padding:
    16px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    14px;

  background:
    var(--aumentos-surface);

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    5px;

  box-sizing:
    border-box;
}


.manufactura-aumentos-metric > span {
  color:
    var(--aumentos-text-secondary);

  font-size:
    12px;

  font-weight:
    700;

  text-transform:
    uppercase;

  letter-spacing:
    0.04em;
}


.manufactura-aumentos-metric > strong {
  color:
    var(--aumentos-text);

  font-size:
    26px;

  font-weight:
    800;

  line-height:
    1.05;

  letter-spacing:
    -0.025em;
}


.manufactura-aumentos-metric > small {
  color:
    var(--aumentos-text-muted);

  font-size:
    12px;

  line-height:
    1.4;
}


.manufactura-aumentos-metric.is-loading {
  overflow:
    hidden;
}


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

.manufactura-aumentos-workspace {
  width:
    100%;

  min-width:
    0;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    14px;

  background:
    var(--aumentos-surface);

  overflow:
    hidden;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.manufactura-aumentos-toolbar {
  width:
    100%;

  min-width:
    0;

  padding:
    12px;

  border-bottom:
    1px solid
    var(--aumentos-border);

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  box-sizing:
    border-box;
}


.manufactura-aumentos-search {
  width:
    min(
      100%,
      620px
    );

  min-width:
    220px;

  height:
    40px;

  padding:
    0 10px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    10px;

  background:
    var(--aumentos-surface-2);

  display:
    flex;

  align-items:
    center;

  gap:
    8px;

  color:
    var(--aumentos-text-muted);
}


.manufactura-aumentos-search:focus-within {
  border-color:
    var(--aumentos-accent);
}


.manufactura-aumentos-search input {
  min-width:
    0;

  flex:
    1;

  border:
    0;

  outline:
    0;

  background:
    transparent;

  color:
    var(--aumentos-text);

  font:
    inherit;

  font-size:
    13px;
}


.manufactura-aumentos-search input::placeholder {
  color:
    var(--aumentos-text-muted);
}


.manufactura-aumentos-search button {
  width:
    28px;

  height:
    28px;

  padding:
    0;

  border:
    0;

  background:
    transparent;

  color:
    var(--aumentos-text-muted);

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  cursor:
    pointer;
}


.manufactura-aumentos-search button:hover {
  color:
    var(--aumentos-text);
}


.manufactura-aumentos-toolbar__actions {
  display:
    flex;

  align-items:
    center;

  gap:
    8px;
}


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

.manufactura-aumentos-filter-panel {
  padding:
    14px;

  border-bottom:
    1px solid
    var(--aumentos-border);

  background:
    var(--aumentos-surface-2);
}


.manufactura-aumentos-filter-panel[hidden] {
  display:
    none !important;
}


.manufactura-aumentos-filter-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap:
    12px;
}


.manufactura-aumentos-field {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    6px;
}


.manufactura-aumentos-field > span {
  color:
    var(--aumentos-text-secondary);

  font-size:
    12px;

  font-weight:
    700;
}


.manufactura-aumentos-field input,
.manufactura-aumentos-field select {
  width:
    100%;

  min-width:
    0;

  height:
    40px;

  padding:
    0 11px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    9px;

  outline:
    0;

  background:
    var(--aumentos-surface);

  color:
    var(--aumentos-text);

  font:
    inherit;

  font-size:
    13px;

  box-sizing:
    border-box;
}


.manufactura-aumentos-field input:focus,
.manufactura-aumentos-field select:focus {
  border-color:
    var(--aumentos-accent);
}


.manufactura-aumentos-filter-actions {
  margin-top:
    12px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    8px;
}


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

.manufactura-aumentos-active-filters {
  width:
    100%;

  min-width:
    0;

  padding:
    0 12px;

  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    7px;

  box-sizing:
    border-box;
}


.manufactura-aumentos-active-filters:not(:empty) {
  padding-top:
    10px;

  padding-bottom:
    10px;

  border-bottom:
    1px solid
    var(--aumentos-border);
}


.manufactura-aumentos-filter-chip {
  min-height:
    30px;

  padding:
    0 9px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    999px;

  background:
    var(--aumentos-surface-2);

  color:
    var(--aumentos-text-secondary);

  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  font:
    inherit;

  font-size:
    12px;

  cursor:
    pointer;
}


.manufactura-aumentos-filter-chip:hover {
  border-color:
    var(--aumentos-border-strong);

  color:
    var(--aumentos-text);
}


.manufactura-aumentos-filter-chip .icon {
  width:
    14px;

  height:
    14px;
}


/* =========================================================
   TABLA · CONTENEDOR
   ========================================================= */

.manufactura-aumentos-table-wrap {
  width:
    100%;

  min-width:
    0;
}


.manufactura-aumentos-data-table-scroll {
  width:
    100%;

  min-width:
    0;

  overflow-x:
    auto;

  overflow-y:
    visible;
}


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

.manufactura-aumentos-data-table {
  width:
    100%;

  min-width:
    1120px;

  border-collapse:
    collapse;

  table-layout:
    auto;

  color:
    var(--aumentos-text);
}


.manufactura-aumentos-data-table th,
.manufactura-aumentos-data-table td {
  padding:
    11px 12px;

  border-bottom:
    1px solid
    var(--aumentos-border);

  text-align:
    left;

  vertical-align:
    middle;

  white-space:
    nowrap;
}


.manufactura-aumentos-data-table th {
  position:
    sticky;

  top:
    0;

  z-index:
    2;

  background:
    var(--aumentos-surface-2);

  color:
    var(--aumentos-text-secondary);

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    0.04em;

  text-transform:
    uppercase;
}


.manufactura-aumentos-data-table td {
  background:
    var(--aumentos-surface);

  font-size:
    13px;
}


.manufactura-aumentos-data-table tbody tr:last-child td {
  border-bottom:
    0;
}


.manufactura-aumentos-data-table tbody tr:hover td {
  background:
    var(--aumentos-surface-2);
}


.manufactura-aumentos-data-table .is-numeric {
  text-align:
    right;
}


.manufactura-aumentos-data-table .is-actions {
  width:
    96px;

  text-align:
    right;
}


/* =========================================================
   TABLA · PRIMARY
   ========================================================= */

.manufactura-aumentos-table-primary {
  min-width:
    0;

  max-width:
    320px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.manufactura-aumentos-table-primary strong {
  overflow:
    hidden;

  color:
    var(--aumentos-text);

  font-size:
    13px;

  font-weight:
    700;

  text-overflow:
    ellipsis;
}


.manufactura-aumentos-table-primary small {
  overflow:
    hidden;

  color:
    var(--aumentos-text-muted);

  font-size:
    11px;

  text-overflow:
    ellipsis;
}


/* =========================================================
   CÓDIGO
   ========================================================= */

.manufactura-aumentos-code {
  display:
    inline-flex;

  align-items:
    center;

  min-height:
    26px;

  padding:
    0 8px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    7px;

  background:
    var(--aumentos-surface-2);

  color:
    var(--aumentos-text-secondary);

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size:
    11px;

  font-weight:
    700;
}


/* =========================================================
   AUMENTO
   ========================================================= */

.manufactura-aumentos-change {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-height:
    28px;

  padding:
    0 9px;

  border-radius:
    999px;

  font-size:
    12px;

  font-weight:
    800;
}


.manufactura-aumentos-change.is-positive {
  background:
    var(--aumentos-success-soft);

  color:
    var(--aumentos-success);
}


/* =========================================================
   MONEDA
   ========================================================= */

.manufactura-aumentos-currency {
  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  min-width:
    42px;

  min-height:
    26px;

  padding:
    0 8px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    7px;

  background:
    var(--aumentos-surface-2);

  color:
    var(--aumentos-text-secondary);

  font-size:
    11px;

  font-weight:
    800;
}


/* =========================================================
   ORIGEN
   ========================================================= */

.manufactura-aumentos-origin {
  display:
    inline-flex;

  align-items:
    center;

  min-height:
    26px;

  padding:
    0 8px;

  border-radius:
    7px;

  background:
    var(--aumentos-accent-soft);

  color:
    var(--aumentos-accent);

  font-size:
    11px;

  font-weight:
    800;

  text-transform:
    uppercase;
}


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

.manufactura-aumentos-table-actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    5px;
}


.manufactura-aumentos-table-actions
.manufactura-aumentos-icon-btn {
  width:
    32px;

  height:
    32px;

  border-radius:
    8px;
}


/* =========================================================
   EMPTY
   ========================================================= */

.manufactura-aumentos-empty,
.manufactura-aumentos-inline-empty {
  min-height:
    260px;

  padding:
    28px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  text-align:
    center;

  color:
    var(--aumentos-text-secondary);
}


.manufactura-aumentos-empty > .icon,
.manufactura-aumentos-inline-empty > .icon {
  width:
    28px;

  height:
    28px;

  margin-bottom:
    4px;

  color:
    var(--aumentos-text-muted);
}


.manufactura-aumentos-empty strong,
.manufactura-aumentos-inline-empty strong {
  color:
    var(--aumentos-text);

  font-size:
    15px;

  font-weight:
    800;
}


.manufactura-aumentos-empty p,
.manufactura-aumentos-inline-empty p {
  max-width:
    540px;

  margin:
    0;

  color:
    var(--aumentos-text-secondary);

  font-size:
    13px;

  line-height:
    1.55;
}


/* =========================================================
   SKELETON
   ========================================================= */

.manufactura-aumentos-skeleton {
  display:
    block;

  width:
    100%;

  height:
    13px;

  border-radius:
    6px;

  background:
    color-mix(
      in srgb,
      var(--aumentos-border) 70%,
      transparent
    );
}


.manufactura-aumentos-data-table tr.is-loading td {
  height:
    44px;
}


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

.manufactura-aumentos-pagination {
  min-height:
    56px;

  padding:
    10px 12px;

  border-top:
    1px solid
    var(--aumentos-border);

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  box-sizing:
    border-box;
}


.manufactura-aumentos-pagination__info {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;

  color:
    var(--aumentos-text-secondary);

  font-size:
    12px;
}


.manufactura-aumentos-pagination__info strong {
  color:
    var(--aumentos-text);
}


.manufactura-aumentos-pagination__info small {
  color:
    var(--aumentos-text-muted);

  font-size:
    11px;
}


.manufactura-aumentos-pagination__buttons {
  display:
    flex;

  align-items:
    center;

  gap:
    5px;
}


.manufactura-aumentos-pagination__buttons button {
  width:
    32px;

  height:
    32px;

  padding:
    0;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    8px;

  background:
    var(--aumentos-surface);

  color:
    var(--aumentos-text);

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  cursor:
    pointer;
}


.manufactura-aumentos-pagination__buttons button:hover:not(:disabled) {
  background:
    var(--aumentos-surface-2);

  border-color:
    var(--aumentos-border-strong);
}


.manufactura-aumentos-pagination__buttons button:disabled {
  opacity:
    0.35;

  cursor:
    not-allowed;
}


.manufactura-aumentos-pagination__buttons > span {
  min-width:
    34px;

  text-align:
    center;

  color:
    var(--aumentos-text);

  font-size:
    12px;

  font-weight:
    800;
}


/* =========================================================
   ACCESO DENEGADO
   ========================================================= */

.manufactura-aumentos-denied {
  min-height:
    320px;

  padding:
    28px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    14px;

  background:
    var(--aumentos-surface);

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    14px;
}


.manufactura-aumentos-denied__icon {
  width:
    48px;

  height:
    48px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    12px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  color:
    var(--aumentos-warning);

  flex:
    0 0 auto;
}


.manufactura-aumentos-denied > div {
  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;
}


.manufactura-aumentos-denied > div > span {
  color:
    var(--aumentos-text-muted);

  font-size:
    11px;

  font-weight:
    800;

  text-transform:
    uppercase;
}


.manufactura-aumentos-denied strong {
  color:
    var(--aumentos-text);

  font-size:
    16px;
}


.manufactura-aumentos-denied p {
  margin:
    0;

  color:
    var(--aumentos-text-secondary);

  font-size:
    13px;
}


/* =========================================================
   FIN · PARTE 1 DE 2
   ========================================================= */
   /* =========================================================
   PARTE 2 DE 2

   MODALES
   HISTORIAL
   DETALLE
   TOAST
   DARK MODE
   RESPONSIVE
   ========================================================= */


/* =========================================================
   MODAL · ROOT
   ========================================================= */

.manufactura-aumentos-modal-mount {
  position:
    fixed;

  inset:
    0;

  z-index:
    9999;

  display:
    none;

  pointer-events:
    none;
}


.manufactura-aumentos-modal-mount.is-open {
  display:
    block;

  pointer-events:
    auto;
}


/* =========================================================
   MODAL · BACKDROP
   ========================================================= */

.manufactura-aumentos-modal-backdrop {
  position:
    absolute;

  inset:
    0;

  background:
    rgba(
      0,
      0,
      0,
      0.56
    );
}


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

.manufactura-aumentos-modal {
  position:
    absolute;

  top:
    50%;

  left:
    50%;

  width:
    min(
      calc(
        100vw - 32px
      ),
      760px
    );

  max-height:
    min(
      88vh,
      900px
    );

  transform:
    translate(
      -50%,
      -50%
    );

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    16px;

  background:
    var(--aumentos-surface);

  color:
    var(--aumentos-text);

  overflow:
    hidden;

  display:
    flex;

  flex-direction:
    column;
}


.manufactura-aumentos-modal--medium {
  width:
    min(
      calc(
        100vw - 32px
      ),
      760px
    );
}


.manufactura-aumentos-modal--large {
  width:
    min(
      calc(
        100vw - 32px
      ),
      1180px
    );
}


/* =========================================================
   MODAL · HEAD
   ========================================================= */

.manufactura-aumentos-modal__head {
  min-height:
    74px;

  padding:
    14px 16px;

  border-bottom:
    1px solid
    var(--aumentos-border);

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  flex:
    0 0 auto;
}


.manufactura-aumentos-modal__title {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    12px;
}


.manufactura-aumentos-modal__icon {
  width:
    40px;

  height:
    40px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    10px;

  background:
    var(--aumentos-surface-2);

  color:
    var(--aumentos-accent);

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;
}


.manufactura-aumentos-modal__title > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}


.manufactura-aumentos-modal__title h2 {
  margin:
    0;

  overflow:
    hidden;

  color:
    var(--aumentos-text);

  font-size:
    18px;

  font-weight:
    800;

  line-height:
    1.2;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.manufactura-aumentos-modal__title p {
  margin:
    0;

  color:
    var(--aumentos-text-secondary);

  font-size:
    12px;

  line-height:
    1.45;
}


/* =========================================================
   MODAL · BODY
   ========================================================= */

.manufactura-aumentos-modal__body {
  min-width:
    0;

  min-height:
    0;

  flex:
    1;

  overflow-y:
    auto;

  overflow-x:
    hidden;

  padding:
    16px;
}


/* =========================================================
   MODAL · FOOTER
   ========================================================= */

.manufactura-aumentos-modal__footer {
  min-height:
    58px;

  padding:
    10px 14px;

  border-top:
    1px solid
    var(--aumentos-border);

  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  gap:
    8px;

  flex:
    0 0 auto;
}


/* =========================================================
   MODAL LOADING
   ========================================================= */

.manufactura-aumentos-modal-loading {
  min-height:
    240px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    10px;

  color:
    var(--aumentos-text-secondary);

  font-size:
    13px;
}


.manufactura-aumentos-modal-loading .icon {
  width:
    24px;

  height:
    24px;
}


/* =========================================================
   HISTORIAL
   ========================================================= */

.manufactura-aumentos-history {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    8px;
}


/* =========================================================
   HISTORIAL · ITEM
   ========================================================= */

.manufactura-aumentos-history-item {
  width:
    100%;

  min-width:
    0;

  padding:
    11px 12px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    11px;

  background:
    var(--aumentos-surface-2);

  display:
    grid;

  grid-template-columns:
    minmax(
      180px,
      2fr
    )
    minmax(
      110px,
      1fr
    )
    minmax(
      110px,
      1fr
    )
    minmax(
      90px,
      0.8fr
    )
    minmax(
      100px,
      0.9fr
    )
    minmax(
      90px,
      0.7fr
    )
    42px;

  align-items:
    center;

  gap:
    10px;

  box-sizing:
    border-box;
}


.manufactura-aumentos-history-item:hover {
  border-color:
    var(--aumentos-border-strong);
}


/* =========================================================
   HISTORIAL · COLUMNAS
   ========================================================= */

.manufactura-aumentos-history-item__insumo,
.manufactura-aumentos-history-item__price,
.manufactura-aumentos-history-item__change,
.manufactura-aumentos-history-item__date,
.manufactura-aumentos-history-item__status {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.manufactura-aumentos-history-item__insumo > span,
.manufactura-aumentos-history-item__price > span,
.manufactura-aumentos-history-item__change > span,
.manufactura-aumentos-history-item__date > span {
  color:
    var(--aumentos-text-muted);

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.04em;

  text-transform:
    uppercase;
}


.manufactura-aumentos-history-item__insumo strong,
.manufactura-aumentos-history-item__price strong,
.manufactura-aumentos-history-item__change strong,
.manufactura-aumentos-history-item__date strong {
  overflow:
    hidden;

  color:
    var(--aumentos-text);

  font-size:
    12px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.manufactura-aumentos-history-item__insumo small {
  overflow:
    hidden;

  color:
    var(--aumentos-text-muted);

  font-size:
    10px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.manufactura-aumentos-history-item__change .is-positive {
  color:
    var(--aumentos-success);
}


.manufactura-aumentos-history-item__status {
  align-items:
    flex-start;
}


.manufactura-aumentos-history-item__status small {
  margin-top:
    3px;

  color:
    var(--aumentos-text-muted);

  font-size:
    9px;

  font-weight:
    800;

  text-transform:
    uppercase;
}


.manufactura-aumentos-history-item__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;
}


.manufactura-aumentos-history-item__actions
.manufactura-aumentos-icon-btn {
  width:
    32px;

  height:
    32px;

  border-radius:
    8px;
}


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

.manufactura-aumentos-detail {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    14px;
}


/* =========================================================
   DETALLE · HERO
   ========================================================= */

.manufactura-aumentos-detail__hero {
  min-height:
    126px;

  padding:
    18px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    13px;

  background:
    var(--aumentos-surface-2);

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  text-align:
    center;
}


.manufactura-aumentos-detail__hero > span {
  color:
    var(--aumentos-text-secondary);

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    0.05em;

  text-transform:
    uppercase;
}


.manufactura-aumentos-detail__hero > strong {
  color:
    var(--aumentos-text);

  font-size:
    34px;

  font-weight:
    850;

  line-height:
    1;

  letter-spacing:
    -0.04em;
}


.manufactura-aumentos-detail__hero > strong.is-positive {
  color:
    var(--aumentos-success);
}


.manufactura-aumentos-detail__hero > small {
  color:
    var(--aumentos-text-muted);

  font-size:
    11px;
}


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

.manufactura-aumentos-detail-grid {
  display:
    grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    8px;
}


.manufactura-aumentos-detail-grid article {
  min-width:
    0;

  min-height:
    76px;

  padding:
    11px 12px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    10px;

  background:
    var(--aumentos-surface);

  display:
    flex;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    4px;
}


.manufactura-aumentos-detail-grid article > span {
  color:
    var(--aumentos-text-muted);

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.04em;

  text-transform:
    uppercase;
}


.manufactura-aumentos-detail-grid article > strong {
  overflow:
    hidden;

  color:
    var(--aumentos-text);

  font-size:
    13px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.manufactura-aumentos-detail-grid article > strong.is-positive {
  color:
    var(--aumentos-success);
}


/* =========================================================
   DETALLE · BLOQUES
   ========================================================= */

.manufactura-aumentos-detail-block {
  padding:
    12px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    10px;

  background:
    var(--aumentos-surface-2);

  display:
    flex;

  flex-direction:
    column;

  gap:
    6px;
}


.manufactura-aumentos-detail-block > span {
  color:
    var(--aumentos-text-muted);

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.04em;

  text-transform:
    uppercase;
}


.manufactura-aumentos-detail-block p {
  margin:
    0;

  color:
    var(--aumentos-text-secondary);

  font-size:
    12px;

  line-height:
    1.55;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


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

.manufactura-aumentos-toast {
  position:
    fixed;

  right:
    22px;

  bottom:
    22px;

  z-index:
    11000;

  min-width:
    260px;

  max-width:
    min(
      420px,
      calc(
        100vw - 32px
      )
    );

  min-height:
    46px;

  padding:
    10px 12px;

  border:
    1px solid
    var(--aumentos-border);

  border-radius:
    11px;

  background:
    var(--aumentos-surface);

  color:
    var(--aumentos-text);

  display:
    flex;

  align-items:
    center;

  gap:
    9px;

  opacity:
    0;

  visibility:
    hidden;

  transform:
    translateY(
      8px
    );

  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;
}


.manufactura-aumentos-toast.is-visible {
  opacity:
    1;

  visibility:
    visible;

  transform:
    translateY(
      0
    );
}


.manufactura-aumentos-toast__icon {
  width:
    28px;

  height:
    28px;

  border-radius:
    8px;

  background:
    var(--aumentos-surface-2);

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;
}


.manufactura-aumentos-toast__message {
  min-width:
    0;

  color:
    var(--aumentos-text);

  font-size:
    12px;

  font-weight:
    650;

  line-height:
    1.45;
}


.manufactura-aumentos-toast.is-success
.manufactura-aumentos-toast__icon {
  color:
    var(--aumentos-success);

  background:
    var(--aumentos-success-soft);
}


.manufactura-aumentos-toast.is-error
.manufactura-aumentos-toast__icon {
  color:
    var(--aumentos-danger);

  background:
    var(--aumentos-danger-soft);
}


.manufactura-aumentos-toast.is-warning
.manufactura-aumentos-toast__icon {
  color:
    var(--aumentos-warning);

  background:
    var(--aumentos-warning-soft);
}


.manufactura-aumentos-toast.is-info
.manufactura-aumentos-toast__icon {
  color:
    var(--aumentos-accent);

  background:
    var(--aumentos-accent-soft);
}


/* =========================================================
   MODAL OPEN
   ========================================================= */

html.manufactura-aumentos-modal-open,
html.manufactura-aumentos-modal-open body {
  overflow:
    hidden;
}


/* =========================================================
   SPINNER
   ========================================================= */

.manufactura-aumentos-page .is-spinning,
.manufactura-aumentos-modal .is-spinning,
.manufactura-aumentos-toast .is-spinning {
  animation:
    manufacturaAumentosSpin
    0.85s
    linear
    infinite;
}


@keyframes manufacturaAumentosSpin {
  from {
    transform:
      rotate(
        0deg
      );
  }

  to {
    transform:
      rotate(
        360deg
      );
  }
}


/* =========================================================
   DARK MODE

   Soporta varias convenciones posibles del Hub.
   ========================================================= */

html[data-theme="dark"]
.manufactura-aumentos-page,
html.dark
.manufactura-aumentos-page,
body.dark
.manufactura-aumentos-page {
  --aumentos-bg:
    #050505;

  --aumentos-surface:
    #0b0b0b;

  --aumentos-surface-2:
    #101010;

  --aumentos-border:
    #222222;

  --aumentos-border-strong:
    #333333;

  --aumentos-text:
    #f3f3f3;

  --aumentos-text-secondary:
    #a9a9a9;

  --aumentos-text-muted:
    #777777;
}


/* =========================================================
   DARK · MODAL / TOAST

   El modal vive fuera de .manufactura-aumentos-page.
   Por eso definimos variables también ahí.
   ========================================================= */

html[data-theme="dark"]
.manufactura-aumentos-modal,
html.dark
.manufactura-aumentos-modal,
body.dark
.manufactura-aumentos-modal,
html[data-theme="dark"]
.manufactura-aumentos-toast,
html.dark
.manufactura-aumentos-toast,
body.dark
.manufactura-aumentos-toast {
  --aumentos-surface:
    #0b0b0b;

  --aumentos-surface-2:
    #101010;

  --aumentos-border:
    #222222;

  --aumentos-border-strong:
    #333333;

  --aumentos-text:
    #f3f3f3;

  --aumentos-text-secondary:
    #a9a9a9;

  --aumentos-text-muted:
    #777777;

  --aumentos-accent:
    var(
      --accent-color,
      #4d8df7
    );

  --aumentos-accent-soft:
    color-mix(
      in srgb,
      var(--aumentos-accent) 14%,
      transparent
    );

  --aumentos-success:
    #52b978;

  --aumentos-success-soft:
    rgba(
      82,
      185,
      120,
      0.12
    );

  --aumentos-danger:
    #e26363;

  --aumentos-danger-soft:
    rgba(
      226,
      99,
      99,
      0.12
    );

  --aumentos-warning:
    #d89a33;

  --aumentos-warning-soft:
    rgba(
      216,
      154,
      51,
      0.12
    );
}


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

.manufactura-aumentos-data-table-scroll,
.manufactura-aumentos-modal__body {
  scrollbar-width:
    thin;

  scrollbar-color:
    var(--aumentos-border-strong)
    transparent;
}


.manufactura-aumentos-data-table-scroll::-webkit-scrollbar,
.manufactura-aumentos-modal__body::-webkit-scrollbar {
  width:
    8px;

  height:
    8px;
}


.manufactura-aumentos-data-table-scroll::-webkit-scrollbar-track,
.manufactura-aumentos-modal__body::-webkit-scrollbar-track {
  background:
    transparent;
}


.manufactura-aumentos-data-table-scroll::-webkit-scrollbar-thumb,
.manufactura-aumentos-modal__body::-webkit-scrollbar-thumb {
  border-radius:
    999px;

  background:
    var(--aumentos-border-strong);
}


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

@media (
  max-width:
    1200px
) {
  .manufactura-aumentos-page {
    padding:
      18px;
  }


  .manufactura-aumentos-history-item {
    grid-template-columns:
      minmax(
        180px,
        2fr
      )
      minmax(
        100px,
        1fr
      )
      minmax(
        100px,
        1fr
      )
      minmax(
        86px,
        0.8fr
      )
      minmax(
        94px,
        0.9fr
      )
      72px
      38px;
  }
}


/* =========================================================
   RESPONSIVE · <= 980
   ========================================================= */

@media (
  max-width:
    980px
) {
  .manufactura-aumentos-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .manufactura-aumentos-filter-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );
  }


  .manufactura-aumentos-history-item {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      );

    align-items:
      start;
  }


  .manufactura-aumentos-history-item__insumo {
    grid-column:
      1 / -1;
  }


  .manufactura-aumentos-history-item__actions {
    grid-column:
      1 / -1;

    justify-content:
      flex-start;
  }
}


/* =========================================================
   RESPONSIVE · <= 760
   ========================================================= */

@media (
  max-width:
    760px
) {
  .manufactura-aumentos-page {
    gap:
      14px;

    padding:
      14px;
  }


  .manufactura-aumentos-head {
    flex-direction:
      column;
  }


  .manufactura-aumentos-actions {
    width:
      100%;

    justify-content:
      flex-end;
  }


  .manufactura-aumentos-toolbar {
    align-items:
      stretch;

    flex-direction:
      column;
  }


  .manufactura-aumentos-search {
    width:
      100%;

    min-width:
      0;
  }


  .manufactura-aumentos-toolbar__actions {
    justify-content:
      flex-end;
  }


  .manufactura-aumentos-filter-grid {
    grid-template-columns:
      1fr;
  }


  .manufactura-aumentos-filter-actions {
    justify-content:
      stretch;
  }


  .manufactura-aumentos-filter-actions
  .manufactura-aumentos-btn {
    flex:
      1;
  }


  .manufactura-aumentos-pagination {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .manufactura-aumentos-pagination__buttons {
    width:
      100%;

    justify-content:
      flex-end;
  }


  .manufactura-aumentos-detail-grid {
    grid-template-columns:
      1fr;
  }


  .manufactura-aumentos-modal {
    width:
      calc(
        100vw - 20px
      );

    max-height:
      calc(
        100vh - 20px
      );

    border-radius:
      13px;
  }


  .manufactura-aumentos-modal--medium,
  .manufactura-aumentos-modal--large {
    width:
      calc(
        100vw - 20px
      );
  }


  .manufactura-aumentos-modal__head {
    padding:
      12px;
  }


  .manufactura-aumentos-modal__title h2 {
    font-size:
      16px;
  }


  .manufactura-aumentos-modal__body {
    padding:
      12px;
  }


  .manufactura-aumentos-toast {
    right:
      12px;

    bottom:
      12px;

    left:
      12px;

    min-width:
      0;

    max-width:
      none;
  }
}


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

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


  .manufactura-aumentos-metric {
    min-height:
      92px;
  }


  .manufactura-aumentos-brand {
    gap:
      10px;
  }


  .manufactura-aumentos-brand__icon {
    width:
      40px;

    height:
      40px;
  }


  .manufactura-aumentos-brand__copy h1 {
    font-size:
      24px;
  }


  .manufactura-aumentos-actions {
    justify-content:
      stretch;
  }


  .manufactura-aumentos-actions
  .manufactura-aumentos-btn {
    flex:
      1;
  }


  .manufactura-aumentos-history-item {
    grid-template-columns:
      1fr;
  }


  .manufactura-aumentos-history-item__insumo,
  .manufactura-aumentos-history-item__actions {
    grid-column:
      auto;
  }


  .manufactura-aumentos-history-item__actions {
    justify-content:
      flex-end;
  }


  .manufactura-aumentos-detail__hero > strong {
    font-size:
      30px;
  }


  .manufactura-aumentos-denied {
    align-items:
      flex-start;

    flex-direction:
      column;
  }
}


/* =========================================================
   FIN · WIRTZ HUB · MANUFACTURA · AUMENTOS CSS
   ========================================================= */