:root {
  --main-bg: #09232d;
  --accent: #f3a622; /* لون اللينك النشط */
  --text-muted-top: #c3d1d7;
  --font-public-sans: "Public Sans", sans-serif;
  --poppins: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --nunito: "Nunito", sans-serif;
}
.invoices-page {
  padding-top: 5.05%;
  padding-bottom: 4.2%;
  padding-left: 6.56%;
  padding-right: 6.56%;
}

.invoices-page .container-fluid {
  border: 1px solid #0000001a;
  border-radius: 16px;
  padding: 20px 24px;
}

.invoices-page .container-fluid .title {
  font-size: 24px;
  color: rgba(0, 0, 0, 1);
  font-family: var(--poppins);
  font-weight: 500;
}

/* Search + filter */

.invoice-search {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(228, 228, 228, 1);
  padding: 12px 18px;
  background: transparent;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invoice-search input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #000;
  outline: none;
}

.invoice-search input::placeholder {
  color: #9ca3af;
}

.invoice-btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(25, 100, 128, 1);
  padding: 12px 18px;
  background: transparent;
  color: rgba(25, 100, 128, 1);
  font-size: 14px;
  background-color: rgba(245, 250, 255, 1);
}

.invoice-btn-filter .filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.invoice-btn-filter i {
  font-size: 11px;
}

.invoice-btn-icon {
  border-radius: 8px;
  border: 1px solid #4b5563;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* Table */

.invoice-table-wrapper {
  margin-top: 20px;
}

.invoice-table {
  border-collapse: collapse;
}

.invoice-table thead th {
  font-size: 20px;
  font-weight: 500;
  color: rgba(34, 34, 34, 1);
  padding: 12px 0;
  border-bottom: 1px solid rgba(219, 219, 219, 1);
  font-family: var(--poppins);
}

.invoice-table tbody td {
  font-size: 20px;
  font-weight: 400;
  padding: 18px 0;
  /* border-bottom: 1px solid #4b5563; */
  color: rgba(34, 34, 34, 1);
  font-family: var(--poppins);
}
.invoice-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(219, 219, 219, 1);
}
.invoice-table tbody tr:last-child td {
  border-bottom-color: #4b5563;
}

/* Invoice number link */

.invoice-table tbody td:first-child a {
  color: rgba(25, 100, 128, 1);
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
  font-family: var(--poppins);
}

.invoice-table tbody td:first-child a:hover {
  text-decoration: underline;
}

/* Status badges */

.badge-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-paid {
  background: rgba(236, 253, 243, 1);
  color: rgba(250, 166, 45, 1);
  font-size: 16px;
  font-family: var(--poppins);
  line-height: 24px;
}

.badge-scheduled {
  background: rgba(239, 248, 255, 1);
  color: rgba(25, 100, 128, 1);
  font-size: 16px;
  font-family: var(--poppins);
  line-height: 24px;
}

/* View details */

.view-link {
  font-size: 16px;
  color: rgba(21, 112, 239, 1);
  text-decoration: none;
  font-family: var(--poppins);
  line-height: 24px;
  font-weight: 500;
}

/* Responsive tweaks */

@media (max-width: 767.98px) {
  .invoice-table thead {
    display: none;
  }

  .invoice-table tbody tr {
    display: block;
    padding: 12px 0;
  }

  .invoice-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: none;
  }

  .invoice-table tbody td::before {
    content: attr(data-label);
    font-size: 12px;
    color: #6b7280;
  }
}
