/* =========================================================
   WIRTZ HUB · MANUFACTURA · HERRAMIENTAS

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

   RESPONSABILIDAD:
   - Layout general
   - Encabezado
   - Métricas
   - Filtros
   - Workspace
   - Listado de solicitudes
   - Panel de detalle
   - Badges
   - Tabs
   - Tarjetas informativas
   - Responsive

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


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

.manufactura-herramientas-page {
  --mh-bg:
    var(
      --bg,
      #f4f5f7
    );

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

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

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

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

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

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

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

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

  --mh-accent:
    #181b20;

  --mh-accent-contrast:
    #ffffff;

  --mh-success:
    #238636;

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

  --mh-warning:
    #c27a00;

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

  --mh-danger:
    #d1242f;

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

  --mh-info:
    #2563eb;

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

  --mh-radius-sm:
    8px;

  --mh-radius:
    12px;

  --mh-radius-lg:
    16px;

  width:
    100%;

  min-width:
    0;

  min-height:
    100%;

  display:
    flex;

  flex-direction:
    column;

  gap:
    14px;

  color:
    var(
      --mh-text
    );

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


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

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

  --mh-panel:
    #08090a;

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

  --mh-panel-strong:
    #121417;

  --mh-text:
    #f4f5f6;

  --mh-muted:
    #9da3ab;

  --mh-subtle:
    #737982;

  --mh-line:
    #22262b;

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

  --mh-accent:
    #f2f3f5;

  --mh-accent-contrast:
    #050607;

  --mh-success:
    #46b965;

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

  --mh-warning:
    #e4a229;

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

  --mh-danger:
    #f05b63;

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

  --mh-info:
    #6d9df8;

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


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

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

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

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

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

  height:
    17px;

  flex:
    0 0 auto;

  stroke-width:
    1.8;
}


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

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

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

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

  height:
    8px;
}

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

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

  border-radius:
    999px;

  border:
    2px solid
    transparent;

  background-clip:
    padding-box;
}


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

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

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    8px
    12px;

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

  border-radius:
    9px;

  background:
    var(
      --mh-panel
    );

  color:
    var(
      --mh-text
    );

  font-size:
    13px;

  font-weight:
    700;

  line-height:
    1;

  text-decoration:
    none;

  white-space:
    nowrap;

  cursor:
    pointer;

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

.manufactura-herramientas-btn:hover {
  background:
    var(
      --mh-panel-strong
    );

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

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

.manufactura-herramientas-btn:disabled {
  opacity:
    0.55;

  cursor:
    not-allowed;

  transform:
    none;
}

.manufactura-herramientas-btn.is-primary {
  background:
    var(
      --mh-accent
    );

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

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

.manufactura-herramientas-btn.is-primary:hover {
  opacity:
    0.9;
}

.manufactura-herramientas-btn.is-danger {
  background:
    var(
      --mh-danger-soft
    );

  border-color:
    color-mix(
      in srgb,
      var(
        --mh-danger
      )
      42%,
      var(
        --mh-line
      )
    );

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

.manufactura-herramientas-btn.is-danger:hover {
  background:
    color-mix(
      in srgb,
      var(
        --mh-danger
      )
      14%,
      var(
        --mh-panel
      )
    );
}

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


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

.manufactura-herramientas-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(
      --mh-line
    );

  border-radius:
    9px;

  background:
    var(
      --mh-panel
    );

  color:
    var(
      --mh-muted
    );

  cursor:
    pointer;

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

.manufactura-herramientas-icon-btn:hover {
  background:
    var(
      --mh-panel-strong
    );

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

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


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

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

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


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

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

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    18px;

  padding:
    18px;

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

  border-radius:
    var(
      --mh-radius-lg
    );

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

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

  display:
    flex;

  align-items:
    flex-start;

  gap:
    13px;
}

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

  height:
    44px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

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

  border-radius:
    12px;

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

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

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

  height:
    21px;
}

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

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

  margin-bottom:
    4px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.3;

  letter-spacing:
    0.11em;
}

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

  color:
    var(
      --mh-text
    );

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

  font-weight:
    800;

  line-height:
    1.08;

  letter-spacing:
    -0.035em;
}

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

  margin:
    7px
    0
    0;

  color:
    var(
      --mh-muted
    );

  font-size:
    13px;

  font-weight:
    500;

  line-height:
    1.55;
}

.manufactura-herramientas-head__actions {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    8px;
}


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

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

  min-width:
    0;

  display:
    grid;

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

  gap:
    10px;
}

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

  min-height:
    112px;

  display:
    grid;

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

  align-items:
    start;

  gap:
    11px;

  padding:
    14px;

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

  border-radius:
    12px;

  background:
    var(
      --mh-panel
    );

  animation:
    manufactura-herramientas-metric-in
    260ms
    ease
    both;

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

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

    transform:
      translateY(
        5px
      );
  }

  to {
    opacity:
      1;

    transform:
      translateY(
        0
      );
  }
}

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

  height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

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

  border-radius:
    9px;

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

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

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.manufactura-herramientas-metric__content small {
  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.25;

  letter-spacing:
    0.05em;

  text-transform:
    uppercase;
}

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

  color:
    var(
      --mh-text
    );

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

  font-weight:
    850;

  line-height:
    1;

  letter-spacing:
    -0.04em;
}

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

  color:
    var(
      --mh-subtle
    );

  font-size:
    11px;

  font-weight:
    500;

  line-height:
    1.35;
}

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

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

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

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

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

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

.manufactura-herramientas-metric.is-approved {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-success
      )
      32%,
      var(
        --mh-line
      )
    );
}

.manufactura-herramientas-metric.is-approved
.manufactura-herramientas-metric__icon {
  background:
    var(
      --mh-success-soft
    );

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


/* =========================================================
   PANEL SECTORES
   ========================================================= */

.manufactura-herramientas-sectors-panel {
  display:
    none;

  width:
    100%;

  min-width:
    0;
}

.manufactura-herramientas-sectors-panel.is-open {
  display:
    block;
}

.manufactura-herramientas-sectors {
  width:
    100%;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    14px;

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

  border-radius:
    var(
      --mh-radius-lg
    );

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

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

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    16px;
}

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

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

  margin-bottom:
    4px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    17px;

  font-weight:
    800;

  line-height:
    1.2;

  letter-spacing:
    -0.02em;
}

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

  margin:
    5px
    0
    0;

  color:
    var(
      --mh-muted
    );

  font-size:
    12px;

  line-height:
    1.5;
}

.manufactura-herramientas-sectors__list {
  display:
    grid;

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

  gap:
    9px;
}

.manufactura-herramientas-sector-row {
  min-width:
    0;

  display:
    grid;

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

  align-items:
    center;

  gap:
    10px;

  padding:
    11px;

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

  border-radius:
    10px;

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

.manufactura-herramientas-sector-row.is-inactive {
  opacity:
    0.62;
}

.manufactura-herramientas-sector-row__icon {
  width:
    34px;

  height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

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

  border-radius:
    9px;

  background:
    var(
      --mh-panel
    );

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

.manufactura-herramientas-sector-row__content {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.manufactura-herramientas-sector-row__content strong {
  overflow:
    hidden;

  color:
    var(
      --mh-text
    );

  font-size:
    13px;

  font-weight:
    800;

  line-height:
    1.3;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-herramientas-sector-row__content small,
.manufactura-herramientas-sector-row__content span {
  overflow:
    hidden;

  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-herramientas-sector-row__actions {
  display:
    flex;

  align-items:
    center;

  gap:
    5px;
}


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

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

  min-width:
    0;

  display:
    grid;

  grid-template-columns:
    minmax(
      260px,
      1.4fr
    )
    minmax(
      150px,
      0.7fr
    )
    minmax(
      160px,
      0.7fr
    )
    minmax(
      150px,
      0.7fr
    )
    auto;

  gap:
    8px;

  padding:
    10px;

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

  border-radius:
    12px;

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

.manufactura-herramientas-search {
  position:
    relative;

  min-width:
    0;
}

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

  top:
    50%;

  left:
    11px;

  z-index:
    1;

  width:
    16px;

  height:
    16px;

  color:
    var(
      --mh-subtle
    );

  pointer-events:
    none;

  transform:
    translateY(
      -50%
    );
}

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

  min-width:
    0;

  height:
    38px;

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

  border-radius:
    9px;

  outline:
    none;

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

  color:
    var(
      --mh-text
    );

  font-size:
    12px;

  font-weight:
    600;

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

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

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

.manufactura-herramientas-search input::placeholder {
  color:
    var(
      --mh-subtle
    );

  opacity:
    1;
}

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

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


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

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

  min-width:
    0;

  min-height:
    570px;

  display:
    grid;

  grid-template-columns:
    minmax(
      330px,
      0.78fr
    )
    minmax(
      0,
      1.6fr
    );

  gap:
    10px;
}


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

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

  min-height:
    0;

  display:
    flex;

  flex-direction:
    column;

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

  border-radius:
    var(
      --mh-radius-lg
    );

  background:
    var(
      --mh-panel
    );

  overflow:
    hidden;
}

.manufactura-herramientas-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(
      --mh-line
    );

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

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.manufactura-herramientas-list-panel__head span {
  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

.manufactura-herramientas-list-panel__head strong {
  color:
    var(
      --mh-text
    );

  font-size:
    14px;

  font-weight:
    800;

  line-height:
    1.25;
}

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

  height:
    27px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    0
    8px;

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

  border-radius:
    8px;

  background:
    var(
      --mh-panel
    );

  color:
    var(
      --mh-text
    ) !important;

  font-size:
    11px !important;

  font-weight:
    800 !important;

  letter-spacing:
    0 !important;
}


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

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

  flex:
    1;

  overflow-x:
    hidden;

  overflow-y:
    auto;
}

.manufactura-herramientas-request-row {
  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(
      --mh-line
    );

  border-radius:
    0;

  outline:
    none;

  background:
    transparent;

  color:
    inherit;

  text-align:
    left;

  cursor:
    pointer;

  animation:
    manufactura-herramientas-row-in
    220ms
    ease
    both;

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

  transition:
    background-color
    150ms
    ease;
}

@keyframes manufactura-herramientas-row-in {
  from {
    opacity:
      0;

    transform:
      translateX(
        -4px
      );
  }

  to {
    opacity:
      1;

    transform:
      translateX(
        0
      );
  }
}

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

.manufactura-herramientas-request-row:hover {
  background:
    var(
      --mh-panel-soft
    );
}

.manufactura-herramientas-request-row.is-selected {
  background:
    var(
      --mh-panel-strong
    );
}

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

  position:
    absolute;

  inset:
    8px
    auto
    8px
    0;

  width:
    3px;

  border-radius:
    0
    4px
    4px
    0;

  background:
    var(
      --mh-accent
    );
}

.manufactura-herramientas-request-row {
  position:
    relative;
}

.manufactura-herramientas-request-row__main {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}

.manufactura-herramientas-request-row__top {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    7px;
}

.manufactura-herramientas-request-row__top > strong {
  min-width:
    0;

  overflow:
    hidden;

  color:
    var(
      --mh-text
    );

  font-size:
    13px;

  font-weight:
    800;

  line-height:
    1.3;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-herramientas-request-row__main > small {
  overflow:
    hidden;

  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  font-weight:
    600;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.manufactura-herramientas-request-row__meta {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    7px
    12px;

  margin-top:
    2px;
}

.manufactura-herramientas-request-row__meta > span {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    4px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    600;

  line-height:
    1.2;
}

.manufactura-herramientas-request-row__meta .icon {
  width:
    12px;

  height:
    12px;
}

.manufactura-herramientas-request-row__aside {
  display:
    flex;

  align-items:
    center;

  gap:
    6px;
}

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

  height:
    15px;

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


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

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

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    5px;

  max-width:
    100%;

  padding:
    4px
    7px;

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

  border-radius:
    7px;

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

  color:
    var(
      --mh-muted
    );

  font-size:
    9px;

  font-weight:
    800;

  line-height:
    1;

  white-space:
    nowrap;
}

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

  height:
    12px;
}

.manufactura-herramientas-badge.is-approved {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-success
      )
      35%,
      var(
        --mh-line
      )
    );

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

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

.manufactura-herramientas-badge.is-pending {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-warning
      )
      35%,
      var(
        --mh-line
      )
    );

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

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

.manufactura-herramientas-badge.is-rejected,
.manufactura-herramientas-badge.is-cancelled {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-danger
      )
      35%,
      var(
        --mh-line
      )
    );

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

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

.manufactura-herramientas-badge.is-returned {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-warning
      )
      35%,
      var(
        --mh-line
      )
    );

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

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

.manufactura-herramientas-badge.is-draft,
.manufactura-herramientas-badge.is-default,
.manufactura-herramientas-badge.is-purchase,
.manufactura-herramientas-badge.is-purchased,
.manufactura-herramientas-badge.is-received,
.manufactura-herramientas-badge.is-closed {
  background:
    var(
      --mh-panel-soft
    );

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

.manufactura-herramientas-priority.is-low {
  color:
    var(
      --mh-muted
    );
}

.manufactura-herramientas-priority.is-medium {
  color:
    var(
      --mh-info
    );

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

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

.manufactura-herramientas-priority.is-high {
  color:
    var(
      --mh-warning
    );

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

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

.manufactura-herramientas-priority.is-urgent {
  color:
    var(
      --mh-danger
    );

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

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


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

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

  min-height:
    570px;

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

  border-radius:
    var(
      --mh-radius-lg
    );

  background:
    var(
      --mh-panel
    );

  overflow:
    hidden;
}

.manufactura-herramientas-detail,
.manufactura-herramientas-detail-empty {
  width:
    100%;

  height:
    100%;
}

.manufactura-herramientas-detail {
  min-height:
    570px;

  display:
    grid;

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


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

.manufactura-herramientas-detail-empty {
  min-height:
    570px;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    8px;

  padding:
    32px;

  text-align:
    center;
}

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

  height:
    46px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    4px;

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

  border-radius:
    12px;

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

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

.manufactura-herramientas-detail-empty__icon .icon {
  width:
    21px;

  height:
    21px;
}

.manufactura-herramientas-detail-empty__eyebrow {
  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

.manufactura-herramientas-detail-empty strong {
  color:
    var(
      --mh-text
    );

  font-size:
    18px;

  font-weight:
    800;

  line-height:
    1.25;
}

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

  margin:
    0
    0
    7px;

  color:
    var(
      --mh-muted
    );

  font-size:
    12px;

  line-height:
    1.55;
}


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

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

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    16px;

  padding:
    14px;

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

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

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

  display:
    flex;

  align-items:
    flex-start;

  gap:
    11px;
}

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

  height:
    39px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  flex:
    0 0 auto;

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

  border-radius:
    10px;

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

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

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

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

  margin-bottom:
    3px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  line-height:
    1.2;

  letter-spacing:
    0.09em;
}

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

  margin:
    0;

  color:
    var(
      --mh-text
    );

  font-size:
    19px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -0.025em;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

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

  color:
    var(
      --mh-muted
    );

  font-size:
    11px;

  font-weight:
    500;

  line-height:
    1.35;
}

.manufactura-herramientas-detail-head__actions {
  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-end;

  gap:
    8px;
}

.manufactura-herramientas-detail-head__badges,
.manufactura-herramientas-detail-head__buttons {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    6px;
}


/* =========================================================
   TABS
   ========================================================= */

.manufactura-herramientas-tabs {
  display:
    flex;

  align-items:
    center;

  gap:
    4px;

  min-width:
    0;

  padding:
    7px;

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

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

  overflow-x:
    auto;
}

.manufactura-herramientas-tab {
  min-height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    6px;

  flex:
    0 0 auto;

  padding:
    7px
    10px;

  border:
    1px solid
    transparent;

  border-radius:
    8px;

  background:
    transparent;

  color:
    var(
      --mh-muted
    );

  font-size:
    11px;

  font-weight:
    700;

  cursor:
    pointer;

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

.manufactura-herramientas-tab:hover {
  background:
    var(
      --mh-panel
    );

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

.manufactura-herramientas-tab.is-active {
  border-color:
    var(
      --mh-line
    );

  background:
    var(
      --mh-panel
    );

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


/* =========================================================
   DETAIL BODY
   ========================================================= */

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

  min-height:
    0;

  padding:
    12px;

  overflow-x:
    hidden;

  overflow-y:
    auto;
}


/* =========================================================
   INFO GRID
   ========================================================= */

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

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

  gap:
    10px;
}

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

  padding:
    13px;

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

  border-radius:
    11px;

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

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

.manufactura-herramientas-info-card.is-warning {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-warning
      )
      32%,
      var(
        --mh-line
      )
    );

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

.manufactura-herramientas-info-card.is-danger {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-danger
      )
      32%,
      var(
        --mh-line
      )
    );

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

.manufactura-herramientas-info-card.is-approved {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-success
      )
      32%,
      var(
        --mh-line
      )
    );

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

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

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

  margin-bottom:
    3px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.09em;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    14px;

  font-weight:
    800;

  line-height:
    1.3;
}

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

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

  gap:
    8px;
}

.manufactura-herramientas-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(
      --mh-line
    );

  border-radius:
    9px;

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

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

  height:
    28px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    7px;

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

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

.manufactura-herramientas-info-item > span .icon {
  width:
    14px;

  height:
    14px;
}

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    1px;
}

.manufactura-herramientas-info-item small {
  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    700;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    11px;

  font-weight:
    750;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    12px;

  font-weight:
    500;

  line-height:
    1.6;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}


/* =========================================================
   APROBADA SUMMARY
   ========================================================= */

.manufactura-herramientas-approved-summary {
  display:
    grid;

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

  align-items:
    end;

  gap:
    10px;
}

.manufactura-herramientas-approved-summary > div {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;

  padding:
    9px;

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

  border-radius:
    9px;

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

.manufactura-herramientas-approved-summary small {
  color:
    var(
      --mh-muted
    );

  font-size:
    9px;

  font-weight:
    700;
}

.manufactura-herramientas-approved-summary strong {
  overflow:
    hidden;

  color:
    var(
      --mh-text
    );

  font-size:
    13px;

  font-weight:
    800;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}


/* =========================================================
   EMPTY STATE GENÉRICO
   ========================================================= */

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

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  gap:
    7px;

  padding:
    24px;

  color:
    var(
      --mh-muted
    );

  text-align:
    center;
}

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

  height:
    42px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  margin-bottom:
    3px;

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

  border-radius:
    11px;

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

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

.manufactura-herramientas-empty strong {
  color:
    var(
      --mh-text
    );

  font-size:
    14px;

  font-weight:
    800;
}

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

  margin:
    0
    0
    4px;

  color:
    var(
      --mh-muted
    );

  font-size:
    11px;

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

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;
}

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

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

  gap:
    10px;
}

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    12px;

  padding:
    13px;

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

  border-radius:
    11px;

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

.manufactura-herramientas-option-card.is-approved {
  border-color:
    color-mix(
      in srgb,
      var(
        --mh-success
      )
      35%,
      var(
        --mh-line
      )
    );

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

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

  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    10px;
}

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

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

  margin-bottom:
    3px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  line-height:
    1.2;

  letter-spacing:
    0.09em;
}

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

  overflow:
    hidden;

  color:
    var(
      --mh-text
    );

  font-size:
    14px;

  font-weight:
    800;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

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

  overflow:
    hidden;

  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  font-weight:
    600;

  line-height:
    1.35;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

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

  flex-direction:
    column;

  gap:
    3px;

  padding:
    11px;

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

  border-radius:
    9px;

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

.manufactura-herramientas-option-card__price small {
  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  text-transform:
    uppercase;

  letter-spacing:
    0.05em;
}

.manufactura-herramientas-option-card__price strong {
  color:
    var(
      --mh-text
    );

  font-size:
    22px;

  font-weight:
    850;

  line-height:
    1.05;

  letter-spacing:
    -0.035em;
}

.manufactura-herramientas-option-card__price span {
  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  font-weight:
    600;
}

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

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

  gap:
    7px;
}

.manufactura-herramientas-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(
      --mh-line
    );

  border-radius:
    8px;

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

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

  height:
    14px;

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

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    1px;
}

.manufactura-herramientas-option-card__meta small {
  color:
    var(
      --mh-subtle
    );

  font-size:
    8px;

  font-weight:
    700;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    10px;

  font-weight:
    750;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    11px;

  font-weight:
    500;

  line-height:
    1.55;

  white-space:
    pre-wrap;

  overflow-wrap:
    anywhere;
}

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

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

  align-items:
    flex-start;

  gap:
    7px;

  padding:
    9px;

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

  border-radius:
    8px;

  background:
    var(
      --mh-panel
    );

  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  line-height:
    1.5;
}

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

  height:
    14px;

  margin-top:
    1px;
}

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

  align-items:
    center;

  justify-content:
    space-between;

  flex-wrap:
    wrap;

  gap:
    8px;

  margin-top:
    auto;

  padding-top:
    2px;
}

.manufactura-herramientas-option-card__links,
.manufactura-herramientas-option-card__actions {
  display:
    flex;

  align-items:
    center;

  flex-wrap:
    wrap;

  gap:
    6px;
}


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

.manufactura-herramientas-history {
  position:
    relative;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    0;
}

.manufactura-herramientas-history__item {
  position:
    relative;

  min-width:
    0;

  display:
    grid;

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

  gap:
    10px;

  padding:
    0
    0
    14px;
}

.manufactura-herramientas-history__item:not(:last-child)::before {
  content:
    "";

  position:
    absolute;

  top:
    34px;

  bottom:
    0;

  left:
    16px;

  width:
    1px;

  background:
    var(
      --mh-line
    );
}

.manufactura-herramientas-history__marker {
  position:
    relative;

  z-index:
    1;

  width:
    34px;

  height:
    34px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

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

  border-radius:
    9px;

  background:
    var(
      --mh-panel
    );

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

.manufactura-herramientas-history__marker .icon {
  width:
    15px;

  height:
    15px;
}

.manufactura-herramientas-history__content {
  min-width:
    0;

  padding:
    10px;

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

  border-radius:
    9px;

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

.manufactura-herramientas-history__content header {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    10px;
}

.manufactura-herramientas-history__content header strong {
  color:
    var(
      --mh-text
    );

  font-size:
    11px;

  font-weight:
    800;

  line-height:
    1.4;
}

.manufactura-herramientas-history__content header span {
  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    600;

  white-space:
    nowrap;
}

.manufactura-herramientas-history__content p {
  margin:
    7px
    0
    0;

  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  line-height:
    1.5;

  white-space:
    pre-wrap;
}

.manufactura-herramientas-history__content footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  flex-wrap:
    wrap;

  gap:
    6px;

  margin-top:
    8px;

  padding-top:
    8px;

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

.manufactura-herramientas-history__content footer span {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    4px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    600;
}

.manufactura-herramientas-history__content footer .icon {
  width:
    12px;

  height:
    12px;
}


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

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

.manufactura-herramientas-modal {
  position:
    fixed;

  inset:
    0;

  z-index:
    1400;

  display:
    none;

  align-items:
    center;

  justify-content:
    center;

  padding:
    18px;
}

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

.manufactura-herramientas-modal__backdrop {
  position:
    absolute;

  inset:
    0;

  width:
    100%;

  height:
    100%;

  padding:
    0;

  border:
    0;

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

  cursor:
    default;
}

.manufactura-herramientas-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(
      --mh-line-strong
    );

  border-radius:
    14px;

  background:
    var(
      --mh-panel
    );

  color:
    var(
      --mh-text
    );

  overflow:
    hidden;
}

.manufactura-herramientas-modal__dialog.is-large {
  width:
    min(
      820px,
      100%
    );
}

.manufactura-herramientas-modal__head {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    15px;

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

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

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

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

  margin-bottom:
    4px;

  color:
    var(
      --mh-subtle
    );

  font-size:
    9px;

  font-weight:
    800;

  letter-spacing:
    0.1em;
}

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

  color:
    var(
      --mh-text
    );

  font-size:
    19px;

  font-weight:
    850;

  line-height:
    1.2;

  letter-spacing:
    -0.025em;
}

.manufactura-herramientas-modal__head p {
  max-width:
    610px;

  margin:
    5px
    0
    0;

  color:
    var(
      --mh-muted
    );

  font-size:
    11px;

  line-height:
    1.5;
}

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

  padding:
    14px;

  overflow-x:
    hidden;

  overflow-y:
    auto;
}

.manufactura-herramientas-modal__footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-end;

  flex-wrap:
    wrap;

  gap:
    7px;

  padding:
    11px
    14px;

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

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


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

.manufactura-herramientas-form-grid {
  display:
    grid;

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

  gap:
    11px;
}

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

  display:
    flex;

  flex-direction:
    column;

  gap:
    5px;
}

.manufactura-herramientas-field.is-span-2 {
  grid-column:
    1 /
    -1;
}

.manufactura-herramientas-field > span {
  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  font-weight:
    800;

  line-height:
    1.3;
}

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

  min-width:
    0;

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

  border-radius:
    9px;

  outline:
    none;

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

  color:
    var(
      --mh-text
    );

  font-size:
    12px;

  font-weight:
    600;

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

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

  padding:
    0
    11px;
}

.manufactura-herramientas-field textarea {
  min-height:
    86px;

  padding:
    10px
    11px;

  line-height:
    1.5;

  resize:
    vertical;
}

.manufactura-herramientas-field input::placeholder,
.manufactura-herramientas-field textarea::placeholder {
  color:
    var(
      --mh-subtle
    );

  opacity:
    1;
}

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

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


/* =========================================================
   SWITCH
   ========================================================= */

.manufactura-herramientas-switch {
  min-width:
    0;

  min-height:
    56px;

  display:
    grid;

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

  align-items:
    center;

  gap:
    12px;

  padding:
    10px
    11px;

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

  border-radius:
    10px;

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

  cursor:
    pointer;
}

.manufactura-herramientas-switch > span {
  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.manufactura-herramientas-switch strong {
  color:
    var(
      --mh-text
    );

  font-size:
    11px;

  font-weight:
    800;
}

.manufactura-herramientas-switch small {
  color:
    var(
      --mh-muted
    );

  font-size:
    9px;

  line-height:
    1.4;
}

.manufactura-herramientas-switch input {
  position:
    absolute;

  opacity:
    0;

  pointer-events:
    none;
}

.manufactura-herramientas-switch b {
  position:
    relative;

  width:
    38px;

  height:
    21px;

  display:
    block;

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

  border-radius:
    999px;

  background:
    var(
      --mh-panel
    );

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

.manufactura-herramientas-switch b::after {
  content:
    "";

  position:
    absolute;

  top:
    3px;

  left:
    3px;

  width:
    13px;

  height:
    13px;

  border-radius:
    50%;

  background:
    var(
      --mh-subtle
    );

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

.manufactura-herramientas-switch input:checked + b {
  border-color:
    var(
      --mh-success
    );

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

.manufactura-herramientas-switch input:checked + b::after {
  background:
    var(
      --mh-success
    );

  transform:
    translateX(
      17px
    );
}


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

.manufactura-herramientas-toast {
  position:
    fixed;

  right:
    18px;

  bottom:
    18px;

  z-index:
    1800;

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

  padding:
    10px
    13px;

  border:
    1px solid
    var(
      --mh-line-strong,
      #30353b
    );

  border-radius:
    9px;

  background:
    var(
      --mh-panel,
      #08090a
    );

  color:
    var(
      --mh-text,
      #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-herramientas-toast.is-visible {
  opacity:
    1;

  transform:
    translateY(
      0
    );
}

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

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


/* =========================================================
   RESPONSIVE · 1500
   ========================================================= */

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

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


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

@media (
  max-width:
    1200px
) {
  .manufactura-herramientas-head {
    flex-direction:
      column;
  }

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

    justify-content:
      flex-start;
  }

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

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

  .manufactura-herramientas-workspace {
    grid-template-columns:
      minmax(
        290px,
        0.75fr
      )
      minmax(
        0,
        1.25fr
      );
  }

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

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

  .manufactura-herramientas-detail-head__actions {
    width:
      100%;

    align-items:
      flex-start;
  }

  .manufactura-herramientas-detail-head__badges,
  .manufactura-herramientas-detail-head__buttons {
    justify-content:
      flex-start;
  }
}


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

@media (
  max-width:
    980px
) {
  .manufactura-herramientas-workspace {
    grid-template-columns:
      1fr;
  }

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

  .manufactura-herramientas-requests {
    max-height:
      440px;
  }

  .manufactura-herramientas-detail {
    display:
      flex;

    flex-direction:
      column;
  }

  .manufactura-herramientas-detail__body {
    max-height:
      none;
  }

  .manufactura-herramientas-sectors__list {
    grid-template-columns:
      1fr;
  }
}


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

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

  .manufactura-herramientas-head {
    padding:
      13px;
  }

  .manufactura-herramientas-head__brand {
    gap:
      10px;
  }

  .manufactura-herramientas-head__icon {
    width:
      39px;

    height:
      39px;
  }

  .manufactura-herramientas-head__brand h1 {
    font-size:
      22px;
  }

  .manufactura-herramientas-head__actions {
    display:
      grid;

    grid-template-columns:
      1fr;
  }

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

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

  .manufactura-herramientas-metric {
    min-height:
      100px;
  }

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

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

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

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

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

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

  .manufactura-herramientas-approved-summary {
    grid-template-columns:
      1fr;
  }

  .manufactura-herramientas-approved-summary
  .manufactura-herramientas-btn {
    width:
      100%;
  }

  .manufactura-herramientas-option-card__meta {
    grid-template-columns:
      1fr;
  }

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

    flex-direction:
      column;
  }

  .manufactura-herramientas-option-card__links,
  .manufactura-herramientas-option-card__actions {
    width:
      100%;
  }

  .manufactura-herramientas-option-card__links
  .manufactura-herramientas-btn,
  .manufactura-herramientas-option-card__actions
  .manufactura-herramientas-btn {
    flex:
      1;
  }

  .manufactura-herramientas-form-grid {
    grid-template-columns:
      1fr;
  }

  .manufactura-herramientas-field.is-span-2,
  .manufactura-herramientas-switch.is-span-2 {
    grid-column:
      auto;
  }

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

    padding:
      0;
  }

  .manufactura-herramientas-modal__dialog,
  .manufactura-herramientas-modal__dialog.is-large {
    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-herramientas-metrics {
    grid-template-columns:
      1fr;
  }

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

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

  .manufactura-herramientas-request-row__aside {
    justify-content:
      space-between;
  }

  .manufactura-herramientas-request-row__top {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .manufactura-herramientas-detail-head__identity {
    align-items:
      flex-start;
  }

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

  .manufactura-herramientas-detail-head__buttons {
    width:
      100%;
  }

  .manufactura-herramientas-detail-head__buttons
  .manufactura-herramientas-btn {
    width:
      100%;
  }

  .manufactura-herramientas-tabs {
    align-items:
      stretch;
  }

  .manufactura-herramientas-tab {
    flex:
      1;

    min-width:
      max-content;
  }

  .manufactura-herramientas-sector-row {
    grid-template-columns:
      auto
      minmax(
        0,
        1fr
      );
  }

  .manufactura-herramientas-sector-row__actions {
    grid-column:
      1 /
      -1;

    justify-content:
      flex-end;
  }

  .manufactura-herramientas-history__content header {
    flex-direction:
      column;

    gap:
      3px;
  }

  .manufactura-herramientas-history__content header span {
    white-space:
      normal;
  }
}


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

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

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }
}


/* =========================================================
   FIN
   WIRTZ HUB · MANUFACTURA · HERRAMIENTAS
   ========================================================= */

   /* =========================================================
   HERRAMIENTAS · PRESUPUESTO PDF
   AGREGAR AL FINAL DE:

   frontend/src/pages/manufactura/herramientas/herramientas.css
   ========================================================= */

.manufactura-herramientas-field input[type="file"] {
  min-height:
    42px;

  height:
    auto;

  padding:
    7px;

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

  border-radius:
    9px;

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

  color:
    var(
      --mh-text
    );

  font-size:
    11px;

  font-weight:
    600;

  cursor:
    pointer;
}


.manufactura-herramientas-field input[type="file"]::file-selector-button {
  min-height:
    30px;

  margin-right:
    10px;

  padding:
    6px
    10px;

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

  border-radius:
    7px;

  background:
    var(
      --mh-panel
    );

  color:
    var(
      --mh-text
    );

  font-size:
    10px;

  font-weight:
    800;

  cursor:
    pointer;

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


.manufactura-herramientas-field input[type="file"]::file-selector-button:hover {
  background:
    var(
      --mh-panel-strong
    );

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


.manufactura-herramientas-field input[type="file"]:focus {
  border-color:
    var(
      --mh-line-strong
    );

  outline:
    none;
}


#herramientasOpcionPresupuestoPdfActual {
  min-height:
    16px;

  display:
    flex;

  align-items:
    center;

  margin-top:
    2px;

  color:
    var(
      --mh-muted
    );

  font-size:
    10px;

  font-weight:
    600;

  line-height:
    1.4;

  overflow-wrap:
    anywhere;
}


#herramientasOpcionPresupuestoPdfActual:not(:empty) {
  padding:
    7px
    9px;

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

  border-radius:
    8px;

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

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


.manufactura-herramientas-option-card__links
.manufactura-herramientas-btn[title] {
  cursor:
    default;
}


.manufactura-herramientas-option-card__links
.manufactura-herramientas-btn[title]
[data-lucide="file-type-2"] {
  color:
    var(
      --mh-danger
    );
}


@media (
  max-width:
    760px
) {
  .manufactura-herramientas-field input[type="file"] {
    width:
      100%;
  }

  .manufactura-herramientas-field input[type="file"]::file-selector-button {
    margin-right:
      7px;
  }
}/* =========================================================
   MANUFACTURA · HERRAMIENTAS
   AJUSTES GENERALES
   PEGAR AL FINAL DEL CSS
   ========================================================= */


/* =========================================================
   VARIABLES · TEXTO Y DIVISIONES MÁS MARCADAS
   ========================================================= */

.manufactura-herramientas-page,
.manufactura-herramientas-modal,
.manufactura-herramientas-toast {
  --mh-text:
    #0b0d0f;

  --mh-muted:
    #444a51;

  --mh-subtle:
    #666d75;

  --mh-line:
    #c8cdd3;

  --mh-line-strong:
    #969ea7;
}


html[data-theme="dark"]
.manufactura-herramientas-page,
html[data-theme="dark"]
.manufactura-herramientas-modal,
html[data-theme="dark"]
.manufactura-herramientas-toast {
  --mh-text:
    #f7f7f8;

  --mh-muted:
    #d0d4d8;

  --mh-subtle:
    #a7adb4;

  --mh-line:
    #3b4046;

  --mh-line-strong:
    #5a626b;
}


/* =========================================================
   SIN SCROLL HORIZONTAL
   ========================================================= */

html,
body {
  max-width:
    100vw;

  overflow-x:
    hidden !important;
}


body:has(.manufactura-herramientas-page),
body:has(.manufactura-herramientas-page)
.app-shell,
body:has(.manufactura-herramientas-page)
.app-main,
body:has(.manufactura-herramientas-page)
.app-content,
.manufactura-herramientas-page {
  width:
    100% !important;

  min-width:
    0 !important;

  max-width:
    100% !important;

  overflow-x:
    hidden !important;
}


.manufactura-herramientas-page *,
.manufactura-herramientas-page *::before,
.manufactura-herramientas-page *::after,
.manufactura-herramientas-modal *,
.manufactura-herramientas-modal *::before,
.manufactura-herramientas-modal *::after {
  box-sizing:
    border-box;

  min-width:
    0;
}


/* =========================================================
   MÁS RÁPIDO
   ========================================================= */

.manufactura-herramientas-page *,
.manufactura-herramientas-page *::before,
.manufactura-herramientas-page *::after,
.manufactura-herramientas-modal *,
.manufactura-herramientas-modal *::before,
.manufactura-herramientas-modal *::after,
.manufactura-herramientas-toast {
  transition-duration:
    70ms !important;
}


.manufactura-herramientas-metric,
.manufactura-herramientas-request-row {
  animation:
    none !important;
}


.manufactura-herramientas-btn:active {
  transform:
    none !important;
}


.manufactura-herramientas-toast {
  transition-duration:
    80ms !important;
}


.manufactura-herramientas-page
.is-spinning,
.manufactura-herramientas-toast
.is-spinning {
  animation-duration:
    600ms !important;
}


/* =========================================================
   LETRAS MÁS NEGRAS
   ========================================================= */

.manufactura-herramientas-page {
  font-weight:
    600;
}


.manufactura-herramientas-head__brand h1,
.manufactura-herramientas-detail-head h2,
.manufactura-herramientas-modal__head h2 {
  font-weight:
    900 !important;
}


.manufactura-herramientas-head__brand > div > span,
.manufactura-herramientas-metric__content small,
.manufactura-herramientas-list-panel__head span,
.manufactura-herramientas-section-head > div > span,
.manufactura-herramientas-detail-head__eyebrow,
.manufactura-herramientas-info-card > header > span,
.manufactura-herramientas-option-card__head > div > span,
.manufactura-herramientas-option-card__price small,
.manufactura-herramientas-field > span,
.manufactura-herramientas-detail-empty__eyebrow {
  font-weight:
    850 !important;
}


.manufactura-herramientas-btn,
.manufactura-herramientas-toolbar select,
.manufactura-herramientas-request-row__top > strong,
.manufactura-herramientas-badge,
.manufactura-herramientas-priority,
.manufactura-herramientas-info-item strong,
.manufactura-herramientas-option-card__head h4,
.manufactura-herramientas-option-card__price strong,
.manufactura-herramientas-option-card__meta strong,
.manufactura-herramientas-history__content header strong,
.manufactura-herramientas-switch strong {
  font-weight:
    800 !important;
}


.manufactura-herramientas-head__brand p,
.manufactura-herramientas-section-head p,
.manufactura-herramientas-request-row__main > small,
.manufactura-herramientas-request-row__meta > span,
.manufactura-herramientas-detail-head p,
.manufactura-herramientas-long-text,
.manufactura-herramientas-option-card__description,
.manufactura-herramientas-history__content p,
.manufactura-herramientas-field input,
.manufactura-herramientas-field select,
.manufactura-herramientas-field textarea {
  font-weight:
    650 !important;
}


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

.manufactura-herramientas-head {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-head__icon {
  border-color:
    var(--mh-line-strong) !important;
}


/* =========================================================
   MÉTRICAS · DIVISIONES MÁS VISIBLES
   ========================================================= */

.manufactura-herramientas-metrics {
  gap:
    0 !important;

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

  border-radius:
    12px;

  overflow:
    hidden;
}


.manufactura-herramientas-metric {
  border:
    0 !important;

  border-right:
    1px
    solid
    var(--mh-line-strong) !important;

  border-radius:
    0 !important;
}


.manufactura-herramientas-metric:last-child {
  border-right:
    0 !important;
}


.manufactura-herramientas-metric__icon {
  border-color:
    var(--mh-line) !important;
}


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

.manufactura-herramientas-toolbar {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-search input,
.manufactura-herramientas-toolbar select {
  border-color:
    var(--mh-line-strong) !important;
}


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

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

  min-width:
    0;

  max-width:
    100%;

  overflow-x:
    hidden;
}


.manufactura-herramientas-list-panel,
.manufactura-herramientas-detail-panel {
  border-color:
    var(--mh-line-strong) !important;
}


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

.manufactura-herramientas-list-panel__head {
  border-bottom-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-request-row {
  border-bottom:
    1px
    solid
    var(--mh-line) !important;
}


/* =========================================================
   TABS · SIN SCROLL HORIZONTAL
   ========================================================= */

.manufactura-herramientas-tabs {
  width:
    100%;

  display:
    grid !important;

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

  gap:
    4px;

  overflow-x:
    hidden !important;

  border-bottom-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-tab {
  width:
    100%;

  min-width:
    0 !important;

  max-width:
    100%;

  flex:
    none !important;

  white-space:
    normal !important;
}


.manufactura-herramientas-tab.is-active {
  border-color:
    var(--mh-line-strong) !important;
}


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

.manufactura-herramientas-detail-head {
  border-bottom-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-info-card {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-info-item {
  border-color:
    var(--mh-line) !important;
}


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

.manufactura-herramientas-option-card {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-option-card__price,
.manufactura-herramientas-option-card__meta > div,
.manufactura-herramientas-option-card__note {
  border-color:
    var(--mh-line) !important;
}


/* =========================================================
   SECTORES
   ========================================================= */

.manufactura-herramientas-sectors {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-sector-row {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-sector-row__icon {
  border-color:
    var(--mh-line) !important;
}


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

.manufactura-herramientas-history__content,
.manufactura-herramientas-history__marker {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-history__item:not(:last-child)::before {
  background:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-history__content footer {
  border-top-color:
    var(--mh-line) !important;
}


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

.manufactura-herramientas-field input,
.manufactura-herramientas-field select,
.manufactura-herramientas-field textarea,
.manufactura-herramientas-field input[type="file"] {
  border-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-switch {
  border-color:
    var(--mh-line-strong) !important;
}


#herramientasOpcionPresupuestoPdfActual:not(:empty) {
  border-color:
    var(--mh-line-strong) !important;
}


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

.manufactura-herramientas-modal {
  max-width:
    100vw;

  overflow-x:
    hidden !important;
}


.manufactura-herramientas-modal__dialog,
.manufactura-herramientas-modal__dialog.is-large {
  max-width:
    calc(
      100vw -
      24px
    ) !important;

  border-color:
    var(--mh-line-strong) !important;

  overflow-x:
    hidden !important;
}


.manufactura-herramientas-modal__head {
  border-bottom-color:
    var(--mh-line-strong) !important;
}


.manufactura-herramientas-modal__body {
  width:
    100%;

  min-width:
    0;

  max-width:
    100%;

  overflow-x:
    hidden !important;
}


.manufactura-herramientas-modal__footer {
  border-top-color:
    var(--mh-line-strong) !important;
}


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

.manufactura-herramientas-btn,
.manufactura-herramientas-icon-btn {
  border-color:
    var(--mh-line-strong);
}


/* =========================================================
   RESPONSIVE · 1500
   ========================================================= */

@media (max-width: 1500px) {
  .manufactura-herramientas-metric {
    border-right:
      1px
      solid
      var(--mh-line-strong) !important;

    border-bottom:
      1px
      solid
      var(--mh-line-strong) !important;
  }


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


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


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

@media (max-width: 1200px) {
  .manufactura-herramientas-page {
    width:
      100%;

    max-width:
      100%;

    overflow-x:
      hidden;
  }


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


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


  .manufactura-herramientas-workspace {
    grid-template-columns:
      minmax(
        280px,
        0.8fr
      )
      minmax(
        0,
        1.2fr
      ) !important;
  }
}


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

@media (max-width: 980px) {
  .manufactura-herramientas-workspace {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-list-panel,
  .manufactura-herramientas-detail-panel {
    width:
      100%;

    min-width:
      0;

    max-width:
      100%;
  }


  .manufactura-herramientas-detail-grid {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-info-card.is-full {
    grid-column:
      auto !important;
  }


  .manufactura-herramientas-options-grid {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-sectors__list {
    grid-template-columns:
      1fr !important;
  }
}


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

@media (max-width: 760px) {
  .manufactura-herramientas-page {
    gap:
      8px !important;

    overflow-x:
      hidden !important;
  }


  .manufactura-herramientas-head {
    padding:
      11px !important;

    gap:
      10px !important;
  }


  .manufactura-herramientas-head__brand {
    width:
      100%;
  }


  .manufactura-herramientas-head__brand p {
    font-size:
      11px !important;
  }


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

    display:
      grid !important;

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

    gap:
      5px !important;
  }


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


  .manufactura-herramientas-head__actions
  .manufactura-herramientas-btn:last-child {
    grid-column:
      1
      /
      -1;
  }


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

  .manufactura-herramientas-metrics {
    grid-template-columns:
      repeat(
        2,
        minmax(
          0,
          1fr
        )
      ) !important;
  }


  .manufactura-herramientas-metric,
  .manufactura-herramientas-metric:nth-child(3n),
  .manufactura-herramientas-metric:nth-last-child(-n + 3) {
    border-right:
      1px
      solid
      var(--mh-line-strong) !important;

    border-bottom:
      1px
      solid
      var(--mh-line-strong) !important;
  }


  .manufactura-herramientas-metric:nth-child(2n) {
    border-right:
      0 !important;
  }


  .manufactura-herramientas-metric:nth-last-child(-n + 2) {
    border-bottom:
      0 !important;
  }


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

  .manufactura-herramientas-toolbar {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-search {
    grid-column:
      auto !important;
  }


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


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

  .manufactura-herramientas-detail-head {
    padding:
      11px !important;
  }


  .manufactura-herramientas-detail-head__actions,
  .manufactura-herramientas-detail-head__badges,
  .manufactura-herramientas-detail-head__buttons {
    width:
      100%;
  }


  .manufactura-herramientas-detail-head__buttons {
    display:
      grid !important;

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

    gap:
      5px;
  }


  .manufactura-herramientas-detail-head__buttons
  .manufactura-herramientas-btn {
    width:
      100%;
  }


  .manufactura-herramientas-detail__body {
    padding:
      9px !important;

    overflow-x:
      hidden !important;
  }


  .manufactura-herramientas-info-list {
    grid-template-columns:
      1fr !important;
  }


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

  .manufactura-herramientas-option-card {
    width:
      100%;

    max-width:
      100%;

    overflow-x:
      hidden;
  }


  .manufactura-herramientas-option-card__meta {
    grid-template-columns:
      1fr !important;
  }


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

    flex-direction:
      column;
  }


  .manufactura-herramientas-option-card__links,
  .manufactura-herramientas-option-card__actions {
    width:
      100%;

    display:
      grid !important;

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

    gap:
      5px;
  }


  .manufactura-herramientas-option-card__links
  .manufactura-herramientas-btn,
  .manufactura-herramientas-option-card__actions
  .manufactura-herramientas-btn {
    width:
      100%;
  }


  /* =======================================================
     SECTORES
     ======================================================= */

  .manufactura-herramientas-section-head {
    flex-direction:
      column;
  }


  .manufactura-herramientas-section-head
  .manufactura-herramientas-btn {
    width:
      100%;
  }


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

  .manufactura-herramientas-modal {
    width:
      100vw;

    max-width:
      100vw;

    padding:
      7px !important;

    align-items:
      center !important;
  }


  .manufactura-herramientas-modal__dialog,
  .manufactura-herramientas-modal__dialog.is-large {
    width:
      calc(
        100vw -
        14px
      ) !important;

    max-width:
      calc(
        100vw -
        14px
      ) !important;

    max-height:
      calc(
        100dvh -
        14px
      ) !important;

    border:
      1px
      solid
      var(--mh-line-strong) !important;

    border-radius:
      11px !important;
  }


  .manufactura-herramientas-modal__head {
    padding:
      11px !important;
  }


  .manufactura-herramientas-modal__body {
    padding:
      10px !important;
  }


  .manufactura-herramientas-modal__footer {
    padding:
      8px
      10px !important;
  }


  .manufactura-herramientas-form-grid {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-field.is-span-2,
  .manufactura-herramientas-switch.is-span-2 {
    grid-column:
      auto !important;
  }
}


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

@media (max-width: 520px) {
  .manufactura-herramientas-head__actions {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-head__actions
  .manufactura-herramientas-btn:last-child {
    grid-column:
      auto;
  }


  .manufactura-herramientas-metrics {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-metric,
  .manufactura-herramientas-metric:nth-child(2n),
  .manufactura-herramientas-metric:nth-child(3n),
  .manufactura-herramientas-metric:nth-last-child(-n + 2),
  .manufactura-herramientas-metric:nth-last-child(-n + 3) {
    border-right:
      0 !important;

    border-bottom:
      1px
      solid
      var(--mh-line-strong) !important;
  }


  .manufactura-herramientas-metric:last-child {
    border-bottom:
      0 !important;
  }


  .manufactura-herramientas-request-row {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-request-row__top {
    align-items:
      flex-start;

    flex-direction:
      column;
  }


  .manufactura-herramientas-request-row__aside {
    width:
      100%;

    justify-content:
      space-between;
  }


  .manufactura-herramientas-tabs {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-tab {
    width:
      100%;

    min-width:
      0 !important;
  }


  .manufactura-herramientas-detail-head__buttons {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-option-card__links,
  .manufactura-herramientas-option-card__actions {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-sector-row {
    grid-template-columns:
      1fr !important;
  }


  .manufactura-herramientas-sector-row__icon {
    margin-bottom:
      2px;
  }


  .manufactura-herramientas-sector-row__actions {
    width:
      100%;

    grid-column:
      auto !important;

    justify-content:
      flex-start !important;
  }


  .manufactura-herramientas-history__item {
    grid-template-columns:
      28px
      minmax(
        0,
        1fr
      ) !important;

    gap:
      7px !important;
  }


  .manufactura-herramientas-history__marker {
    width:
      28px !important;

    height:
      28px !important;
  }


  .manufactura-herramientas-history__item:not(:last-child)::before {
    left:
      13px !important;
  }


  .manufactura-herramientas-history__content header {
    flex-direction:
      column;

    gap:
      3px;
  }


  .manufactura-herramientas-history__content header span {
    white-space:
      normal !important;
  }


  .manufactura-herramientas-modal__footer {
    display:
      grid !important;

    grid-template-columns:
      1fr !important;
  }


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


/* =========================================================
   PROTECCIÓN FINAL · NADA DE BARRAS HORIZONTALES
   ========================================================= */

.manufactura-herramientas-page,
.manufactura-herramientas-head,
.manufactura-herramientas-metrics,
.manufactura-herramientas-sectors-panel,
.manufactura-herramientas-sectors,
.manufactura-herramientas-toolbar,
.manufactura-herramientas-workspace,
.manufactura-herramientas-list-panel,
.manufactura-herramientas-requests,
.manufactura-herramientas-request-row,
.manufactura-herramientas-detail-panel,
.manufactura-herramientas-detail,
.manufactura-herramientas-detail-head,
.manufactura-herramientas-tabs,
.manufactura-herramientas-detail__body,
.manufactura-herramientas-detail-grid,
.manufactura-herramientas-info-card,
.manufactura-herramientas-info-list,
.manufactura-herramientas-info-item,
.manufactura-herramientas-options-section,
.manufactura-herramientas-options-grid,
.manufactura-herramientas-option-card,
.manufactura-herramientas-history,
.manufactura-herramientas-modal,
.manufactura-herramientas-modal__dialog,
.manufactura-herramientas-modal__body,
.manufactura-herramientas-form-grid {
  min-width:
    0 !important;

  max-width:
    100% !important;

  overflow-x:
    hidden !important;
}


.manufactura-herramientas-page img,
.manufactura-herramientas-page svg,
.manufactura-herramientas-modal img,
.manufactura-herramientas-modal svg {
  max-width:
    100%;
}


.manufactura-herramientas-page input,
.manufactura-herramientas-page select,
.manufactura-herramientas-page textarea,
.manufactura-herramientas-page button,
.manufactura-herramientas-modal input,
.manufactura-herramientas-modal select,
.manufactura-herramientas-modal textarea,
.manufactura-herramientas-modal button {
  max-width:
    100%;
}