/* --- IMPRESIÓN --- */

* {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-sizing: border-box;
}

html, body {
  background: #fff;
  color: #000;
  margin: 0;
  padding: 0;
}

.top-app-bar,
.sub-nav-bar,
.side-panels,
.menu-popup,
.nav-btn,
.icon-button {
  display: none !important;
}

.calendar-content {
  display: block;
  overflow: visible;
}

.calendar {
  display: block;
  margin: 0cm auto 1cm auto;
  overflow: visible;
  break-inside: avoid;
  page-break-inside: avoid;
}

.calendar-inner {
  background: transparent;
  border-radius: 0;
}

/* --- COLORES UNIFICADOS --- */

.days div {
  color: #000 !important;
  background: #f2f2f2 !important;
  border: none !important;
  box-shadow: none !important;
}

.days .is-today,
.days .is-holiday {
  color: inherit !important;
  background: #f2f2f2 !important;
  font-weight: 700;
}
.days .sun,
.days .sun.is-today,
.days .sun.is-holiday,
.weekdays .sun {
  color: #C62828 !important;
}
.days .sat,
.days .sat.is-today,
.days .sat.is-holiday,
.weekdays .sat {
  color: #1976D2 !important;
}
.days div.is-holiday:not(.sun):not(.sat),
.days div.is-today:not(.sun):not(.sat) {
  color: #000 !important;
}

/* --- OFICINA --- */

.office-mode .calendar-grid {
  padding: 1cm 0;
}

.office-mode .calendar {
  width: 9.2cm;
  height: 5.5cm;
  margin: 0cm auto 1cm auto;
}

.office-mode .calendar-inner {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0.1pt solid transparent;
  background:
    linear-gradient(#a0a0a0 0 0) left top / 0.13cm 0.03cm no-repeat,
    linear-gradient(#a0a0a0 0 0) left top / 0.02cm 0.13cm no-repeat,
    linear-gradient(#a0a0a0 0 0) right top / 0.13cm 0.03cm no-repeat,
    linear-gradient(#a0a0a0 0 0) right top / 0.02cm 0.13cm no-repeat,
    linear-gradient(#a0a0a0 0 0) left bottom / 0.13cm 0.03cm no-repeat,
    linear-gradient(#a0a0a0 0 0) left bottom / 0.02cm 0.13cm no-repeat,
    linear-gradient(#a0a0a0 0 0) right bottom / 0.13cm 0.03cm no-repeat,
    linear-gradient(#a0a0a0 0 0) right bottom / 0.02cm 0.13cm no-repeat;
}

.office-mode .calendar-header { height: 1.2cm; }
.office-mode .month-wrapper { height: 1.1cm; }
.office-mode .weekdays { height: 1.1cm; }
.office-mode .days { grid-auto-rows: 0.53cm; }

/* --- DÍA / NOCHE --- */

:not(.office-mode) .calendar-grid {
  padding: 0;
}

:not(.office-mode) .calendar-inner {
  background: transparent;
}

:not(.office-mode) .calendar-header {
  color: #fff;
}

.office-mode .calendar:nth-of-type(4n) {
  break-after: page;
}

:not(.office-mode) .calendar:nth-of-type(2n) {
  break-after: page;
}

