.inv-hero {
  padding-top: 30px;
  background: linear-gradient(135deg, #edf4ff 0%, #eefcf7 100%);
}

.inv-hero-content {
  max-width: 1180px;
}

.inv-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid #dbe2ef;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.inv-bn-mode .inv-card,
.inv-bn-mode .inv-card input,
.inv-bn-mode .inv-card textarea,
.inv-bn-mode .inv-card select,
.inv-bn-mode .inv-card .inv-item-total,
.inv-bn-mode .inv-card .inv-total-row,
.inv-bn-mode .inv-card .status {
  font-family: "Noto Sans Bengali", "Open Sans", sans-serif;
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inv-section {
  border: 1px solid #d8dfec;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.inv-section-wide {
  grid-column: 1 / -1;
}

.inv-section h2 {
  margin: 0 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #0f172a;
}

.inv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.inv-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inv-media-card {
  display: grid;
  gap: 6px;
}

.inv-media-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.inv-media-upload-row input[type="file"] {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}

.inv-media-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.inv-logo-name {
  margin: 0;
  font-size: 11px;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.inv-text-btn {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 5px 8px;
  cursor: pointer;
}

.inv-icon-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  line-height: 1;
}

.inv-outline-btn {
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #eff5ff 100%);
  color: #1d4ed8;
  border-radius: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
}

.inv-items-head,
.inv-item-row {
  display: grid;
  grid-template-columns: 1.9fr 0.48fr 0.92fr 0.78fr auto;
  gap: 8px;
  align-items: center;
}

.inv-items-head {
  border: 1px solid #d8dfec;
  border-radius: 10px;
  padding: 7px 8px;
  background: #f8fbff;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  color: #475569;
  font-weight: 500;
}

.inv-items-head span {
  text-align: center;
}

.inv-items-body {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.inv-item-row {
  border: 1px solid #d8dfec;
  border-radius: 10px;
  padding: 6px;
  background: #ffffff;
}

.inv-item-row input {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 8px;
  font-size: 12px;
}

.inv-item-row input[data-role="qty"],
.inv-item-row input[data-role="price"] {
  text-align: center;
}

.inv-card .form-field span {
  font-size: 10px;
  font-weight: 500;
  color: #475569;
}

.inv-card .form-field input,
.inv-card .form-field textarea {
  font-size: 12px;
  border-radius: 9px;
  padding: 8px 10px;
}

.inv-card .form-field input {
  height: 34px;
  padding: 0 8px;
}

.inv-card .form-field textarea {
  min-height: 74px;
}

.form-field select {
  width: 100%;
  height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 8px;
  font-size: 12px;
  font-family: "Open Sans", sans-serif;
  color: #0f172a;
  background: #ffffff;
}

.form-field select:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.inv-item-total {
  font-size: 12px;
  color: #0f172a;
  font-weight: 600;
  text-align: center;
  padding-right: 0;
}

.inv-remove-item {
  width: 26px;
  height: 26px;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.inv-totals-grid {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d8dfec;
  border-radius: 12px;
  background: #f8fbff;
}

.inv-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.inv-total-row strong {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.inv-mini-grid .form-field input,
.inv-mini-grid .form-field select {
  height: 34px;
}

.inv-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inv-action-row + .inv-action-row {
  margin-top: 8px;
}

#invStatus {
  min-height: 18px;
  margin-top: 8px;
  font-size: 11px;
}

.inv-card .primary-btn,
.inv-card .secondary-btn {
  min-height: 40px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
}

.inv-card .secondary-btn {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.1);
}

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

@media (max-width: 760px) {
  .inv-items-head {
    display: none;
  }

  .inv-item-row {
    grid-template-columns: 1fr 1fr;
  }

  .inv-item-row input[data-role="desc"] {
    grid-column: 1 / -1;
  }

  .inv-item-row input[data-role="qty"],
  .inv-item-row input[data-role="price"] {
    grid-column: span 1;
  }

  .inv-item-total {
    text-align: left;
    padding-right: 0;
    font-size: 13px;
  }

  .inv-remove-item {
    justify-self: end;
  }

  .inv-action-row,
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }

  .inv-media-row {
    grid-template-columns: 1fr;
  }

  .inv-media-upload-row {
    grid-template-columns: 1fr;
  }

  .inv-media-meta {
    justify-content: space-between;
  }
}
