/**
 * Print stylesheet for NodlCloud
 * Overrides Bootswatch Darkly theme for readable printing:
 * dark text on white background, hidden navigation/UI chrome.
 */

/* Force white background and black text everywhere */
body {
  background-color: #fff !important;
  color: #000 !important;
}

/* Hide navigation, footer, buttons, forms, and interactive elements */
nav.navbar,
footer,
.btn,
form,
.pagination,
.alert {
  display: none !important;
}

/* Override dark-themed containers and cards */
.container,
.container-fluid,
.card,
.card-body,
.card-header,
.bg-secondary,
.bg-primary,
.bg-dark,
.table,
.table-bordered,
.table td,
.table th,
.table thead th,
.table tbody td,
.table-sm td,
.table-sm th,
.table-striped tbody tr:nth-of-type(odd),
.table-primary,
.table-primary td,
.table-primary th,
pre {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #ccc !important;
}

/* All text elements forced to black */
h1, h2, h3, h4, h5, h6,
p, span, strong, em, small, label,
td, th, li, code,
.text-muted,
.text-white,
.text-info,
.text-warning,
.text-primary,
.text-secondary,
.text-light {
  color: #000 !important;
}

/* Discount stays visually distinct in print */
.text-danger,
.text-danger td,
.text-danger small,
.text-danger strong {
  color: #c00 !important;
}

/* Links print as black text */
a, a:visited {
  color: #000 !important;
  text-decoration: none !important;
}

/* Badges readable in print */
.badge {
  border: 1px solid #000 !important;
  color: #000 !important;
  background-color: #fff !important;
}

/* Table borders visible */
.table-bordered td,
.table-bordered th {
  border: 1px solid #ccc !important;
}

/* Total row highlighted with light grey */
.table-primary,
.table-primary td,
.table-primary th {
  background-color: #eee !important;
  color: #000 !important;
  font-weight: bold;
}

/* Horizontal rules visible */
hr {
  border-color: #ccc !important;
}

/* Invoice detail: remove excess padding, let content breathe */
.invoice-detail {
  padding: 0 !important;
}
