/* Print-only stylesheet */
nav {
  display: none !important;
}
footer {
  display: none !important;
}
header {
  display: none !important;
}
.page-actions {
  display: none !important;
}
.table-actions {
  display: none !important;
}
.form-actions {
  display: none !important;
}
button {
  display: none !important;
}

/* Smaller base font for print */
body {
  padding: 0.15in !important;
  margin: 0 !important;
  font-size: 8pt !important;
}

h2 {
  font-size: 12pt !important;
  margin: 0.25em 0 !important;
}

/* Table borders */
table {
  border: 1px solid #000 !important;
  border-collapse: collapse !important;
}
th {
  border: 1px solid #000 !important;
  padding: 0.2em !important;
  font-size: 8pt !important;
}
td {
  border: 1px solid #000 !important;
  padding: 0.2em !important;
  font-size: 7pt !important;
}

/* Calendar specific: equal width columns and equal height cells */
.calendar {
  table-layout: fixed !important;
  width: 100% !important;
  page-break-inside: avoid !important;
  height: calc(
    100vh - 1.5in
  ) !important; /* Fill page minus header and margins */
}
.calendar th,
.calendar td {
  width: 14.28% !important;
} /* 100% / 7 days */

.calendar-header {
  height: 0.2in !important;
}

.calendar-day {
  height: 1.07in !important;
  vertical-align: top !important;
  padding: 0.15em !important;
}

.calendar-day-number {
  font-size: 8pt !important;
  margin-bottom: 0.15em !important;
  font-weight: bold !important;
}

.calendar-item {
  font-size: 6.5pt !important;
  line-height: 1.2 !important;
  padding: 0.15em !important;
  margin-bottom: 0.15em !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  white-space: normal !important;
}

/* Category-specific colors for calendar items */
.calendar-item-bill {
  background-color: #ffe5cc !important; /* Light orange for bills */
  border-left: 3px solid #ff9933 !important;
}

.calendar-item-debt {
  background-color: #f8d7da !important; /* Light pink for debts */
  border-left: 3px solid #dc3545 !important;
}

.calendar-item-expense {
  background-color: #fff3cd !important; /* Light yellow for expenses */
  border-left: 3px solid #ffc107 !important;
}

.calendar-item-income {
  background-color: #d4edda !important; /* Light green for income */
  border-left: 3px solid #28a745 !important;
}

.calendar-item-saving {
  background-color: #d1ecf1 !important; /* Light blue for savings */
  border-left: 3px solid #17a2b8 !important;
}
