.delivery-invoice-list-page .page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.delivery-invoice-list-page h2 {
  margin: 0 0 6px 0;
}

.delivery-invoice-list-page p {
  margin: 0;
  color: #666;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.delivery-invoice-list-page input {
  width: 100%;
  border: 1px solid #ccd3dd;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.delivery-invoice-list-page button {
  border: 0 !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  background: #0b83d8 !important;
  color: #fff !important;
  font-weight: 800 !important;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.delivery-invoice-list-page button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.delivery-document-card-list {
  display: grid;
  gap: 14px;
}

.delivery-document-card {
  border: 1px solid #d9e1ec;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.doc-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 12px;
}

.doc-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.field-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
}

.field-value {
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.field-value.strong {
  font-weight: 900;
}

.small-text {
  margin-top: 4px;
  color: #666;
  font-size: 12px;
  white-space: pre-line;
}

.doc-note {
  border: 1px solid #eef2f7;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  color: #475569;
  margin: 8px 0 12px;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.45;
}

.doc-note b {
  color: #0f172a;
}

.doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid #eef2f7;
  padding-top: 12px;
}

.status-pill,
.doc-type-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.status-pill {
  background: #e8f3ff;
  color: #0b5f99;
}

.doc-type-pill.invoice {
  background: #eaf8f0;
  color: #17804a;
}

.doc-type-pill.delivery {
  background: #fff7e6;
  color: #9a5b00;
}

.doc-type-pill.delivery-order {
  background: #f0f4ff;
  color: #3045a0;
}

.empty-box {
  border: 1px dashed #ccd3dd;
  padding: 14px;
  border-radius: 10px;
  color: #666;
  background: #fff;
}

.pagination-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.pagination-bar button {
  min-width: 38px;
  background: #e8f3ff !important;
  color: #0b5f99 !important;
  border: 1px solid #b9d9f5 !important;
}

.pagination-bar button.active {
  background: #0b83d8 !important;
  color: #fff !important;
}

.pagination-bar button:disabled {
  opacity: 0.45;
}

.page-dots {
  padding: 0 4px;
  color: #64748b;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .doc-card-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 700px) {
  .delivery-invoice-list-page .page-header,
  .search-panel,
  .doc-card-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .doc-card-header {
    flex-direction: column;
  }
}
