.ip-products {
  margin-top: 18px;
}

.ip-products__toggle {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #f8fafc;
  color: #1f2a44;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ip-products__toggle:hover {
  border-color: #4a90e2;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.ip-products__chevron {
  transition: transform 0.2s ease;
}

.ip-products__toggle[aria-expanded="true"] .ip-products__chevron {
  transform: rotate(180deg);
}

.ip-products__panel {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.8);
  display: none;
}

.ip-products__panel[aria-hidden="false"] {
  display: block;
}

.ip-products__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.ip-products__title-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.ip-products__toolbar-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ip-products__search {
  width: 150px;
  max-width: 100%;
}

.ip-products__title {
  font-weight: 700;
  color: #1e293b;
}

.ip-products__meta {
  font-size: 13px;
  color: #64748b;
  text-align: left;
}


.ip-products__stock-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ip-products__stock-filters .btn-filter {
  padding: 6px 10px;
}

.ip-products__pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  margin-left: auto;
}

.ip-products__per-page {
  min-width: 72px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 6px;
  background: #ffffff;
  color: #1e293b;
  padding: 0 8px;
}
.ip-products__refresh {
  width: 150px;
  height: 30px;
  border: none;
  padding: 7px 14px;
  border-radius: 2px;
  background: #22c55e;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(127, 223, 116, 0.12);
  align-self: center;
}

.ip-products__calculator {
  width: 150px;
  height: 30px;
  border: none;
  padding: 7px 14px;
  border-radius: 2px;
  background: #0ea5e9;
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.12);
  cursor: pointer;
}

.ip-products__calculator:hover {
  background: #0284c7;
}

.ip-products__tariffs {
  width: 150px;
  height: 30px;
  border: none;
  padding: 7px 14px;
  border-radius: 2px;
  background: #6366f1;
  color: #ffffff;
  font-weight: 600;
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.12);
  cursor: pointer;
}

.ip-products__tariffs:hover {
  background: #4f46e5;
}

.ip-products__refresh:hover {
  background: #16a34a;
}

.ip-products__refresh:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}
.ip-products__table {
  overflow-x: auto;
  
}

.ip-products__table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5;
  font-size: 13px;
  table-layout: fixed;
}

.ip-products__table th,
.ip-products__table td {
  padding: 3px 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  vertical-align: middle;
  
}

.ip-products__table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}
.ip-products__table thead th:first-child {
  border-top-left-radius: 15px;
}

.ip-products__table thead th:last-child {
  border-top-right-radius: 8px;
}

.ip-products__table tr:last-child td {
  border-bottom: none;
}
.ip-products__stock-input,
.ip-products__calc-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 13px;
  color: #0f172a;
  background: #fff;
  text-align: center;
}

.ip-products__stock-input:focus,
.ip-products__calc-input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.ip-products__action-button {
  width: 25px;
  height: 25px;
  padding: 0;  border-radius: 0px;
  background: #1e293b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ip-products__action-button:hover {
  background: #0f172a;
}

.ip-products__calc-button {
  width: 25px;
  height: 25px;
  padding: 0;
  border-radius: 0px;
  background: #22c55e;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ip-products__calc-button:hover {
  background: #16a34a;
}

.ip-products__price-tag {
  font-weight: 600;
  color: #0f172a;
}

.ip-products__new-price {
  font-weight: 700;
  color: #16a34a;
}

.ip-products__calc {
  display: grid;
  gap: 12px;
  color: #334155;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.ip-products__calc-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ip-products__calc-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.ip-products__calc-value {
  font-weight: 600;
  color: #0f172a;
}

.ip-products__calc-placeholder {
  padding: 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 13px;
  color: #64748b;
}

.ip-products__hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.ip-modal[data-role="price-modal"] .ip-modal__header,
.ip-modal[data-role="bulk-price-modal"] .ip-modal__header {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.ip-modal[data-role="price-modal"] .ip-modal__dialog,
.ip-modal[data-role="bulk-price-modal"] .ip-modal__dialog {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.25);
}

.ip-modal[data-role="price-modal"] .ip-modal__body,
.ip-modal[data-role="bulk-price-modal"] .ip-modal__body {
  padding-bottom: 18px;
}

.ip-modal[data-role="price-modal"] .ip-products__calc-row,
.ip-modal[data-role="bulk-price-modal"] .ip-products__calc-row {
  grid-template-columns: minmax(160px, 1fr);
  align-items: center;
}

.ip-modal[data-role="price-modal"] .ip-products__calc-input,
.ip-modal[data-role="bulk-price-modal"] .ip-products__calc-input {
  padding: 10px 12px;
  border-radius: 10px;
  border-color: rgba(148, 163, 184, 0.8);
  text-align: left;
}

.ip-modal[data-role="price-modal"] .ip-products__calc-row--category {
  grid-template-columns: minmax(160px, 1fr);
}

.ip-modal[data-role="price-modal"] .ip-products__calc-checkbox {
color: #4CAF50;
cursor: pointer;
font-size: 16px;
padding: 4px;
transition: transform 0.2s;
flex-shrink: 0;
}

.ip-modal[data-role="price-modal"] .ip-products__calc-input:focus,
.ip-modal[data-role="bulk-price-modal"] .ip-products__calc-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.ip-modal[data-role="price-modal"] .ip-products__calc-value,
.ip-modal[data-role="bulk-price-modal"] .ip-products__calc-value {
  font-size: 14px;
}

@media (min-width: 720px) {
  .ip-modal[data-role="price-modal"] .ip-products__calc-row,
  .ip-modal[data-role="bulk-price-modal"] .ip-products__calc-row {
    grid-template-columns: minmax(200px, 0.9fr) 1.1fr;
    gap: 12px;
  }

  .ip-modal[data-role="price-modal"] .ip-products__calc-row--category {
    grid-template-columns: minmax(200px, 0.9fr) 1fr auto;
  }
}
.ip-modal__apply {
  background: #1e293b;
  color: #fff;
}

.ip-modal__apply:hover {
  background: #0f172a;
}
.ip-modal__dialog--compact {
  max-width: 640px;
}

.ip-products__col-stock {
  width: 190px;
}

.ip-products__search-input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 13px;
  text-align: center;
}

.ip-products__action-group {
  display: flex;
  flex-direction: row;
  gap: 6px;
  justify-content: center;
}

.ip-products__col-sku {
  width: 120px;
}

.ip-products__col-nmid {
  width: 180px;
}

.ip-products__col-material {
  width: 120px;
}

.ip-products__col-nmid .quick-edit-input,
.ip-products__col-material .quick-edit-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ip-products__col-price {
  width: 120px;
  font-weight: 600;
  color: #0f172a;
}
.ip-products__col-name {
  text-align: left;
  width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ip-products__col-actions {
   width: 120px;
}

.ip-products__col-calc {
  width: 90px;
}

.ip-products__col-new-price {
  width: 120px;
}

.ip-products__col-new-price .quick-edit-container {
  border: 1px dashed transparent;
  border-radius: 8px;
  padding: 2px 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ip-products__col-new-price .quick-edit-container:hover,
.ip-products__col-new-price .quick-edit-container:focus-within {
  border-color: rgba(148, 163, 184, 0.8);
  background: rgba(241, 245, 249, 0.65);
}

.ip-products__col-new-price .quick-edit-input {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 6px 8px;
}

.ip-products__col-new-price .quick-edit-input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}

.ip-products__col-new-price .save-checkmark {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

.ip-products__col-new-price .quick-edit-container:focus-within .save-checkmark,
.ip-products__col-new-price .quick-edit-container:hover .save-checkmark {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.ip-products__stock-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ip-products__stock-display {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
}
.ip-products__table .stock-badge {
  min-width: 78px;
}

.ip-products__table .stock-status {
  min-width: 120px;
  text-align: center;
}

.ip-products__action-button--price {
  background: #dc2626;
}

.ip-products__action-button--price:hover {
  background: #b91c1c;
}

.ip-products__action-button--stock {
  background: #16a34a;
}

.ip-products__action-button--stock:hover {
  background: #15803d;
}


.btn-cancel { background:#ef4444; color:#fff; }
.btn-cancel:hover { background:#dc2626; }
.btn-save { background:#22c55e; color:#fff; }
.btn-save:hover { background:#16a34a; }
