/* =========================================================
   WIRTZ HUB · MANUFACTURA · APROBACIONES

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

   RESPONSABILIDAD:
   - Layout general
   - Header
   - Métricas
   - Filtros
   - Listado
   - Detalle
   - Información
   - Opciones de compra
   - Selección
   - Decisión
   - Modales
   - Responsive

   ESTILO:
   - Moderno
   - Minimalista
   - Industrial
   - Dark real
   - Sin glow
   - Sin blur
   - Sin sombras decorativas
   ========================================================= */


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

.manufactura-aprobaciones-page {
  --ma-bg:
    var(
      --bg,
      #f4f5f7
    );

  --ma-panel:
    var(
      --panel,
      #ffffff
    );

  --ma-panel-soft:
    var(
      --panel-soft,
      #f8f9fa
    );

  --ma-panel-strong:
    var(
      --panel-strong,
      #f1f3f5
    );

  --ma-text:
    var(
      --text,
      #15171a
    );

  --ma-muted:
    var(
      --muted,
      #70757d
    );

  --ma-subtle:
    var(
      --subtle,
      #9aa0a8
    );

  --ma-line:
    var(
      --line,
      #dfe3e8
    );

  --ma-line-strong:
    var(
      --line-strong,
      #cbd1d8
    );

  --ma-accent:
    #181b20;

  --ma-accent-contrast:
    #ffffff;

  --ma-success:
    #238636;

  --ma-success-soft:
    rgba(
      35,
      134,
      54,
      0.09
    );

  --ma-warning:
    #c27a00;

  --ma-warning-soft:
    rgba(
      194,
      122,
      0,
      0.09
    );

  --ma-danger:
    #d1242f;

  --ma-danger-soft:
    rgba(
      209,
      36,
      47,
      0.08
    );

  --ma-info:
    #2563eb;

  --ma-info-soft:
    rgba(
      37,
      99,
      235,
      0.08
    );

  width:
    100%;

  min-width:
    0;

  min-height:
    100%;

  display:
    flex;

  flex-direction:
    column;

  gap:
    14px;

  color:
    var(
      --ma-text
    );

  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


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

html[data-theme="dark"]
.manufactura-aprobaciones-page {
  --ma-bg:
    #000000;

  --ma-panel:
    #08090a;

  --ma-panel-soft:
    #0d0f11;

  --ma-panel-strong:
    #121417;

  --ma-text:
    #f4f5f6;

  --ma-muted:
    #9da3ab;

  --ma-subtle:
    #737982;

  --ma-line:
    #22262b;

  --ma-line-strong:
    #30353b;

  --ma-accent:
    #f2f3f5;

  --ma-accent-contrast:
    #050607;

  --ma-success:
    #46b965;

  --ma-success-soft:
    rgba(
      70,
      185,
      101,
      0.11
    );

  --ma-warning:
    #e4a229;

  --ma-warning-soft:
    rgba(
      228,
      162,
      41,
      0.11
    );

  --ma-danger:
    #f05b63;

  --ma-danger-soft:
    rgba(
      240,
      91,
      99,
      0.11
    );

  --ma-info:
    #6d9df8;

  --ma-info-soft:
    rgba(
      109,
      157,
      248,
      0.1
    );
}


/* =========================================================
   BASE
   ========================================================= */

.manufactura-aprobaciones-page *,
.manufactura-aprobaciones-page *::before,
.manufactura-aprobaciones-page *::after {
  box-sizing:
    border-box;
}

.manufactura-aprobaciones-page button,
.manufactura-aprobaciones-page input,
.manufactura-aprobaciones-page select,
.manufactura-aprobaciones-page textarea {
  font:
    inherit;
}

.manufactura-aprobaciones-page button {
  -webkit-tap-highlight-color:
    transparent;
}

.manufactura-aprobaciones-page .icon {
  width:
    17px;

  height:
    17px;

  flex:
    0 0 auto;

  stroke-width:
    1.8;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.manufactura-aprobaciones-page * {
  scrollbar-width:
    thin;

  scrollbar-color:
    var(
      --ma-line-strong
    )
    transparent;
}

.manufactura-aprobaciones-page *::-webkit-scrollbar {
  width:
    8px;

  height:
    8px;
}

.manufactura-aprobaciones-page *::-webkit-scrollbar-track {
  background:
    transparent;
}

.manufactura-aprobaciones-page *::-webkit-scrollbar-thumb {
  background:
    var(
      --ma-line-strong
    );

  border-radius:
    999px;

  border:
    2px solid
    transparent;

  background-clip:
    padding-box;
}


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

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

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    8px
    12px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  background:
    var(
      --ma-panel
    );

  color:
    var(
      --ma-text
    );

  font-size:
    13px;

  font-weight:
    700;

  line-height:
    1;

  text-decoration:
    none;

  white-space:
    nowrap;

  cursor:
    pointer;

  transition:
    background-color
    150ms
    ease,
    border-color
    150ms
    ease,
    color
    150ms
    ease,
    transform
    120ms
    ease;
}

.manufactura-aprobaciones-btn:hover {
  background:
    var(
      --ma-panel-strong
    );

  border-color:
    var(
      --ma-line-strong
    );
}

.manufactura-aprobaciones-btn:active {
  transform:
    translateY(
      1px
    );
}

.manufactura-aprobaciones-btn:disabled {
  opacity:
    0.45;

  cursor:
    not-allowed;

  transform:
    none;
}

.manufactura-aprobaciones-btn.is-primary {
  background:
    var(
      --ma-accent
    );

  border-color:
    var(
      --ma-accent
    );

  color:
    var(
      --ma-accent-contrast
    );
}

.manufactura-aprobaciones-btn.is-success,
.manufactura-aprobaciones-btn.is-selected {
  background:
    var(
      --ma-success-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-success
      )
      45%,
      var(
        --ma-line
      )
    );

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

.manufactura-aprobaciones-btn.is-warning {
  background:
    var(
      --ma-warning-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-warning
      )
      45%,
      var(
        --ma-line
      )
    );

  color:
    var(
      --ma-warning
    );
}

.manufactura-aprobaciones-btn.is-danger {
  background:
    var(
      --ma-danger-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-danger
      )
      45%,
      var(
        --ma-line
      )
    );

  color:
    var(
      --ma-danger
    );
}

.manufactura-aprobaciones-btn.is-pdf {
  cursor:
    default;
}

.manufactura-aprobaciones-btn.is-pdf .icon {
  color:
    var(
      --ma-danger
    );
}

.manufactura-aprobaciones-btn.is-loading {
  pointer-events:
    none;
}


/* =========================================================
   ICON BUTTON
   ========================================================= */

.manufactura-aprobaciones-icon-btn {
  width:
    36px;

  height:
    36px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

  padding:
    0;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  background:
    var(
      --ma-panel
    );

  color:
    var(
      --ma-muted
    );

  cursor:
    pointer;
}

.manufactura-aprobaciones-icon-btn:hover {
  background:
    var(
      --ma-panel-strong
    );

  border-color:
    var(
      --ma-line-strong
    );

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


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

@keyframes manufactura-aprobaciones-spin {
  to {
    transform:
      rotate(
        360deg
      );
  }
}

.manufactura-aprobaciones-page .is-spinning,
.manufactura-aprobaciones-toast .is-spinning {
  animation:
    manufactura-aprobaciones-spin
    800ms
    linear
    infinite;
}


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

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

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    18px;

  padding:
    18px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    16px;

  background:
    var(
      --ma-panel
    );
}

.manufactura-aprobaciones-head__brand {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    13px;
}

.manufactura-aprobaciones-head__icon {
  width:
    44px;

  height:
    44px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    12px;

  background:
    var(
      --ma-panel-soft
    );

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

.manufactura-aprobaciones-head__icon .icon {
  width:
    21px;

  height:
    21px;
}

.manufactura-aprobaciones-head__brand > div {
  min-width:
    0;
}

.manufactura-aprobaciones-head__brand > div > span {
  display:
    block;

  margin-bottom:
    4px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.3;

  letter-spacing:
    0.11em;
}

.manufactura-aprobaciones-head__brand h1 {
  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    clamp(
      22px,
      2vw,
      29px
    );

  font-weight:
    850;

  line-height:
    1.08;

  letter-spacing:
    -0.035em;
}

.manufactura-aprobaciones-head__brand p {
  max-width:
    760px;

  margin:
    7px
    0
    0;

  color:
    var(
      --ma-muted
    );

  font-size:
    13px;

  font-weight:
    500;

  line-height:
    1.55;
}

.manufactura-aprobaciones-head__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    8px;
}


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

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

  min-width:
    0;

  display:
    grid;

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

  gap:
    10px;
}

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

  min-height:
    106px;

  display:
    grid;

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

  align-items:
    start;

  gap:
    11px;

  padding:
    14px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    12px;

  background:
    var(
      --ma-panel
    );

  animation:
    manufactura-aprobaciones-metric-in
    240ms
    ease
    both;

  animation-delay:
    calc(
      var(
        --metric-index,
        0
      )
      *
      30ms
    );
}

@keyframes manufactura-aprobaciones-metric-in {
  from {
    opacity:
      0;

    transform:
      translateY(
        4px
      );
  }

  to {
    opacity:
      1;

    transform:
      translateY(
        0
      );
  }
}

.manufactura-aprobaciones-metric__icon {
  width:
    34px;

  height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  background:
    var(
      --ma-panel-soft
    );

  color:
    var(
      --ma-muted
    );
}

.manufactura-aprobaciones-metric__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.manufactura-aprobaciones-metric__content small {
  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.25;

  letter-spacing:
    0.05em;

  text-transform:
    uppercase;
}

.manufactura-aprobaciones-metric__content strong {
  margin-top:
    3px;

  color:
    var(
      --ma-text
    );

  font-size:
    clamp(
      22px,
      2vw,
      30px
    );

  font-weight:
    850;

  line-height:
    1;

  letter-spacing:
    -0.04em;
}

.manufactura-aprobaciones-metric__content > span {
  margin-top:
    4px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    11px;

  font-weight:
    500;

  line-height:
    1.35;
}

.manufactura-aprobaciones-metric.is-pending {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-warning
      )
      32%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-metric.is-pending
.manufactura-aprobaciones-metric__icon {
  background:
    var(
      --ma-warning-soft
    );

  color:
    var(
      --ma-warning
    );
}

.manufactura-aprobaciones-metric.is-urgent {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-danger
      )
      32%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-metric.is-urgent
.manufactura-aprobaciones-metric__icon {
  background:
    var(
      --ma-danger-soft
    );

  color:
    var(
      --ma-danger
    );
}

.manufactura-aprobaciones-metric.is-high {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-warning
      )
      28%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-metric.is-high
.manufactura-aprobaciones-metric__icon {
  color:
    var(
      --ma-warning
    );
}


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

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

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    minmax(
      280px,
      1.5fr
    )
    minmax(
      170px,
      0.7fr
    )
    minmax(
      170px,
      0.7fr
    )
    auto;

  gap:
    8px;

  padding:
    10px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    12px;

  background:
    var(
      --ma-panel
    );
}

.manufactura-aprobaciones-search {
  position:
    relative;

  min-width:
    0;
}

.manufactura-aprobaciones-search > .icon {
  position:
    absolute;

  top:
    50%;

  left:
    11px;

  z-index:
    1;

  width:
    16px;

  height:
    16px;

  color:
    var(
      --ma-subtle
    );

  pointer-events:
    none;

  transform:
    translateY(
      -50%
    );
}

.manufactura-aprobaciones-search input,
.manufactura-aprobaciones-toolbar select {
  width:
    100%;

  min-width:
    0;

  height:
    38px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  outline:
    none;

  background:
    var(
      --ma-panel-soft
    );

  color:
    var(
      --ma-text
    );

  font-size:
    12px;

  font-weight:
    600;
}

.manufactura-aprobaciones-search input {
  padding:
    0
    12px
    0
    35px;
}

.manufactura-aprobaciones-toolbar select {
  padding:
    0
    32px
    0
    11px;
}

.manufactura-aprobaciones-search input::placeholder {
  color:
    var(
      --ma-subtle
    );
}

.manufactura-aprobaciones-search input:focus,
.manufactura-aprobaciones-toolbar select:focus {
  border-color:
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel
    );
}


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

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

  min-width:
    0;

  min-height:
    620px;

  display:
    grid;

  grid-template-columns:
    minmax(
      330px,
      0.76fr
    )
    minmax(
      0,
      1.7fr
    );

  gap:
    10px;
}


/* =========================================================
   PANEL LISTADO
   ========================================================= */

.manufactura-aprobaciones-list-panel {
  min-width:
    0;

  min-height:
    0;

  display:
    flex;

  flex-direction:
    column;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    16px;

  background:
    var(
      --ma-panel
    );

  overflow:
    hidden;
}

.manufactura-aprobaciones-list-panel__head {
  min-height:
    64px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  padding:
    12px
    13px;

  border-bottom:
    1px solid
    var(
      --ma-line
    );

  background:
    var(
      --ma-panel-soft
    );
}

.manufactura-aprobaciones-list-panel__head > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.manufactura-aprobaciones-list-panel__head > div > span {
  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

.manufactura-aprobaciones-list-panel__head strong {
  color:
    var(
      --ma-text
    );

  font-size:
    14px;

  font-weight:
    800;
}


/* =========================================================
   CONTADOR
   ========================================================= */

.manufactura-aprobaciones-count {
  min-width:
    31px;

  height:
    27px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0
    8px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    8px;

  background:
    var(
      --ma-panel
    );

  color:
    var(
      --ma-text
    );

  font-size:
    11px;

  font-weight:
    800;
}


/* =========================================================
   LISTA SOLICITUDES
   ========================================================= */

.manufactura-aprobaciones-requests {
  min-height:
    0;

  flex:
    1;

  overflow-x:
    hidden;

  overflow-y:
    auto;
}

.manufactura-aprobaciones-request {
  position:
    relative;

  width:
    100%;

  min-width:
    0;

  display:
    grid;

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

  align-items:
    center;

  gap:
    10px;

  padding:
    12px
    13px;

  border:
    0;

  border-bottom:
    1px solid
    var(
      --ma-line
    );

  outline:
    none;

  background:
    transparent;

  color:
    inherit;

  text-align:
    left;

  cursor:
    pointer;

  animation:
    manufactura-aprobaciones-request-in
    220ms
    ease
    both;

  animation-delay:
    calc(
      var(
        --request-index,
        0
      )
      *
      22ms
    );
}

@keyframes manufactura-aprobaciones-request-in {
  from {
    opacity:
      0;

    transform:
      translateX(
        -4px
      );
  }

  to {
    opacity:
      1;

    transform:
      translateX(
        0
      );
  }
}

.manufactura-aprobaciones-request:last-child {
  border-bottom:
    0;
}

.manufactura-aprobaciones-request:hover {
  background:
    var(
      --ma-panel-soft
    );
}

.manufactura-aprobaciones-request.is-selected {
  background:
    var(
      --ma-panel-strong
    );
}

.manufactura-aprobaciones-request.is-selected::before {
  content:
    "";

  position:
    absolute;

  inset:
    8px
    auto
    8px
    0;

  width:
    3px;

  border-radius:
    0
    4px
    4px
    0;

  background:
    var(
      --ma-success
    );
}

.manufactura-aprobaciones-request__main {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}

.manufactura-aprobaciones-request__top {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    7px;
}

.manufactura-aprobaciones-request__top strong {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --ma-text
    );

  font-size:
    13px;

  font-weight:
    800;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-aprobaciones-request__main > small {
  overflow:
    hidden;

  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  font-weight:
    600;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-aprobaciones-request__meta {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    7px
    12px;

  margin-top:
    2px;
}

.manufactura-aprobaciones-request__meta > span {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    4px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    600;
}

.manufactura-aprobaciones-request__meta .icon {
  width:
    12px;

  height:
    12px;
}

.manufactura-aprobaciones-request > .icon {
  width:
    15px;

  height:
    15px;

  color:
    var(
      --ma-subtle
    );
}


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

.manufactura-aprobaciones-priority,
.manufactura-aprobaciones-badge {
  min-height:
    24px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  padding:
    4px
    7px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    7px;

  background:
    var(
      --ma-panel-soft
    );

  color:
    var(
      --ma-muted
    );

  font-size:
    9px;

  font-weight:
    800;

  line-height:
    1;

  white-space:
    nowrap;
}

.manufactura-aprobaciones-priority .icon,
.manufactura-aprobaciones-badge .icon {
  width:
    12px;

  height:
    12px;
}

.manufactura-aprobaciones-priority.is-low {
  color:
    var(
      --ma-muted
    );
}

.manufactura-aprobaciones-priority.is-medium {
  color:
    var(
      --ma-info
    );

  background:
    var(
      --ma-info-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-info
      )
      30%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-priority.is-high {
  color:
    var(
      --ma-warning
    );

  background:
    var(
      --ma-warning-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-warning
      )
      32%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-priority.is-urgent {
  color:
    var(
      --ma-danger
    );

  background:
    var(
      --ma-danger-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-danger
      )
      34%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-badge.is-pending {
  color:
    var(
      --ma-warning
    );

  background:
    var(
      --ma-warning-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-warning
      )
      35%,
      var(
        --ma-line
      )
    );
}

.manufactura-aprobaciones-badge.is-selected {
  color:
    var(
      --ma-success
    );

  background:
    var(
      --ma-success-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --ma-success
      )
      35%,
      var(
        --ma-line
      )
    );
}


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

.manufactura-aprobaciones-detail-panel {
  min-width:
    0;

  min-height:
    620px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    16px;

  background:
    var(
      --ma-panel
    );

  overflow:
    hidden;
}

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

  min-height:
    620px;

  display:
    grid;

  grid-template-rows:
    auto
    minmax(
      0,
      1fr
    );
}


/* =========================================================
   DETALLE VACÍO
   ========================================================= */

.manufactura-aprobaciones-detail-empty {
  width:
    100%;

  min-height:
    620px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    32px;

  text-align:
    center;
}

.manufactura-aprobaciones-detail-empty__icon {
  width:
    46px;

  height:
    46px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    4px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    12px;

  background:
    var(
      --ma-panel-soft
    );

  color:
    var(
      --ma-muted
    );
}

.manufactura-aprobaciones-detail-empty__eyebrow {
  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

.manufactura-aprobaciones-detail-empty strong {
  color:
    var(
      --ma-text
    );

  font-size:
    18px;

  font-weight:
    800;
}

.manufactura-aprobaciones-detail-empty p {
  max-width:
    430px;

  margin:
    0;

  color:
    var(
      --ma-muted
    );

  font-size:
    12px;

  line-height:
    1.55;
}


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

.manufactura-aprobaciones-detail-head {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    16px;

  padding:
    14px;

  border-bottom:
    1px solid
    var(
      --ma-line
    );

  background:
    var(
      --ma-panel
    );
}

.manufactura-aprobaciones-detail-head__identity {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    11px;
}

.manufactura-aprobaciones-detail-head__icon {
  width:
    39px;

  height:
    39px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    10px;

  background:
    var(
      --ma-success-soft
    );

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

.manufactura-aprobaciones-detail-head__identity > div {
  min-width:
    0;
}

.manufactura-aprobaciones-detail-head__eyebrow {
  display:
    block;

  margin-bottom:
    3px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.09em;
}

.manufactura-aprobaciones-detail-head h2 {
  overflow:
    hidden;

  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    19px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -0.025em;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-aprobaciones-detail-head p {
  margin:
    4px
    0
    0;

  color:
    var(
      --ma-muted
    );

  font-size:
    11px;

  font-weight:
    500;
}

.manufactura-aprobaciones-detail-head__status {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    6px;
}


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

.manufactura-aprobaciones-detail__body {
  min-width:
    0;

  min-height:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    12px;

  overflow-x:
    hidden;

  overflow-y:
    auto;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.manufactura-aprobaciones-info-grid {
  min-width:
    0;

  display:
    grid;

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

  gap:
    10px;
}

.manufactura-aprobaciones-info-card {
  min-width:
    0;

  padding:
    13px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    11px;

  background:
    var(
      --ma-panel-soft
    );
}

.manufactura-aprobaciones-info-card.is-full {
  grid-column:
    1 /
    -1;
}

.manufactura-aprobaciones-info-card > header {
  margin-bottom:
    11px;
}

.manufactura-aprobaciones-info-card > header > span {
  display:
    block;

  margin-bottom:
    3px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.09em;
}

.manufactura-aprobaciones-info-card > header h3 {
  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    14px;

  font-weight:
    800;
}

.manufactura-aprobaciones-info-list {
  display:
    grid;

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

  gap:
    8px;
}

.manufactura-aprobaciones-info-item {
  min-width:
    0;

  display:
    grid;

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

  align-items:
    center;

  gap:
    8px;

  padding:
    9px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  background:
    var(
      --ma-panel
    );
}

.manufactura-aprobaciones-info-item > span {
  width:
    28px;

  height:
    28px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    7px;

  background:
    var(
      --ma-panel-soft
    );

  color:
    var(
      --ma-muted
    );
}

.manufactura-aprobaciones-info-item > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    1px;
}

.manufactura-aprobaciones-info-item small {
  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    700;
}

.manufactura-aprobaciones-info-item strong {
  overflow:
    hidden;

  color:
    var(
      --ma-text
    );

  font-size:
    11px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-aprobaciones-long-text {
  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    12px;

  font-weight:
    500;

  line-height:
    1.6;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


/* =========================================================
   SECTION HEAD
   ========================================================= */

.manufactura-aprobaciones-section-head {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    16px;
}

.manufactura-aprobaciones-section-head > div {
  min-width:
    0;
}

.manufactura-aprobaciones-section-head > div > span {
  display:
    block;

  margin-bottom:
    4px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

.manufactura-aprobaciones-section-head h3 {
  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    17px;

  font-weight:
    800;
}

.manufactura-aprobaciones-section-head p {
  max-width:
    680px;

  margin:
    5px
    0
    0;

  color:
    var(
      --ma-muted
    );

  font-size:
    12px;

  line-height:
    1.5;
}


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

.manufactura-aprobaciones-empty {
  min-height:
    210px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  padding:
    24px;

  color:
    var(
      --ma-muted
    );

  text-align:
    center;
}

.manufactura-aprobaciones-empty__icon {
  width:
    42px;

  height:
    42px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    3px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    11px;

  background:
    var(
      --ma-panel-soft
    );

  color:
    var(
      --ma-muted
    );
}

.manufactura-aprobaciones-empty strong {
  color:
    var(
      --ma-text
    );

  font-size:
    14px;

  font-weight:
    800;
}

.manufactura-aprobaciones-empty p {
  max-width:
    390px;

  margin:
    0;

  color:
    var(
      --ma-muted
    );

  font-size:
    11px;

  line-height:
    1.5;
}/* =========================================================
   OPCIONES DE COMPRA
   ========================================================= */

.manufactura-aprobaciones-options-section {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;
}


.manufactura-aprobaciones-options-grid {
  display:
    grid;

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

  gap:
    10px;
}


.manufactura-aprobaciones-option-card {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    13px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    11px;

  background:
    var(
      --ma-panel-soft
    );

  transition:
    border-color
    150ms
    ease,
    background-color
    150ms
    ease;
}


.manufactura-aprobaciones-option-card:hover {
  border-color:
    var(
      --ma-line-strong
    );
}


.manufactura-aprobaciones-option-card.is-selected {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-success
      )
      48%,
      var(
        --ma-line
      )
    );

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


.manufactura-aprobaciones-option-card__head {
  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    10px;
}


.manufactura-aprobaciones-option-card__head > div {
  min-width:
    0;
}


.manufactura-aprobaciones-option-card__head > div > span {
  display:
    block;

  margin-bottom:
    3px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  line-height:
    1.2;

  letter-spacing:
    0.09em;
}


.manufactura-aprobaciones-option-card__head h4 {
  margin:
    0;

  overflow:
    hidden;

  color:
    var(
      --ma-text
    );

  font-size:
    14px;

  font-weight:
    800;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.manufactura-aprobaciones-option-card__head p {
  margin:
    3px
    0
    0;

  overflow:
    hidden;

  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  font-weight:
    600;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   PRECIO OPCIÓN
   ========================================================= */

.manufactura-aprobaciones-option-card__price {
  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;

  padding:
    11px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-option-card__price small {
  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;
}


.manufactura-aprobaciones-option-card__price strong {
  color:
    var(
      --ma-text
    );

  font-size:
    22px;

  font-weight:
    850;

  line-height:
    1.05;

  letter-spacing:
    -0.035em;
}


.manufactura-aprobaciones-option-card__price span {
  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  font-weight:
    600;
}


/* =========================================================
   META OPCIÓN
   ========================================================= */

.manufactura-aprobaciones-option-card__meta {
  display:
    grid;

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

  gap:
    7px;
}


.manufactura-aprobaciones-option-card__meta > div {
  min-width:
    0;

  display:
    grid;

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

  align-items:
    center;

  gap:
    7px;

  padding:
    8px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    8px;

  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-option-card__meta > div > .icon {
  width:
    14px;

  height:
    14px;

  color:
    var(
      --ma-muted
    );
}


.manufactura-aprobaciones-option-card__meta > div > span {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    1px;
}


.manufactura-aprobaciones-option-card__meta small {
  color:
    var(
      --ma-subtle
    );

  font-size:
    8px;

  font-weight:
    700;
}


.manufactura-aprobaciones-option-card__meta strong {
  overflow:
    hidden;

  color:
    var(
      --ma-text
    );

  font-size:
    10px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   DESCRIPCIÓN / NOTAS
   ========================================================= */

.manufactura-aprobaciones-option-card__description {
  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    11px;

  font-weight:
    500;

  line-height:
    1.55;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


.manufactura-aprobaciones-option-card__note {
  display:
    grid;

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

  align-items:
    flex-start;

  gap:
    7px;

  padding:
    9px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    8px;

  background:
    var(
      --ma-panel
    );

  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  line-height:
    1.5;
}


.manufactura-aprobaciones-option-card__note .icon {
  width:
    14px;

  height:
    14px;

  margin-top:
    1px;
}


/* =========================================================
   PRESUPUESTO
   ========================================================= */

.manufactura-aprobaciones-option-card__budget {
  display:
    grid;

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

  gap:
    7px;
}


.manufactura-aprobaciones-option-card__budget > span {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;

  padding:
    8px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    8px;

  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-option-card__budget small {
  color:
    var(
      --ma-subtle
    );

  font-size:
    8px;

  font-weight:
    700;

  text-transform:
    uppercase;
}


.manufactura-aprobaciones-option-card__budget strong {
  overflow:
    hidden;

  color:
    var(
      --ma-text
    );

  font-size:
    10px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   FOOTER OPCIÓN
   ========================================================= */

.manufactura-aprobaciones-option-card__footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  flex-wrap:
    wrap;

  gap:
    8px;

  margin-top:
    auto;

  padding-top:
    2px;
}


.manufactura-aprobaciones-option-card__links {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    6px;
}


/* =========================================================
   DECISIÓN
   ========================================================= */

.manufactura-aprobaciones-decision {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    13px;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    12px;

  background:
    var(
      --ma-panel-soft
    );
}


.manufactura-aprobaciones-selected-summary {
  min-width:
    0;

  display:
    grid;

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

  align-items:
    center;

  gap:
    10px;

  padding:
    11px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(
        --ma-success
      )
      35%,
      var(
        --ma-line
      )
    );

  border-radius:
    10px;

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


.manufactura-aprobaciones-selected-summary.is-empty {
  border-color:
    var(
      --ma-line
    );

  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-selected-summary__icon {
  width:
    36px;

  height:
    36px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  background:
    var(
      --ma-panel
    );

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


.manufactura-aprobaciones-selected-summary.is-empty
.manufactura-aprobaciones-selected-summary__icon {
  color:
    var(
      --ma-muted
    );
}


.manufactura-aprobaciones-selected-summary > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}


.manufactura-aprobaciones-selected-summary small {
  color:
    var(
      --ma-subtle
    );

  font-size:
    8px;

  font-weight:
    800;

  letter-spacing:
    0.08em;
}


.manufactura-aprobaciones-selected-summary strong {
  overflow:
    hidden;

  color:
    var(
      --ma-text
    );

  font-size:
    13px;

  font-weight:
    800;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


.manufactura-aprobaciones-selected-summary > div > span {
  overflow:
    hidden;

  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  font-weight:
    600;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   FORMULARIOS
   ========================================================= */

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}


.manufactura-aprobaciones-field.is-full {
  width:
    100%;
}


.manufactura-aprobaciones-field > span {
  color:
    var(
      --ma-muted
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.3;
}


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

  min-width:
    0;

  border:
    1px solid
    var(
      --ma-line
    );

  border-radius:
    9px;

  outline:
    none;

  background:
    var(
      --ma-panel
    );

  color:
    var(
      --ma-text
    );

  font-size:
    12px;

  font-weight:
    600;
}


.manufactura-aprobaciones-field input,
.manufactura-aprobaciones-field select {
  height:
    39px;

  padding:
    0
    11px;
}


.manufactura-aprobaciones-field textarea {
  min-height:
    92px;

  padding:
    10px
    11px;

  line-height:
    1.5;

  resize:
    vertical;
}


.manufactura-aprobaciones-field input::placeholder,
.manufactura-aprobaciones-field textarea::placeholder {
  color:
    var(
      --ma-subtle
    );
}


.manufactura-aprobaciones-field input:focus,
.manufactura-aprobaciones-field select:focus,
.manufactura-aprobaciones-field textarea:focus {
  border-color:
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel
    );
}


/* =========================================================
   ACCIONES DECISIÓN
   ========================================================= */

.manufactura-aprobaciones-decision__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    7px;

  padding-top:
    2px;
}


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

html.manufactura-aprobaciones-modal-open {
  overflow:
    hidden;
}


.manufactura-aprobaciones-modal {
  position:
    fixed;

  inset:
    0;

  z-index:
    1400;

  display:
    none;

  align-items:
    center;

  justify-content:
    center;

  padding:
    18px;
}


.manufactura-aprobaciones-modal.is-open {
  display:
    flex;
}


.manufactura-aprobaciones-modal__backdrop {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  padding:
    0;

  border:
    0;

  background:
    rgba(
      0,
      0,
      0,
      0.62
    );

  cursor:
    default;
}


.manufactura-aprobaciones-modal__dialog {
  position:
    relative;

  z-index:
    1;

  width:
    min(
      620px,
      100%
    );

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

  display:
    grid;

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

  border:
    1px solid
    var(
      --ma-line-strong
    );

  border-radius:
    14px;

  background:
    var(
      --ma-panel
    );

  color:
    var(
      --ma-text
    );

  overflow:
    hidden;
}


.manufactura-aprobaciones-modal__head {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    15px;

  border-bottom:
    1px solid
    var(
      --ma-line
    );

  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-modal__head > div {
  min-width:
    0;
}


.manufactura-aprobaciones-modal__head > div > span {
  display:
    block;

  margin-bottom:
    4px;

  color:
    var(
      --ma-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}


.manufactura-aprobaciones-modal__head h2 {
  margin:
    0;

  color:
    var(
      --ma-text
    );

  font-size:
    19px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -0.025em;
}


.manufactura-aprobaciones-modal__head p {
  max-width:
    520px;

  margin:
    5px
    0
    0;

  color:
    var(
      --ma-muted
    );

  font-size:
    11px;

  line-height:
    1.5;
}


.manufactura-aprobaciones-modal__body {
  min-height:
    0;

  padding:
    14px;

  overflow-x:
    hidden;

  overflow-y:
    auto;
}


.manufactura-aprobaciones-modal__footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    7px;

  padding:
    11px
    14px;

  border-top:
    1px solid
    var(
      --ma-line
    );

  background:
    var(
      --ma-panel-soft
    );
}


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

.manufactura-aprobaciones-toast {
  position:
    fixed;

  right:
    18px;

  bottom:
    18px;

  z-index:
    1800;

  max-width:
    min(
      390px,
      calc(
        100vw -
        36px
      )
    );

  padding:
    10px
    13px;

  border:
    1px solid
    #30353b;

  border-radius:
    9px;

  background:
    #08090a;

  color:
    #f4f5f6;

  font-family:
    "DM Sans",
    system-ui,
    sans-serif;

  font-size:
    11px;

  font-weight:
    700;

  line-height:
    1.45;

  opacity:
    0;

  pointer-events:
    none;

  transform:
    translateY(
      7px
    );

  transition:
    opacity
    150ms
    ease,
    transform
    150ms
    ease;
}


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

  transform:
    translateY(
      0
    );
}


.manufactura-aprobaciones-toast.is-success {
  border-color:
    #238636;
}


.manufactura-aprobaciones-toast.is-error {
  border-color:
    #d1242f;
}


/* =========================================================
   RESPONSIVE · 1300
   ========================================================= */

@media (
  max-width:
    1300px
) {
  .manufactura-aprobaciones-workspace {
    grid-template-columns:
      minmax(
        300px,
        0.8fr
      )
      minmax(
        0,
        1.45fr
      );
  }

  .manufactura-aprobaciones-options-grid {
    grid-template-columns:
      1fr;
  }
}


/* =========================================================
   RESPONSIVE · 1100
   ========================================================= */

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

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

  .manufactura-aprobaciones-search {
    grid-column:
      1 /
      -1;
  }

  .manufactura-aprobaciones-workspace {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-list-panel,
  .manufactura-aprobaciones-detail-panel,
  .manufactura-aprobaciones-detail,
  .manufactura-aprobaciones-detail-empty {
    min-height:
      auto;
  }

  .manufactura-aprobaciones-requests {
    max-height:
      430px;
  }
}


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

@media (
  max-width:
    760px
) {
  .manufactura-aprobaciones-page {
    gap:
      10px;
  }

  .manufactura-aprobaciones-head {
    flex-direction:
      column;

    padding:
      13px;
  }

  .manufactura-aprobaciones-head__actions {
    width:
      100%;

    justify-content:
      flex-start;
  }

  .manufactura-aprobaciones-head__actions
  .manufactura-aprobaciones-btn {
    width:
      100%;
  }

  .manufactura-aprobaciones-toolbar {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-search {
    grid-column:
      auto;
  }

  .manufactura-aprobaciones-toolbar
  .manufactura-aprobaciones-btn {
    width:
      100%;
  }

  .manufactura-aprobaciones-info-grid {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-info-card.is-full {
    grid-column:
      auto;
  }

  .manufactura-aprobaciones-info-list {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-option-card__meta,
  .manufactura-aprobaciones-option-card__budget {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-option-card__footer {
    align-items:
      stretch;

    flex-direction:
      column;
  }

  .manufactura-aprobaciones-option-card__links {
    width:
      100%;
  }

  .manufactura-aprobaciones-option-card__links
  .manufactura-aprobaciones-btn,
  .manufactura-aprobaciones-option-card__footer
  > .manufactura-aprobaciones-btn {
    width:
      100%;
  }

  .manufactura-aprobaciones-decision__actions {
    align-items:
      stretch;

    flex-direction:
      column;
  }

  .manufactura-aprobaciones-decision__actions
  .manufactura-aprobaciones-btn {
    width:
      100%;
  }

  .manufactura-aprobaciones-modal {
    align-items:
      flex-end;

    padding:
      0;
  }

  .manufactura-aprobaciones-modal__dialog {
    width:
      100%;

    max-height:
      94vh;

    border-right:
      0;

    border-bottom:
      0;

    border-left:
      0;

    border-radius:
      14px
      14px
      0
      0;
  }
}


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

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

  .manufactura-aprobaciones-metric {
    min-height:
      auto;
  }

  .manufactura-aprobaciones-request {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-request > .icon {
    display:
      none;
  }

  .manufactura-aprobaciones-request__top {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .manufactura-aprobaciones-detail-head {
    flex-direction:
      column;
  }

  .manufactura-aprobaciones-detail-head h2 {
    white-space:
      normal;
  }

  .manufactura-aprobaciones-detail-head__status {
    justify-content:
      flex-start;
  }

  .manufactura-aprobaciones-selected-summary {
    grid-template-columns:
      1fr;
  }

  .manufactura-aprobaciones-selected-summary__icon {
    width:
      34px;

    height:
      34px;
  }

  .manufactura-aprobaciones-selected-summary strong,
  .manufactura-aprobaciones-selected-summary > div > span {
    white-space:
      normal;
  }

  .manufactura-aprobaciones-modal__footer {
    flex-direction:
      column-reverse;
  }

  .manufactura-aprobaciones-modal__footer
  .manufactura-aprobaciones-btn {
    width:
      100%;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion:
    reduce
) {
  .manufactura-aprobaciones-page *,
  .manufactura-aprobaciones-page *::before,
  .manufactura-aprobaciones-page *::after,
  .manufactura-aprobaciones-toast {
    scroll-behavior:
      auto !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }
}


/* =========================================================
   FIN
   WIRTZ HUB · MANUFACTURA · APROBACIONES
   ========================================================= *//* =========================================================
   APROBACIONES · PDF ADJUNTO
   ========================================================= */

.manufactura-aprobaciones-btn.is-pdf {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-line-strong
      )
      80%,
      var(
        --ma-line
      )
    );

  background:
    var(
      --ma-panel
    );

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


.manufactura-aprobaciones-btn.is-pdf:hover {
  border-color:
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel-strong
    );
}


.manufactura-aprobaciones-btn.is-pdf .icon {
  width:
    14px;

  height:
    14px;

  color:
    var(
      --ma-muted
    );
}


.manufactura-aprobaciones-btn.is-pdf:hover .icon {
  color:
    var(
      --ma-text
    );
}


.manufactura-aprobaciones-option-card__links
.manufactura-aprobaciones-btn.is-pdf {
  min-height:
    34px;

  padding:
    0
    10px;

  gap:
    6px;

  border-radius:
    8px;

  font-size:
    10px;

  font-weight:
    750;

  white-space:
    nowrap;
}


.manufactura-aprobaciones-option-card__links
.manufactura-aprobaciones-btn.is-pdf.is-loading {
  pointer-events:
    none;

  opacity:
    0.7;
}


.manufactura-aprobaciones-option-card__links
.manufactura-aprobaciones-btn.is-pdf.is-loading
.icon {
  color:
    var(
      --ma-muted
    );
}


/* =========================================================
   PDF · DIFERENCIAR VER / DESCARGAR
   ========================================================= */

.manufactura-aprobaciones-btn[
  data-aprobaciones-view-pdf
] {
  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-btn[
  data-aprobaciones-download-pdf
] {
  background:
    var(
      --ma-panel-soft
    );
}


/* =========================================================
   PDF · FOCUS
   ========================================================= */

.manufactura-aprobaciones-btn.is-pdf:focus-visible {
  outline:
    2px solid
    var(
      --ma-line-strong
    );

  outline-offset:
    2px;
}


/* =========================================================
   PDF · RESPONSIVE
   ========================================================= */

@media (
  max-width:
    760px
) {
  .manufactura-aprobaciones-option-card__links
  .manufactura-aprobaciones-btn.is-pdf {
    flex:
      1
      1
      calc(
        50% -
        4px
      );

    justify-content:
      center;
  }
}


@media (
  max-width:
    520px
) {
  .manufactura-aprobaciones-option-card__links
  .manufactura-aprobaciones-btn.is-pdf {
    flex:
      1
      1
      100%;

    width:
      100%;
  }
}/* =========================================================
   APROBACIONES · DIVISIONES VISUALES REFORZADAS
   ========================================================= */

.manufactura-aprobaciones-head,
.manufactura-aprobaciones-toolbar,
.manufactura-aprobaciones-list-panel,
.manufactura-aprobaciones-detail-panel,
.manufactura-aprobaciones-info-card,
.manufactura-aprobaciones-option-card,
.manufactura-aprobaciones-decision {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-line-strong
      )
      88%,
      var(
        --ma-line
      )
    );
}


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

.manufactura-aprobaciones-metric {
  border-color:
    color-mix(
      in srgb,
      var(
        --ma-line-strong
      )
      82%,
      var(
        --ma-line
      )
    );

  background:
    var(
      --ma-panel
    );
}


.manufactura-aprobaciones-metric + 
.manufactura-aprobaciones-metric {
  position:
    relative;
}


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

.manufactura-aprobaciones-toolbar {
  border:
    1px solid
    var(
      --ma-line-strong
    );

  border-radius:
    12px;

  padding:
    10px;

  background:
    var(
      --ma-panel
    );
}


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

.manufactura-aprobaciones-workspace {
  gap:
    12px;
}


.manufactura-aprobaciones-list-panel,
.manufactura-aprobaciones-detail-panel {
  border:
    1px solid
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel
    );
}


/* =========================================================
   HEADERS INTERNOS
   ========================================================= */

.manufactura-aprobaciones-list-panel__head,
.manufactura-aprobaciones-detail-head {
  border-bottom:
    1px solid
    var(
      --ma-line-strong
    );
}


/* =========================================================
   LISTADO
   ========================================================= */

.manufactura-aprobaciones-request {
  border:
    1px solid
    var(
      --ma-line
    );

  background:
    var(
      --ma-panel-soft
    );
}


.manufactura-aprobaciones-request:hover {
  border-color:
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel-strong
    );
}


.manufactura-aprobaciones-request.is-selected {
  border-color:
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel-strong
    );
}


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

.manufactura-aprobaciones-detail__body {
  gap:
    16px;
}


/* =========================================================
   TARJETAS DE INFORMACIÓN
   ========================================================= */

.manufactura-aprobaciones-info-card {
  border:
    1px solid
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel-soft
    );
}


.manufactura-aprobaciones-info-card > header {
  padding-bottom:
    9px;

  margin-bottom:
    10px;

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


/* =========================================================
   SECCIONES
   ========================================================= */

.manufactura-aprobaciones-options-section,
.manufactura-aprobaciones-decision {
  position:
    relative;
}


.manufactura-aprobaciones-options-section {
  padding-top:
    14px;

  border-top:
    1px solid
    var(
      --ma-line-strong
    );
}


.manufactura-aprobaciones-decision {
  margin-top:
    2px;

  border:
    1px solid
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel-soft
    );
}


/* =========================================================
   HEADER DE SECCIÓN
   ========================================================= */

.manufactura-aprobaciones-section-head {
  padding-bottom:
    10px;

  margin-bottom:
    2px;

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


/* =========================================================
   OPCIONES
   ========================================================= */

.manufactura-aprobaciones-option-card {
  border:
    1px solid
    var(
      --ma-line-strong
    );

  background:
    var(
      --ma-panel-soft
    );
}


.manufactura-aprobaciones-option-card__head {
  padding-bottom:
    9px;

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


.manufactura-aprobaciones-option-card__price {
  border-color:
    var(
      --ma-line-strong
    );
}


.manufactura-aprobaciones-option-card__meta > div,
.manufactura-aprobaciones-option-card__budget > span,
.manufactura-aprobaciones-option-card__note {
  border-color:
    var(
      --ma-line-strong
    );
}


/* =========================================================
   FOOTER DE OPCIÓN
   ========================================================= */

.manufactura-aprobaciones-option-card__footer {
  padding-top:
    10px;

  border-top:
    1px solid
    var(
      --ma-line
    );
}


/* =========================================================
   DECISIÓN
   ========================================================= */

.manufactura-aprobaciones-selected-summary {
  border-width:
    1px;

  border-color:
    var(
      --ma-line-strong
    );
}


.manufactura-aprobaciones-decision__actions {
  padding-top:
    12px;

  border-top:
    1px solid
    var(
      --ma-line
    );
}


/* =========================================================
   DARK MODE · MÁS CONTRASTE
   ========================================================= */

html[data-theme="dark"]
.manufactura-aprobaciones-head,

html[data-theme="dark"]
.manufactura-aprobaciones-toolbar,

html[data-theme="dark"]
.manufactura-aprobaciones-list-panel,

html[data-theme="dark"]
.manufactura-aprobaciones-detail-panel,

html[data-theme="dark"]
.manufactura-aprobaciones-info-card,

html[data-theme="dark"]
.manufactura-aprobaciones-option-card,

html[data-theme="dark"]
.manufactura-aprobaciones-decision {
  border-color:
    #272b30;
}


html[data-theme="dark"]
.manufactura-aprobaciones-list-panel__head,

html[data-theme="dark"]
.manufactura-aprobaciones-detail-head,

html[data-theme="dark"]
.manufactura-aprobaciones-section-head,

html[data-theme="dark"]
.manufactura-aprobaciones-info-card > header,

html[data-theme="dark"]
.manufactura-aprobaciones-option-card__head,

html[data-theme="dark"]
.manufactura-aprobaciones-option-card__footer,

html[data-theme="dark"]
.manufactura-aprobaciones-decision__actions,

html[data-theme="dark"]
.manufactura-aprobaciones-options-section {
  border-color:
    #20242a;
}


html[data-theme="dark"]
.manufactura-aprobaciones-request {
  border-color:
    #1f2328;
}


html[data-theme="dark"]
.manufactura-aprobaciones-request:hover,

html[data-theme="dark"]
.manufactura-aprobaciones-request.is-selected {
  border-color:
    #343a40;
}