.delivery-invoice-page .muted-line {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 13px;
}

.delivery-invoice-page input[readonly],
.delivery-invoice-page textarea[readonly] {
  background: #f4f6f9;
  color: #444;
  font-weight: 700;
}

.customer-picker-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.document-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.document-section {
  border: 1px solid #e1e6ee;
  border-radius: 14px;
  padding: 14px;
  background: #fbfcfe;
}

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

.section-header h3,
.document-section h3 {
  margin: 0 0 10px 0;
}

.custom-creator-input {
  margin-top: 8px;
}

.items-wrap {
  min-width: 0;
}

.table-scroll {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll.no-auto-pagination .items-table {
  min-width: 1080px;
}

.document-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.document-note {
  border: 1px solid #e1e6ee;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  color: #475569;
  line-height: 1.6;
}

.document-note p {
  margin: 0 0 8px 0;
}

.summary-panel {
  border: 1px solid #d5dde8;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.summary-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.summary-row label,
.checkbox-line {
  font-weight: 800;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.checkbox-line input {
  width: auto;
}

.summary-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}

.summary-save-btn {
  min-width: 160px;
}

.product-picker {
  position: relative;
}

.product-suggest {
  background: #fff;
  border: 1px solid #ccd3dd;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

.product-suggest-item {
  width: 100%;
  border: 0;
  background: #fff;
  color: #1f2937;
  text-align: left;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.product-suggest-item:hover {
  background: #eef6ff;
}

.product-suggest-name {
  font-weight: 800;
}

.product-suggest-meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.customer-card-list {
  display: grid;
  gap: 8px;
}

.customer-select-card {
  width: 100%;
  text-align: left;
  border: 1px solid #e1e6ee;
  background: #fff;
  color: #1f2937;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.customer-select-card:hover {
  background: #eef6ff;
}

.customer-card-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.customer-card-main span {
  color: #0b83d8;
  font-weight: 800;
}

.customer-card-detail,
.customer-card-address {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.reference-modal-box,
.customer-modal-box {
  max-width: 980px;
  width: min(980px, calc(100vw - 28px));
}

.toast-box {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 30000;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  background: #eaf8f0;
  color: #167a3a;
}

.toast-box.error {
  background: #fff1f1;
  color: #bd2b2b;
}

.toast-box.hidden,
.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .document-bottom,
  .customer-picker-row {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: stretch;
    flex-direction: column;
  }
}
