#inventario-panel.pl-showing > :not(#commercial-price-screen) { display: none !important; }
.commercial-list-selector { display: grid; gap: 6px; font-size: 13px; font-weight: 650; min-width: 190px; }
.commercial-list-selector[hidden] { display: none; }
.commercial-list-selector select { min-height: 44px; max-width: 100%; border: 1px solid #cadbd2; border-radius: 9px; background: white; color: #226c50; padding: 10px; }
.commercial-sale-selector-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.commercial-sale-selector .commercial-promotion-toggle { min-height: 34px; border: 1px solid #b9d8c8; border-radius: 999px; background: #fff; color: #237f62; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.commercial-sale-selector .commercial-promotion-toggle:hover { background: #edf7f1; }
.commercial-sale-selector .commercial-promotion-toggle:focus-visible { outline: 3px solid #88bba1; outline-offset: 2px; }
.commercial-list-status { color: #587560; font-size: 13px; }
body.commercial-prices-enabled .tire-sale-controls > .field-row { align-content: start; }
body.commercial-prices-enabled :is(#margen-utilidad, #margen-por-medida, #demo2-ajustar-margen, #manual-inventario-margen, #manual-inventario-precio-venta) { display: none !important; }
body.commercial-prices-enabled :is(label[for="margen-utilidad"], label[for="manual-inventario-margen"], label[for="manual-inventario-precio-venta"]) { display: none !important; }
body.commercial-prices-enabled [data-tire-field="margen"], body.commercial-prices-enabled [data-tire-field="precio"] { display: none !important; }
body.commercial-prices-enabled label:has(> [data-tire-field="margen"]), body.commercial-prices-enabled label:has(> [data-tire-field="precio"]), body.commercial-prices-enabled label:has(> [data-general-price-field]) { display: none !important; }
#commercial-price-screen[hidden], #commercial-price-screen [hidden] { display: none !important; }
#commercial-price-screen { color: #21382f; width: 100%; min-width: 0; font-size: 15px; }
#commercial-price-screen * { box-sizing: border-box; }
#commercial-price-screen .pl-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
#commercial-price-screen .pl-eyebrow { color: #258060; font-size: 12px; font-weight: 800; letter-spacing: .09em; margin: 0 0 12px; }
body #inventario-panel #commercial-price-screen h2 { font-size: clamp(28px, 3vw, 44px); text-transform: none; letter-spacing: -.035em; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
#commercial-price-screen h3 { font-size: 21px; margin: 12px 0; line-height: 1.3; overflow-wrap: anywhere; }
#commercial-price-screen .pl-subtitle, #commercial-price-screen .pl-muted { color: #67766e; }
#commercial-price-screen p { line-height: 1.55; }
#commercial-price-screen button { border: 1px solid #cadbd2; color: #226c50; background: #fff; border-radius: 10px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
#commercial-price-screen button:hover { background: #f0f7f3; border-color: #8eb7a1; }
#commercial-price-screen button:disabled { opacity: .5; cursor: default; }
#commercial-price-screen .pl-primary { background: #217a57; color: #fff; border-color: #217a57; }
#commercial-price-screen .pl-primary:hover { background: #176346; }
#commercial-price-screen .pl-danger { color: #a53d34; }
#commercial-price-screen :is(button, input, select):focus-visible { outline: 3px solid #88bba1; outline-offset: 3px; }
#commercial-price-screen .pl-notice { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: #edf6f0; border: 1px solid #d4e8db; border-radius: 12px; color: #426651; font-size: 14px; }
#commercial-price-screen .pl-dot { width: 9px; height: 9px; border-radius: 100%; background: #559977; flex-shrink: 0; }
#commercial-price-screen .pl-status { margin: 8px 0; min-height: 20px; color: #226c50; }
#commercial-price-screen .pl-error { color: #b1342d; }
#commercial-price-screen .pl-overview { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 22px; color: #67766e; }
#commercial-price-screen .pl-overview strong { color: #24392d; font-size: 32px; }
#commercial-price-screen .pl-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 18px 0 24px; }
#commercial-price-screen label { display: grid; gap: 7px; font-weight: 650; font-size: 13px; }
#commercial-price-screen label small { color: #6e7b74; font-weight: 400; line-height: 1.5; }
#commercial-price-screen .pl-search { flex: 1; min-width: 200px; }
#commercial-price-screen input:not([type=checkbox]), #commercial-price-screen select { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #cfdbd4; border-radius: 9px; background: #fff; color: #263d31; font: inherit; font-weight: 400; }
#commercial-price-screen .pl-check { display: flex; align-items: center; min-height: 46px; font-weight: 500; }
#commercial-price-screen .pl-check input { width: 17px; height: 17px; accent-color: #217a57; }
#commercial-price-screen .pl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
#commercial-price-screen .pl-card { border: 1px solid #dce5df; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 3px 12px #23432e05; }
#commercial-price-screen .pl-default { border-top: 3px solid #328c63; }
#commercial-price-screen .pl-card-top, #commercial-price-screen .pl-card-footer, #commercial-price-screen .pl-list-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#commercial-price-screen .pl-icon { display: grid; place-items: center; width: 44px; height: 44px; color: #267753; background: #edf6ef; border-radius: 11px; font-size: 25px; }
#commercial-price-screen .pl-badge { display: inline-block; border-radius: 20px; padding: 5px 10px; font-size: 12px; font-weight: 650; background: #f0f5f1; color: #587560; }
#commercial-price-screen .pl-card > p { color: #69776e; min-height: 46px; }
#commercial-price-screen .pl-card-footer { border-top: 1px solid #edf0ed; margin-top: 20px; padding-top: 18px; }
#commercial-price-screen .pl-card-footer > span { font-size: 12px; color: #7a867d; }
#commercial-price-screen .pl-card-footer button { padding: 7px 10px; }
#commercial-price-screen .pl-empty { text-align: center; color: #6c7b71; padding: 35px 20px; background: #f8faf8; border-radius: 12px; }
#commercial-price-screen .pl-form { border: 1px solid #c2d9cb; border-radius: 14px; padding: 24px; margin-bottom: 24px; background: #f5faf6; }
#commercial-price-screen .pl-form h3 { margin-top: 0; }
#commercial-price-screen fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#commercial-price-screen .pl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
#commercial-price-screen .pl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#commercial-price-screen .pl-form .pl-actions { margin-top: 22px; }
#commercial-price-screen .pl-list-meta { padding: 6px 0 20px; }
#commercial-price-screen .pl-list-meta > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #69776e; font-size: 13px; }
#commercial-price-screen .pl-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid #dce5df; padding-bottom: 12px; }
#commercial-price-screen .pl-tabs button { border-color: transparent; background: transparent; }
#commercial-price-screen .pl-tabs button[aria-pressed=true] { background: #e4f1e9; color: #186743; border-color: #bdd7c7; }
#commercial-price-screen .pl-preserved { padding: 14px 18px; border-left: 3px solid #9ebcab; color: #576f60; background: #f4f7f5; }
#commercial-price-screen .pl-table-wrap { position: relative; overflow-x: auto; border: 1px solid #dce5df; border-radius: 12px; background: #fff; }
#commercial-price-screen .pl-table { width: 100%; border-collapse: collapse; min-width: 650px; margin: 0; }
#commercial-price-screen .pl-table caption { padding: 14px 18px; text-align: left; font-size: 13px; color: #6d7a71; }
#commercial-price-screen .pl-table th { background: #f4f7f5; font-size: 12px; color: #687c6e; }
#commercial-price-screen .pl-table :is(th, td) { text-align: left; padding: 16px 18px; border-bottom: 1px solid #e6ece8; }
#commercial-price-screen .pl-table td:first-child { max-width: 440px; overflow-wrap: anywhere; }
#commercial-price-screen .pl-table small { display: block; margin-top: 5px; color: #77867c; font-size: 12px; }
#commercial-price-screen .pl-table tr:last-child td { border-bottom: 0; }
#commercial-price-screen .pl-pagination { display: flex; gap: 16px; align-items: center; justify-content: flex-end; margin-top: 20px; font-size: 13px; }
#commercial-price-screen .pl-price-preview { margin-top: 18px; padding: 15px; background: #e6f2e9; border-radius: 10px; color: #226b47; font-weight: 750; }
#commercial-price-screen .pl-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 650px) {
  #commercial-price-screen .pl-heading { flex-direction: column; gap: 12px; }
  #commercial-price-screen .pl-overview { align-items: flex-start; flex-direction: column; gap: 6px; }
  #commercial-price-screen .pl-toolbar > * { width: 100%; }
  #commercial-price-screen .pl-form-grid { grid-template-columns: 1fr; }
  #commercial-price-screen .pl-form, #commercial-price-screen .pl-card { padding: 18px; }
  #commercial-price-screen .pl-pagination { justify-content: space-between; gap: 6px; }
  #commercial-price-screen .pl-pagination button { padding: 10px; }
}

/* Keep inventory controls aligned without competing with the page title. */
body.demo2-inventory-modern #inventario-panel .inventory-header-actions {
  margin-left: auto;
  gap: 12px;
  justify-content: flex-end;
}
body.demo2-inventory-modern #inventario-panel .inventory-header-actions > button {
  flex: 0 0 auto;
  white-space: nowrap;
}
body.demo2-inventory-modern #inventario-panel .inventory-header-actions > .commercial-list-selector {
  margin-left: auto;
}
body.demo2-inventory-modern #inventario-panel .demo2-inventory-actions > .commercial-list-selector {
  display: flex;
  flex: 1 1 190px;
  max-width: 280px;
  min-width: 190px;
  align-self: stretch;
  font-size: 0;
}
body.demo2-inventory-modern #inventario-panel .demo2-inventory-actions > .commercial-list-selector select {
  width: 100%;
  min-height: 50px;
  font-size: .88rem;
}
@media (max-width: 720px) {
  body.demo2-inventory-modern #inventario-panel .inventory-header-actions > .commercial-list-selector {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }
  body.demo2-inventory-modern #inventario-panel .demo2-inventory-actions > .commercial-list-selector {
    display: grid;
    width: 100%;
    max-width: none;
    min-width: 0;
    font-size: 13px;
  }
}
