body {
  background: var(--bg);
  color: var(--text);
}

.card-stat {
  border-left: 4px solid var(--brand-blue);
}

.invoice-sheet {
  border: 1px solid #e8e8e8;
}

.invoice-header {
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 0.85rem;
}

.invoice-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.invoice-status-pill {
  background: var(--brand-blue);
  color: var(--white);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.invoice-info-card,
.invoice-section-card {
  border: 1px solid #ececec;
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--white);
}

.invoice-line-table thead th {
  background: #f9f9f9;
  border-bottom: 2px solid var(--brand-blue);
}

.invoice-footer {
  border-top: 1px solid #ebebeb;
}

.property-overview-table {
  border: 1px solid #ededed;
}

.property-overview-table .table > :not(caption) > * > * {
  border-bottom-color: #efefef;
}

.alert-info {
  border-color: rgba(15, 143, 224, 0.25);
  background: rgba(15, 143, 224, 0.06);
  color: var(--text);
}

.alert-success {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.06);
  color: var(--text);
}

.alert-warning,
.alert-danger {
  color: var(--text);
}

.table-responsive {
  border-radius: 0.5rem;
}

@media (max-width: 767.98px) {
  .app-shell > .col-12 {
    min-width: 0;
  }

  .table-responsive {
    border: 1px solid #ededed;
    border-radius: 0.75rem;
    overflow: hidden;
  }

  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive th,
  .table-responsive td {
    display: block;
    width: 100%;
  }

  .table-responsive thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .table-responsive tbody tr {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #ececec;
  }

  .table-responsive tbody tr:last-child {
    border-bottom: none;
  }

  .table-responsive tbody td {
    position: relative;
    padding: 0.35rem 0;
    border: 0;
    min-height: 1.9rem;
    padding-left: 46%;
    white-space: normal;
    word-break: break-word;
  }

  .table-responsive tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 42%;
    color: #444;
    font-weight: 600;
    font-size: 0.83rem;
    line-height: 1.35;
    text-transform: none;
  }

  .table-responsive tbody td:empty {
    min-height: 0.7rem;
  }
}

@media print {
  .top-navbar,
  .sidebar,
  .offcanvas,
  .btn,
  form {
    display: none !important;
  }

  .invoice-sheet {
    border: 0;
    box-shadow: none;
  }

  .invoice-sheet .card-body {
    padding: 0 !important;
  }

  body {
    background: #fff;
  }
}
