/* Yellow ERP v51.156 · Producción, inventario y bases de datos unificados */
:root{--yy-prod-yellow:#f6c400;--yy-prod-black:#050505;--yy-prod-field:#f3f3f3;--yy-prod-muted:#666;--yy-prod-shadow:-6px 7px 0 #050505}

/* Entrada directa al inventario */
.mi-production-entry{grid-template-columns:minmax(0,1.35fr) minmax(210px,.65fr)!important;gap:16px 20px!important;padding:20px!important}
.mi-entry-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mi-entry-actions .primary-btn,.mi-entry-actions .secondary-btn{width:100%!important;margin:0!important;min-height:54px!important}
.mi-entry-note{grid-column:1/-1;margin:-3px 0 0;text-align:center;color:#555;font-size:13px;font-weight:850}
.mi-production-entry>.mi-cloud-line{grid-column:1/-1}

/* Inventario: una sola jerarquía, sin cajas con sombra dentro de otras cajas */
.mi-toolbar,.mi-list-tools{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0 0 18px!important}
.mi-toolbar{align-items:center!important}
.mi-form{box-shadow:var(--yy-prod-shadow)!important;padding:18px!important;margin:0 6px 22px 0!important}
.mi-list-tools{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(190px,.55fr)!important;gap:12px!important}
.mi-material-card{background:var(--yy-prod-field)!important;border:0!important;border-radius:20px!important;box-shadow:none!important;padding:15px!important;gap:10px!important}
.mi-material-meta{gap:7px!important}.mi-material-meta>div{background:#fff!important;border-radius:14px!important;padding:9px 10px!important}
.mi-material-notes{background:#fff!important;border-radius:14px!important;padding:9px 10px!important}
.mi-card-controls{gap:8px!important}.mi-card-controls select{background:#fff!important;min-height:44px!important}
.mi-card-actions button{box-shadow:none!important;min-height:40px!important;border-radius:13px!important}
.mi-entry-stats>div{min-height:64px!important;padding:12px!important}.mi-entry-stats strong{font-size:26px!important}

/* Navegación de Producción compacta */
#v333Production .v337-tabs{display:flex!important;overflow-x:auto!important;scrollbar-width:none!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 0 5px!important;margin:0 0 16px!important;gap:8px!important}
#v333Production .v337-tabs::-webkit-scrollbar{display:none!important}
#v333Production .v337-tabs button{flex:0 0 auto!important;min-height:44px!important;padding:9px 14px!important;border:2px solid var(--yy-prod-black)!important;border-radius:16px!important;background:#fff!important;color:var(--yy-prod-black)!important;box-shadow:none!important;font-size:14px!important;line-height:1!important;font-weight:1000!important}
#v333Production .v337-tabs button.active{background:var(--yy-prod-yellow)!important;color:var(--yy-prod-black)!important}
#v333Production .v337-tabs button::before,#v333Production .v337-tabs button::after{display:none!important;content:none!important}

/* Tarjetas principales de bases de datos */
#v333Production .prod-db-section{position:relative!important;background:#fff!important;border:0!important;border-radius:25px!important;box-shadow:var(--yy-prod-shadow)!important;padding:19px!important;margin:10px 6px 24px 0!important;overflow:visible!important}
#v333Production .prod-db-section::before,#v333Production .prod-db-section::after{display:none!important;content:none!important}
#v333Production .prod-db-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
#v333Production .prod-db-heading>div{min-width:0}
#v333Production .prod-db-heading span{display:block;color:#5b5b5b;font-size:11px;line-height:1;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px}
#v333Production .prod-db-heading h3{margin:0 0 5px!important;padding:0!important;font-size:27px!important;line-height:1!important;letter-spacing:-.045em!important}
#v333Production .prod-db-heading p{margin:0;color:#444;font-size:14px;line-height:1.3;font-weight:800}
#v333Production .prod-db-add{width:auto!important;min-width:150px!important;min-height:48px!important;margin:0!important;padding:10px 14px!important;font-size:14px!important}

/* Buscar material: campo directo, sin caja sobre caja */
#v333Production .prod-db-filter{margin:0 0 15px;padding:0;background:transparent;border:0;box-shadow:none}
#v333Production .prod-db-filter>label{display:block;margin:0 0 7px;font-size:15px;font-weight:1000;color:var(--yy-prod-black)}
#v333Production .prod-db-search-row{position:relative;display:block;background:transparent;border:0;padding:0;box-shadow:none}
#v333Production .prod-db-search-row input{width:100%!important;min-height:54px!important;box-sizing:border-box!important;background:var(--yy-prod-field)!important;border:0!important;border-radius:18px!important;box-shadow:none!important;padding:12px 52px 12px 15px!important;font:inherit!important;font-size:17px!important;font-weight:850!important;color:var(--yy-prod-black)!important;outline:none!important}
#v333Production .prod-db-search-row input:focus{outline:3px solid var(--yy-prod-black)!important;box-shadow:0 0 0 4px var(--yy-prod-yellow)!important}
#v333Production .prod-db-search-row button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:0;border-radius:12px;background:var(--yy-prod-black);color:#fff;font-size:25px;line-height:1;font-weight:900;padding:0}
#v333Production .prod-db-filter small{display:block;margin-top:7px;color:#666;font-size:12px;font-weight:850}

/* Listas internas compactas */
#v333Production .prod-db-list,#v333Production .prod-history-list{display:grid!important;gap:10px!important;margin:0!important}
#v333Production .prod-db-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;background:var(--yy-prod-field)!important;border:0!important;border-radius:18px!important;box-shadow:none!important;padding:13px 14px!important;margin:0!important;min-height:0!important}
#v333Production .prod-db-card::before,#v333Production .prod-db-card::after{display:none!important;content:none!important}
#v333Production .prod-db-card-copy{min-width:0}
#v333Production .prod-db-card b{display:block!important;color:var(--yy-prod-black)!important;font-size:17px!important;line-height:1.08!important;font-weight:1000!important;letter-spacing:-.025em!important}
#v333Production .prod-db-card span{display:block!important;color:#555!important;margin-top:4px!important;font-size:13px!important;line-height:1.25!important;font-weight:800!important}
#v333Production .prod-db-card>button{min-width:78px!important;min-height:42px!important;border:0!important;border-radius:14px!important;background:var(--yy-prod-black)!important;color:var(--yy-prod-yellow)!important;box-shadow:none!important;padding:9px 12px!important;font-size:13px!important;font-weight:1000!important}

/* Editores compactos */
#v333Production .prod-db-editor{background:var(--yy-prod-field)!important;border:0!important;border-radius:20px!important;box-shadow:none!important;padding:15px!important;margin:0 0 12px!important}
#v333Production .prod-db-editor::before,#v333Production .prod-db-editor::after{display:none!important;content:none!important}
#v333Production .prod-db-editor-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
#v333Production .prod-db-editor-head h4{margin:0!important;font-size:21px!important;letter-spacing:-.035em!important}
#v333Production .prod-db-editor-head .v335-outline-btn{width:auto!important;min-width:90px!important;min-height:42px!important;margin:0!important;padding:8px 12px!important;font-size:13px!important}
#v333Production .prod-db-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
#v333Production .prod-db-form-grid label{display:flex;flex-direction:column;gap:6px;min-width:0}
#v333Production .prod-db-form-grid label>span{font-size:13px!important;font-weight:1000!important;color:var(--yy-prod-black)!important}
#v333Production .prod-db-form-grid input,#v333Production .prod-db-form-grid select{width:100%!important;min-height:51px!important;box-sizing:border-box!important;background:#fff!important;border:0!important;border-radius:16px!important;box-shadow:none!important;padding:11px 13px!important;font:inherit!important;font-size:16px!important;font-weight:850!important;color:var(--yy-prod-black)!important}
#v333Production .prod-db-editor-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
#v333Production .prod-db-editor-actions button{width:100%!important;margin:0!important;min-height:48px!important;font-size:14px!important}

/* Sobrantes e historial */
#v333Production .prod-scrap-direct-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
#v333Production .prod-scrap-direct-actions button{width:100%!important;margin:0!important;min-height:50px!important;font-size:14px!important}
#v333Production .prod-db-subtitle{margin:0 0 10px!important;font-size:18px!important;letter-spacing:-.025em!important}
#v333Production .prod-scrap-card{background:var(--yy-prod-field)!important;border:0!important;border-radius:20px!important;box-shadow:none!important;padding:14px!important;margin:0 0 11px!important}
#v333Production .prod-scrap-card::before,#v333Production .prod-scrap-card::after{display:none!important;content:none!important}
#v333Production .prod-scrap-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
#v333Production .prod-scrap-head h4{margin:0!important;font-size:18px!important}
#v333Production .prod-scrap-head span{background:var(--yy-prod-yellow);border-radius:999px;padding:5px 8px;font-size:10px;font-weight:1000;text-transform:uppercase}
#v333Production .prod-scrap-data{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
#v333Production .prod-scrap-data>div{background:#fff;border-radius:14px;padding:9px 10px}
#v333Production .prod-scrap-data span{display:block;color:#666;font-size:10px;font-weight:1000;text-transform:uppercase}
#v333Production .prod-scrap-data b{display:block;margin-top:3px;font-size:13px;line-height:1.15;font-weight:1000}
#v333Production .prod-scrap-card .v47-scrap-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin-top:11px!important}
#v333Production .prod-scrap-card .v47-scrap-actions button{width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px!important;font-size:11px!important}
#v333Production .prod-db-empty{background:var(--yy-prod-field)!important;border:0!important;border-radius:18px!important;padding:20px!important;text-align:center!important;color:#666!important;font-size:15px!important;font-weight:900!important}

@media(max-width:700px){
  .mi-production-entry{grid-template-columns:1fr!important}.mi-entry-actions{grid-template-columns:1fr}
  .mi-list-tools{grid-template-columns:1fr!important}.mi-material-card{padding:14px!important}
  #v333Production .prod-db-section{padding:16px!important;margin-right:5px!important;box-shadow:-5px 6px 0 #050505!important}
  #v333Production .prod-db-heading{flex-direction:column!important;align-items:stretch!important}
  #v333Production .prod-db-add{width:100%!important}
  #v333Production .prod-db-form-grid{grid-template-columns:1fr!important}
  #v333Production .prod-scrap-direct-actions{grid-template-columns:1fr!important}
  #v333Production .prod-scrap-data{grid-template-columns:1fr 1fr!important}
  #v333Production .prod-scrap-card .v47-scrap-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:420px){
  #v333Production .prod-db-card{grid-template-columns:1fr!important}
  #v333Production .prod-db-card>button{width:100%!important}
  #v333Production .prod-scrap-data{grid-template-columns:1fr!important}
}

/* Botones directos del inventario con el componente oficial */
.mi-entry-actions button{
  -webkit-appearance:none!important;appearance:none!important;box-sizing:border-box!important;
  min-height:54px!important;padding:12px 16px!important;border:2.5px solid #050505!important;
  border-radius:20px!important;box-shadow:4px 4px 0 #050505!important;
  font-family:inherit!important;font-size:16px!important;line-height:1.08!important;font-weight:1000!important;
  display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;
}
.mi-entry-actions .primary-btn{background:#f6c400!important;color:#050505!important}
.mi-entry-actions .secondary-btn{background:#fff!important;color:#050505!important}
.mi-entry-actions button:active{transform:translate(3px,3px)!important;box-shadow:1px 1px 0 #050505!important}

/* Cotizador de Producción: mismos contenedores principales e internos del ERP */
#v333Production > .v333-layer,
#v333Production > .v333-card:not(.prod-db-card),
#v333Production > .v45-section,
#v333Production > .v44-leftover-section,
#v333Production > .v44-supplier{
  position:relative!important;background:#fff!important;border:0!important;border-radius:25px!important;
  box-shadow:var(--yy-prod-shadow)!important;padding:18px!important;margin:12px 6px 22px 0!important;overflow:visible!important;
}
#v333Production > .v333-layer::before,
#v333Production > .v333-card:not(.prod-db-card)::before,
#v333Production > .v45-section::before,
#v333Production > .v44-leftover-section::before,
#v333Production > .v44-supplier::before,
#v333Production > .v333-layer::after,
#v333Production > .v333-card:not(.prod-db-card)::after,
#v333Production > .v45-section::after,
#v333Production > .v44-leftover-section::after,
#v333Production > .v44-supplier::after{display:none!important;content:none!important}
#v333Production > .v333-layer .v333-card,
#v333Production > .v333-layer .v45-card,
#v333Production > .v333-card .v333-card,
#v333Production > .v333-card .v45-card,
#v333Production > .v45-section .v333-card,
#v333Production > .v45-section .v45-card{
  background:var(--yy-prod-field)!important;border:0!important;border-radius:18px!important;
  box-shadow:none!important;padding:14px!important;margin:10px 0!important;overflow:visible!important;
}
#v333Production > .v333-layer .v333-card::before,
#v333Production > .v333-layer .v45-card::before,
#v333Production > .v333-card .v333-card::before,
#v333Production > .v333-card .v45-card::before,
#v333Production > .v45-section .v333-card::before,
#v333Production > .v45-section .v45-card::before{display:none!important;content:none!important}
#v333Production input:not([type="checkbox"]):not([type="radio"]),
#v333Production select,#v333Production textarea{
  box-sizing:border-box!important;background:var(--yy-prod-field)!important;border:0!important;border-radius:17px!important;
  box-shadow:none!important;color:#050505!important;font-family:inherit!important;font-weight:850!important;outline:none!important;
}
#v333Production input:not([type="checkbox"]):not([type="radio"]):focus,
#v333Production select:focus,#v333Production textarea:focus{outline:3px solid #050505!important;box-shadow:0 0 0 4px var(--yy-prod-yellow)!important}
#v333Production .v335-help{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:5px 0 14px!important;color:#555!important;font-size:14px!important;line-height:1.3!important;font-weight:800!important}
@media(max-width:700px){
  #v333Production > .v333-layer,#v333Production > .v333-card:not(.prod-db-card),#v333Production > .v45-section,#v333Production > .v44-leftover-section,#v333Production > .v44-supplier{padding:16px!important;box-shadow:-5px 6px 0 #050505!important;margin-right:5px!important}
}


/* Yellow ERP v51.156 · Restauración integral del sistema visual de Producción */
#v333Production{min-width:0!important}

/* Cinco apartados visibles, sin carrusel ni botones desproporcionados */
#v333Production .v337-tabs{width:100%!important;box-sizing:border-box!important}
@media(max-width:700px){
  #v333Production .v337-tabs{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:7px!important;
    overflow:visible!important;
    padding:0 0 5px!important;
  }
  #v333Production .v337-tabs button{
    grid-column:span 2!important;
    width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    height:42px!important;
    padding:7px 5px!important;
    border:2px solid #050505!important;
    border-radius:14px!important;
    background:#fff!important;
    color:#050505!important;
    box-shadow:none!important;
    font-family:inherit!important;
    font-size:12px!important;
    line-height:1!important;
    font-weight:1000!important;
    text-align:center!important;
  }
  #v333Production .v337-tabs button[data-view="hardware"],
  #v333Production .v337-tabs button[data-view="history"]{grid-column:span 3!important}
  #v333Production .v337-tabs button.active{background:#f6c400!important;color:#050505!important}
}

/* Jerarquía tipográfica aprobada: títulos claros y textos auxiliares discretos */
#v333Production h3,#v333Production h4,#v333Production label,#v333Production button,#v333Production input,#v333Production select,#v333Production textarea{font-family:inherit!important}
#v333Production > .v333-layer .v333-layer-head h3,
#v333Production > .v333-card>h3,
#v333Production > .v45-section>h3,
#v333Production > .v44-leftover-section>h3,
#v333Production > .v44-supplier>h3{font-size:25px!important;line-height:1.04!important;letter-spacing:-.04em!important;margin:0 0 14px!important;color:#050505!important}
#v333Production .v333-card h4,#v333Production .v45-card h4,#v333Production .v336-sheet-box h4{font-size:20px!important;line-height:1.08!important;letter-spacing:-.03em!important;margin:0 0 10px!important;color:#050505!important}
#v333Production .v333-layer-head small,#v333Production .v335-help,#v333Production .prod-sheet-note{font-size:13px!important;line-height:1.3!important;color:#5d5d5d!important;font-weight:800!important}

/* Campos oficiales: sin contorno gris, sin cajas dentro de cajas */
#v333Production .v333-field,#v333Production .v45-field,#v333Production .prod-field{display:flex!important;flex-direction:column!important;gap:7px!important;margin:10px 0!important;min-width:0!important}
#v333Production .v333-field>span,#v333Production .v45-field>span,#v333Production .prod-field>span,
#v333Production .prod-db-form-grid label>span{display:block!important;margin:0!important;color:#050505!important;font-size:15px!important;line-height:1.15!important;font-weight:1000!important}
#v333Production input:not([type="checkbox"]):not([type="radio"]),
#v333Production select,#v333Production textarea{
  width:100%!important;
  min-width:0!important;
  min-height:52px!important;
  box-sizing:border-box!important;
  padding:12px 14px!important;
  border:0!important;
  border-radius:17px!important;
  background:#f3f3f3!important;
  box-shadow:none!important;
  color:#050505!important;
  font-size:17px!important;
  line-height:1.15!important;
  font-weight:850!important;
  outline:none!important;
}
#v333Production input:not([type="checkbox"]):not([type="radio"]):focus,
#v333Production select:focus,#v333Production textarea:focus{outline:3px solid #050505!important;box-shadow:0 0 0 4px #f6c400!important}
#v333Production input:disabled,#v333Production select:disabled{opacity:.6!important;color:#555!important}

/* Tarjetas internas: gris neutro, sin borde ni sombra propia */
#v333Production .v333-layer .v333-card,
#v333Production .v333-layer .v45-card,
#v333Production .v336-sheet-box,
#v333Production .prod-sheet-source-box,
#v333Production .prod-sheet-price,
#v333Production .v45-change-size{
  background:#f3f3f3!important;
  border:0!important;
  border-radius:18px!important;
  box-shadow:none!important;
  padding:15px!important;
  margin:10px 0!important;
}
#v333Production .v45-change-size .v45-info-box{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 0 8px!important;margin:0!important}
#v333Production .v45-change-size .v45-info-box>div{background:transparent!important;padding:0!important}
#v333Production .v45-info-label{font-size:12px!important;color:#666!important;font-weight:1000!important;text-transform:uppercase!important;letter-spacing:.06em!important}
#v333Production .v45-info-material{display:block!important;margin-top:4px!important;color:#050505!important;font-size:18px!important;line-height:1.1!important;font-weight:1000!important}

/* Origen de lámina o sobrante */
#v333Production .prod-sheet-source-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
#v333Production .prod-sheet-source-head h4{margin:0!important}
#v333Production .prod-manage-inventory{
  width:auto!important;min-width:140px!important;min-height:42px!important;margin:0!important;padding:8px 11px!important;
  border:2px solid #050505!important;border-radius:14px!important;background:#fff!important;color:#050505!important;
  box-shadow:none!important;font-size:13px!important;font-weight:1000!important
}
#v333Production .prod-sheet-note{display:block!important;margin-top:7px!important}
#v333Production .prod-price-compare-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
#v333Production .prod-price-compare-head span{display:block!important;font-size:10px!important;letter-spacing:.08em!important;font-weight:1000!important;color:#666!important}
#v333Production .prod-price-compare-head h4{margin:3px 0 0!important}
#v333Production .prod-price-compare-head>b{flex:0 0 auto!important;background:#fff!important;border-radius:12px!important;padding:8px 10px!important;font-size:13px!important;font-weight:1000!important}
#v333Production .prod-price-comparison{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important}
#v333Production .prod-price-comparison>div{background:#fff!important;border-radius:13px!important;padding:9px 10px!important}
#v333Production .prod-price-comparison span{display:block!important;font-size:10px!important;font-weight:1000!important;text-transform:uppercase!important;color:#666!important}
#v333Production .prod-price-comparison b{display:block!important;margin-top:3px!important;font-size:15px!important;line-height:1.1!important;color:#050505!important}

/* Botones: componentes oficiales, sin perder jerarquía */
#v333Production .v333-btn,#v333Production .v335-main-btn,#v333Production .v335-outline-btn,#v333Production .v335-danger-btn{
  -webkit-appearance:none!important;appearance:none!important;box-sizing:border-box!important;width:100%!important;
  min-height:52px!important;margin:8px 0!important;padding:11px 15px!important;border:2.5px solid #050505!important;
  border-radius:19px!important;box-shadow:4px 4px 0 #050505!important;font-family:inherit!important;font-size:16px!important;
  line-height:1.08!important;font-weight:1000!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important
}
#v333Production .v333-btn.v333-yellow,#v333Production .v335-main-btn{background:#f6c400!important;color:#050505!important}
#v333Production .v335-outline-btn{background:#fff!important;color:#050505!important}
#v333Production .v333-btn:not(.v333-yellow),#v333Production .v335-danger-btn{background:#050505!important;color:#f6c400!important}
#v333Production .v333-btn:active,#v333Production .v335-main-btn:active,#v333Production .v335-outline-btn:active,#v333Production .v335-danger-btn:active{transform:translate(3px,3px)!important;box-shadow:1px 1px 0 #050505!important}
#v333Production .prod-db-card>button,#v333Production .prod-cloud-scrap-card>button{box-shadow:none!important;border:0!important;border-radius:14px!important;background:#050505!important;color:#f6c400!important;min-height:42px!important;font-size:13px!important;font-weight:1000!important}

/* Materiales: editor estable y compacto */
#v333Production .prod-db-editor-head>div>small{display:block!important;margin-bottom:4px!important;color:#666!important;font-size:10px!important;line-height:1!important;font-weight:1000!important;letter-spacing:.08em!important}
#v333Production .prod-db-editor-head .v335-outline-btn{width:auto!important;min-width:92px!important;min-height:42px!important;margin:0!important;padding:8px 12px!important;box-shadow:none!important;border-width:2px!important;border-radius:14px!important;font-size:13px!important}
#v333Production .prod-db-form-grid input,#v333Production .prod-db-form-grid select{background:#fff!important}
#v333Production .prod-db-form-grid label>span small{display:inline!important;color:#666!important;font-size:11px!important;font-weight:850!important}
#v333Production .prod-db-editor-actions{align-items:stretch!important}
#v333Production .prod-db-editor-actions button{margin:0!important}

/* Sobrantes disponibles y transferencia del Optimizador */
#v333Production .prod-cloud-scrap-list{display:grid!important;gap:10px!important;margin:0 0 18px!important}
#v333Production .prod-cloud-scrap-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,.65fr) auto!important;align-items:center!important;gap:11px!important;background:#f3f3f3!important;border:0!important;border-radius:18px!important;padding:13px!important}
#v333Production .prod-cloud-scrap-copy span{display:block!important;color:#666!important;font-size:10px!important;font-weight:1000!important;letter-spacing:.07em!important;text-transform:uppercase!important}
#v333Production .prod-cloud-scrap-copy h4{margin:3px 0 4px!important;font-size:18px!important}
#v333Production .prod-cloud-scrap-copy p{margin:0!important;color:#555!important;font-size:13px!important;line-height:1.25!important;font-weight:800!important}
#v333Production .prod-cloud-scrap-costs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
#v333Production .prod-cloud-scrap-costs>div{background:#fff!important;border-radius:12px!important;padding:8px 9px!important}
#v333Production .prod-cloud-scrap-costs span{display:block!important;color:#666!important;font-size:9px!important;font-weight:1000!important;text-transform:uppercase!important}
#v333Production .prod-cloud-scrap-costs b{display:block!important;margin-top:3px!important;font-size:13px!important;line-height:1.1!important}
#v333Production .prod-optimizer-import{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;background:#f6c400!important;border:0!important;border-radius:20px!important;box-shadow:none!important;padding:14px 15px!important;margin:0 0 15px!important}
#v333Production .prod-optimizer-import span{display:block!important;font-size:10px!important;font-weight:1000!important;letter-spacing:.08em!important}
#v333Production .prod-optimizer-import b{display:block!important;font-size:19px!important;line-height:1.08!important;margin-top:3px!important}
#v333Production .prod-optimizer-import small{display:block!important;font-size:12px!important;line-height:1.25!important;margin-top:4px!important;font-weight:800!important}
#v333Production .prod-optimizer-import button{flex:0 0 auto!important;min-height:40px!important;border:2px solid #050505!important;border-radius:13px!important;background:#fff!important;color:#050505!important;box-shadow:none!important;padding:8px 10px!important;font-size:11px!important;font-weight:1000!important}

/* WhatsApp: contenido compacto y legible */
#v333Production .v91-wa-scroll{white-space:pre-wrap!important;min-height:0!important;max-height:320px!important;overflow:auto!important;background:#f3f3f3!important;border:0!important;border-radius:18px!important;padding:15px!important;font-size:16px!important;line-height:1.42!important;font-weight:800!important}
#v333Production .v91-wa-source{display:none!important}
#v333Production .v91-wa-card .v333-btn{margin-top:12px!important}

@media(max-width:700px){
  #v333Production > .v333-layer,#v333Production > .v333-card:not(.prod-db-card),#v333Production > .v45-section,#v333Production > .v44-leftover-section,#v333Production > .v44-supplier{padding:15px!important;margin-bottom:19px!important}
  #v333Production .prod-sheet-source-head,#v333Production .prod-price-compare-head{flex-direction:column!important;align-items:stretch!important}
  #v333Production .prod-manage-inventory{width:100%!important}
  #v333Production .prod-cloud-scrap-card{grid-template-columns:1fr!important}
  #v333Production .prod-cloud-scrap-card>button{width:100%!important}
  #v333Production .prod-optimizer-import{align-items:stretch!important;flex-direction:column!important}
  #v333Production .prod-optimizer-import button{width:100%!important}
  #v333Production .v91-wa-scroll{max-height:270px!important;font-size:15px!important}
  #v333Production .prod-db-editor-actions{grid-template-columns:1fr!important}
}

/* Yellow ERP v51.156 · Compactación visual de navegación y catálogo de Producción */
@media (max-width:700px){
  #v333Production .v337-tabs{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:44px!important;
    align-items:stretch!important;
    gap:8px!important;
    width:100%!important;
    overflow:visible!important;
    padding:0 0 5px!important;
    margin:0 0 16px!important;
  }
  #v333Production .v337-tabs button,
  #v333Production .v337-tabs button[data-view="history"],
  #v333Production .v337-tabs button[data-view="hardware"]{
    box-sizing:border-box!important;
    grid-column:span 2!important;
    width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:7px 5px!important;
    border:2px solid #050505!important;
    border-radius:14px!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    font-size:12px!important;
    line-height:1!important;
  }
  #v333Production .v337-tabs button[data-view="hardware"],
  #v333Production .v337-tabs button[data-view="history"]{
    grid-column:span 3!important;
  }

  /* El botón de limpiar pertenece al campo, no es un botón principal. */
  #v333Production .prod-db-search-row button{
    box-sizing:border-box!important;
    right:8px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:23px!important;
    line-height:1!important;
  }

  /* Catálogo compacto: la acción permanece junto a la información. */
  #v333Production .prod-db-card{
    grid-template-columns:minmax(0,1fr) 82px!important;
    align-items:center!important;
    gap:10px!important;
    padding:13px 14px!important;
  }
  #v333Production .prod-db-card>button{
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    margin:0!important;
    padding:8px 9px!important;
  }
}
