/* Ubicación:
   Mayorista/admin/modules/listas-precio/listas-precio.css
*/

.price-lists-page {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--color-text, #171717);
}

.price-lists-page *,
.price-lists-page *::before,
.price-lists-page *::after {
  box-sizing: border-box;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.price-lists-page-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 2px;
}

.price-lists-page-header > div:first-child {
  min-width: 0;
}

.price-lists-page-header > div:first-child > span,
.price-list-detail-header > div:first-child > span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-muted, #737373);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.price-lists-page-header h2,
.price-list-detail-header h2 {
  margin: 0;
  color: var(--color-text, #171717);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.price-lists-page-header p,
.price-list-detail-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--color-muted, #737373);
  font-size: 14px;
  line-height: 1.55;
}

.price-lists-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

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

.price-lists-primary-button,
.price-lists-secondary-button,
.price-lists-icon-button,
.price-lists-save-button,
.price-lists-delete-button {
  min-height: 40px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.price-lists-primary-button,
.price-lists-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
}

.price-lists-primary-button {
  border-color: var(--color-text, #171717);
  background: var(--color-text, #171717);
  color: var(--color-surface, #ffffff);
}

.price-lists-secondary-button {
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
}

.price-lists-primary-button:hover,
.price-lists-secondary-button:hover {
  transform: translateY(-1px);
}

.price-lists-primary-button:disabled,
.price-lists-secondary-button:disabled,
.price-lists-save-button:disabled,
.price-lists-delete-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.price-lists-primary-button svg,
.price-lists-secondary-button svg {
  width: 17px;
  height: 17px;
}

.price-lists-icon-button,
.price-lists-save-button,
.price-lists-delete-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
}

.price-lists-icon-button svg,
.price-lists-save-button svg,
.price-lists-delete-button svg {
  width: 17px;
  height: 17px;
}

.price-lists-save-button:hover {
  border-color: var(--color-text, #171717);
  background: var(--color-bg-soft, #f5f5f5);
}

.price-lists-delete-button {
  color: #b42318;
}

.price-lists-delete-button:hover {
  border-color: #e8aaa4;
  background: #fff3f2;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.price-lists-layout {
  width: 100%;
  min-width: 0;
  min-height: 680px;
  display: grid;
  grid-template-columns:
    minmax(270px, 320px)
    minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 14px;
  background: var(--color-surface, #ffffff);
}

.price-lists-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-line, #d8d8d8);
  background: var(--color-surface, #ffffff);
}

.price-lists-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #ffffff);
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.price-lists-sidebar-header {
  min-height: 66px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-line, #d8d8d8);
}

.price-lists-sidebar-header > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-lists-sidebar-header strong {
  font-size: 14px;
  font-weight: 800;
}

.price-lists-sidebar-header span {
  color: var(--color-muted, #737373);
  font-size: 12px;
}

.price-lists-sidebar-filters {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--color-line, #d8d8d8);
}

.price-lists-sidebar-filters select,
.price-lists-products-toolbar select {
  width: 100%;
  min-height: 40px;
  padding: 0 34px 0 11px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 9px;
  outline: none;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
  font: inherit;
  font-size: 13px;
}

.price-lists-sidebar-content {
  min-height: 0;
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
}

.price-lists-search {
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 9px;
  background: var(--color-surface, #ffffff);
}

.price-lists-search:focus-within,
.price-lists-sidebar-filters select:focus,
.price-lists-products-toolbar select:focus,
.price-lists-field input:focus,
.price-lists-field textarea:focus,
.price-lists-field select:focus,
.price-lists-price-input:focus,
.price-lists-tax-input:focus-within,
.price-lists-currency-select:focus {
  border-color: var(--color-text, #171717);
  box-shadow: 0 0 0 3px rgba(24, 24, 24, 0.07);
}

.price-lists-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--color-muted, #737373);
}

.price-lists-search input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color-text, #171717);
  font: inherit;
  font-size: 13px;
}

/* =========================================================
   TARJETAS DE LISTAS
   ========================================================= */

.price-list-card {
  position: relative;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 11px;
  background: var(--color-surface, #ffffff);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.price-list-card:hover {
  border-color: #a8a8a8;
  background: var(--color-bg-soft, #f8f8f8);
}

.price-list-card.is-selected {
  border-color: var(--color-text, #171717);
  background: var(--color-bg-soft, #f7f7f7);
  box-shadow: inset 3px 0 0 var(--color-text, #171717);
}

.price-list-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.price-list-card header > div {
  min-width: 0;
}

.price-list-card header > div > span {
  display: block;
  margin-bottom: 3px;
  color: var(--color-muted, #737373);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.price-list-card header strong {
  display: block;
  overflow: hidden;
  color: var(--color-text, #171717);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-list-status {
  min-height: 23px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.price-list-status.is-active {
  background: #e8f7ed;
  color: #176636;
}

.price-list-status.is-inactive {
  background: #f0f0f0;
  color: #686868;
}

.price-list-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-muted, #737373);
  font-size: 11px;
}

.price-list-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.price-list-card-meta svg {
  width: 13px;
  height: 13px;
}

.price-list-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--color-line, #dedede);
  border-radius: 8px;
  overflow: hidden;
}

.price-list-card-stats > div {
  min-width: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-list-card-stats > div + div {
  border-left: 1px solid var(--color-line, #dedede);
}

.price-list-card-stats span {
  color: var(--color-muted, #737373);
  font-size: 10px;
}

.price-list-card-stats strong {
  font-size: 13px;
  font-weight: 800;
}

.price-list-default-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #725600;
  font-size: 10px;
  font-weight: 800;
}

.price-list-default-label svg {
  width: 13px;
  height: 13px;
}

.price-list-card footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid var(--color-line, #e2e2e2);
}

.price-list-card footer button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 8px;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
  cursor: pointer;
}

.price-list-card footer button:hover {
  border-color: var(--color-text, #171717);
}

.price-list-card footer svg {
  width: 15px;
  height: 15px;
}

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

.price-list-detail-header {
  min-height: 136px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--color-line, #d8d8d8);
}

.price-list-detail-header h2 {
  font-size: 25px;
}

.price-list-detail-header p {
  max-width: 560px;
  font-size: 13px;
}

.price-list-detail-summary {
  min-width: 440px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 10px;
  overflow: hidden;
}

.price-list-detail-summary article {
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-list-detail-summary article + article {
  border-left: 1px solid var(--color-line, #d8d8d8);
}

.price-list-detail-summary span {
  color: var(--color-muted, #737373);
  font-size: 10px;
}

.price-list-detail-summary strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-lists-no-selection {
  min-height: 180px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--color-muted, #737373);
}

.price-lists-no-selection > svg {
  width: 34px;
  height: 34px;
}

.price-lists-no-selection > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-lists-no-selection strong {
  color: var(--color-text, #171717);
  font-size: 15px;
}

.price-lists-no-selection span {
  font-size: 13px;
}

/* =========================================================
   PRODUCTOS
   ========================================================= */

.price-lists-products-panel {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.price-lists-products-toolbar {
  padding: 12px;
  display: grid;
  grid-template-columns:
    minmax(260px, 1fr)
    minmax(170px, 220px)
    minmax(160px, 210px);
  gap: 9px;
  border-bottom: 1px solid var(--color-line, #d8d8d8);
}

.price-lists-table-wrapper {
  width: 100%;
  min-width: 0;
  flex: 1;
  overflow: auto;
}

.price-lists-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.price-lists-table th,
.price-lists-table td {
  padding: 11px 10px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-line, #dedede);
  color: var(--color-text, #171717);
  font-size: 12px;
  text-align: center;
}

.price-lists-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 44px;
  background: var(--color-bg-soft, #f7f7f7);
  color: var(--color-muted, #666666);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.price-lists-table th:nth-child(1),
.price-lists-table td:nth-child(1) {
  width: 260px;
  text-align: left;
}

.price-lists-table th:nth-child(2),
.price-lists-table td:nth-child(2) {
  width: 150px;
  text-align: left;
}

.price-lists-table th:nth-child(3),
.price-lists-table td:nth-child(3),
.price-lists-table th:nth-child(5),
.price-lists-table td:nth-child(5),
.price-lists-table th:nth-child(6),
.price-lists-table td:nth-child(6) {
  width: 135px;
}

.price-lists-table th:nth-child(4),
.price-lists-table td:nth-child(4) {
  width: 90px;
}

.price-lists-table th:nth-child(7),
.price-lists-table td:nth-child(7) {
  width: 85px;
}

.price-lists-table th:nth-child(8),
.price-lists-table td:nth-child(8) {
  width: 70px;
}

.price-lists-table th:nth-child(9),
.price-lists-table td:nth-child(9) {
  width: 95px;
}

.price-lists-table tbody tr {
  background: var(--color-surface, #ffffff);
}

.price-lists-table tbody tr:hover {
  background: var(--color-bg-soft, #fafafa);
}

.price-lists-table tbody tr.without-price {
  background: #fffdf6;
}

.price-lists-product-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-lists-product-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 8px;
  background: var(--color-bg-soft, #f5f5f5);
  color: var(--color-muted, #777777);
}

.price-lists-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-lists-product-image svg {
  width: 18px;
  height: 18px;
}

.price-lists-product-cell > div:last-child {
  min-width: 0;
}

.price-lists-product-cell strong,
.price-lists-product-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-lists-product-cell strong {
  font-size: 12px;
  font-weight: 800;
}

.price-lists-product-cell span {
  margin-top: 3px;
  color: var(--color-muted, #737373);
  font-size: 10px;
}

.price-lists-price-input,
.price-lists-currency-select {
  width: 100%;
  height: 38px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 8px;
  outline: none;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.price-lists-price-input {
  padding: 0 8px;
}

.price-lists-price-input.is-final {
  border-color: #adadad;
  font-weight: 850;
}

.price-lists-currency-select {
  padding: 0 7px;
}

.price-lists-tax-input {
  width: 100%;
  height: 38px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 8px;
  background: var(--color-surface, #ffffff);
}

.price-lists-tax-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--color-text, #171717);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.price-lists-tax-input span {
  color: var(--color-muted, #737373);
  font-size: 11px;
}

.price-lists-tax-amount {
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.price-lists-actions-cell {
  display: table-cell;
  white-space: nowrap;
}

.price-lists-actions-cell button + button {
  margin-left: 5px;
}

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

.price-lists-switch {
  position: relative;
  width: 38px;
  height: 22px;
  display: inline-block;
  cursor: pointer;
}

.price-lists-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.price-lists-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfcfcf;
  transition: background 160ms ease;
}

.price-lists-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease;
}

.price-lists-switch input:checked + span {
  background: var(--color-text, #171717);
}

.price-lists-switch input:checked + span::after {
  transform: translateX(16px);
}

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

.price-lists-pagination {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--color-line, #d8d8d8);
  color: var(--color-muted, #737373);
  font-size: 12px;
}

.price-lists-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-lists-pagination button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 8px;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
  cursor: pointer;
}

.price-lists-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.price-lists-pagination svg {
  width: 16px;
  height: 16px;
}

/* =========================================================
   CARGA Y VACÍOS
   ========================================================= */

.price-lists-loading,
.price-lists-side-loading,
.price-lists-side-empty,
.price-lists-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted, #737373);
}

.price-lists-loading {
  min-height: 320px;
  gap: 10px;
  font-size: 13px;
}

.price-lists-side-loading {
  min-height: 140px;
  gap: 8px;
  font-size: 12px;
}

.price-lists-side-empty,
.price-lists-empty {
  flex-direction: column;
  gap: 7px;
  text-align: center;
}

.price-lists-side-empty {
  min-height: 180px;
}

.price-lists-empty {
  min-height: 260px;
}

.price-lists-side-empty svg,
.price-lists-empty svg {
  width: 30px;
  height: 30px;
}

.price-lists-side-empty strong,
.price-lists-empty strong {
  color: var(--color-text, #171717);
  font-size: 14px;
}

.price-lists-side-empty span,
.price-lists-empty span {
  font-size: 12px;
}

.price-lists-empty-cell {
  padding: 0 !important;
}

.price-lists-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid #d0d0d0;
  border-top-color: var(--color-text, #171717);
  border-radius: 50%;
  animation: price-lists-spin 700ms linear infinite;
}

@keyframes price-lists-spin {
  to {
    transform: rotate(360deg);
  }
}

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

.price-lists-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
}

.price-lists-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(3px);
}

.price-lists-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 15px;
  background: var(--color-surface, #ffffff);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.2);
}

.price-lists-modal-header {
  min-height: 78px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--color-line, #d8d8d8);
}

.price-lists-modal-header > div > span {
  display: block;
  margin-bottom: 4px;
  color: var(--color-muted, #737373);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.price-lists-modal-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.price-lists-form {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.price-lists-form-content {
  min-height: 0;
  padding: 19px;
  overflow-y: auto;
}

.price-lists-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.price-lists-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.price-lists-field-full {
  grid-column: 1 / -1;
}

.price-lists-field > span,
.price-lists-check > span {
  color: var(--color-text, #171717);
  font-size: 12px;
  font-weight: 750;
}

.price-lists-field input,
.price-lists-field select,
.price-lists-field textarea {
  width: 100%;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 9px;
  outline: none;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
  font: inherit;
  font-size: 13px;
}

.price-lists-field input,
.price-lists-field select {
  min-height: 42px;
  padding: 0 11px;
}

.price-lists-field textarea {
  min-height: 100px;
  padding: 11px;
  resize: vertical;
  line-height: 1.5;
}

.price-lists-check {
  min-height: 42px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 9px;
  background: var(--color-bg-soft, #fafafa);
}

.price-lists-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-text, #171717);
}

.price-lists-modal-footer {
  min-height: 68px;
  padding: 13px 19px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--color-line, #d8d8d8);
}

/* =========================================================
   MENSAJES
   ========================================================= */

.price-lists-message {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2200;
  max-width: min(430px, calc(100vw - 44px));
  min-height: 48px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-line, #d8d8d8);
  border-radius: 11px;
  background: var(--color-surface, #ffffff);
  color: var(--color-text, #171717);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.price-lists-message.is-error {
  border-color: #e4a39d;
  color: #a32119;
}

.price-lists-message svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .price-list-status.is-active,
body.dark .price-list-status.is-active {
  background: #163c25;
  color: #8ce6ae;
}

html[data-theme="dark"] .price-list-status.is-inactive,
body.dark .price-list-status.is-inactive {
  background: #292929;
  color: #bdbdbd;
}

html[data-theme="dark"] .price-list-card.is-selected,
body.dark .price-list-card.is-selected,
html[data-theme="dark"] .price-list-card:hover,
body.dark .price-list-card:hover,
html[data-theme="dark"] .price-lists-table tbody tr:hover,
body.dark .price-lists-table tbody tr:hover {
  background: #202020;
}

html[data-theme="dark"] .price-lists-table tbody tr.without-price,
body.dark .price-lists-table tbody tr.without-price {
  background: #242116;
}

html[data-theme="dark"] .price-lists-delete-button:hover,
body.dark .price-lists-delete-button:hover {
  background: #381d1b;
}

html[data-theme="dark"] .price-list-default-label,
body.dark .price-list-default-label {
  color: #e6c968;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {
  .price-lists-layout {
    grid-template-columns:
      280px
      minmax(0, 1fr);
  }

  .price-list-detail-header {
    flex-direction: column;
  }

  .price-list-detail-summary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 920px) {
  .price-lists-page-header {
    flex-direction: column;
  }

  .price-lists-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .price-lists-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .price-lists-sidebar {
    max-height: 480px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line, #d8d8d8);
  }

  .price-lists-sidebar-content {
    max-height: 310px;
  }

  .price-lists-products-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .price-lists-page-header h2 {
    font-size: 26px;
  }

  .price-lists-header-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .price-lists-header-actions button {
    width: 100%;
  }

  .price-list-detail-header {
    padding: 17px;
  }

  .price-list-detail-summary {
    grid-template-columns: 1fr;
  }

  .price-list-detail-summary article + article {
    border-top: 1px solid var(--color-line, #d8d8d8);
    border-left: 0;
  }

  .price-lists-form-grid {
    grid-template-columns: 1fr;
  }

  .price-lists-field-full {
    grid-column: auto;
  }

  .price-lists-modal {
    padding: 10px;
  }

  .price-lists-modal-dialog {
    max-height: calc(100vh - 20px);
  }

  .price-lists-modal-footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .price-lists-modal-footer button {
    width: 100%;
  }
}/* =========================================================
   LISTAS DE PRECIO · PRODUCTOS MÓVIL SIN SCROLL HORIZONTAL
   Agregar al final de listas-precio.css
   ========================================================= */

@media (max-width: 620px) {
  .price-lists-layout,
  .price-lists-main,
  .price-lists-products-panel,
  .price-lists-table-wrapper {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .price-lists-table-wrapper {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .price-lists-table,
  .price-lists-table tbody {
    width: 100%;
    min-width: 0;

    display: block;
  }

  .price-lists-table thead {
    display: none;
  }

  .price-lists-table tbody {
    padding: 8px;
  }

  .price-lists-table tbody tr {
    width: 100%;
    padding: 14px;

    display: grid;
    grid-template-columns: 1fr;
    gap: 0;

    border: 1px solid
      var(--color-line, #d8d8d8);
    border-radius: 10px;

    background:
      var(--color-surface, #ffffff);
  }

  .price-lists-table tbody tr + tr {
    margin-top: 10px;
  }

  .price-lists-table th,
  .price-lists-table td {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .price-lists-table tbody td {
    min-height: 46px;
    padding: 8px 0;

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

    align-items: center;
    gap: 10px;

    border-bottom: 1px solid
      var(--color-line, #dedede);

    text-align: left;
    white-space: normal;
  }

  .price-lists-table tbody td:last-child {
    border-bottom: 0;
  }

  .price-lists-table tbody td:first-child {
    padding: 0 0 12px;

    display: block;

    border-bottom: 1px solid
      var(--color-line, #d8d8d8);
  }

  .price-lists-table tbody td:nth-child(2)::before {
    content: "Categoría";
  }

  .price-lists-table tbody td:nth-child(3)::before {
    content: "Precio neto";
  }

  .price-lists-table tbody td:nth-child(4)::before {
    content: "IVA";
  }

  .price-lists-table tbody td:nth-child(5)::before {
    content: "Importe IVA";
  }

  .price-lists-table tbody td:nth-child(6)::before {
    content: "Precio final";
  }

  .price-lists-table tbody td:nth-child(7)::before {
    content: "Moneda";
  }

  .price-lists-table tbody td:nth-child(8)::before {
    content: "Activo";
  }

  .price-lists-table tbody td:nth-child(n + 2):nth-child(-n + 8)::before {
    min-width: 0;

    color:
      var(--color-muted, #737373);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.035em;
  }

  .price-lists-product-cell {
    width: 100%;
    min-width: 0;
  }

  .price-lists-product-cell > div:last-child {
    flex: 1;
    min-width: 0;
  }

  .price-lists-product-cell strong,
  .price-lists-product-cell span {
    width: 100%;
    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .price-lists-price-input,
  .price-lists-currency-select,
  .price-lists-tax-input {
    width: 100%;
    max-width: 100%;
  }

  .price-lists-tax-amount {
    justify-self: end;

    text-align: right;
  }

  .price-lists-switch {
    justify-self: end;
  }

  .price-lists-actions-cell {
    width: 100% !important;
    padding-top: 12px !important;

    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;

    border-bottom: 0 !important;

    white-space: normal;
  }

  .price-lists-actions-cell::before {
    display: none;
  }

  .price-lists-actions-cell button + button {
    margin-left: 0;
  }

  .price-lists-save-button,
  .price-lists-delete-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .price-lists-pagination {
    padding: 12px;

    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .price-lists-pagination > span,
  .price-lists-pagination > div > span {
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .price-lists-table tbody td {
    grid-template-columns:
      84px
      minmax(0, 1fr);

    gap: 8px;
  }

  .price-lists-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .price-lists-pagination > div {
    justify-content: space-between;
  }
}