:root {
  --ink: #24302d;
  --paper: #f6f3ed;
  --line: #deddd7;
  --green: #355f56;
  --accent: #d97757;
}

/* Lista de clientes */
#clientList {
  gap: 0.35rem !important;
}
.client-item {
  width: 100%;
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  padding: 8px !important;
  color: #d3ddda !important;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
  text-align: left;
}
.client-item:before {
  display: none !important;
}
.client-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  transform: translateX(2px);
}
.client-item.active {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.client-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #dce8e4;
  font-size: 11px;
  font-weight: 700;
}
.client-item.active .client-avatar {
  background: #d97757;
  color: #fff;
}
.all-avatar {
  font-size: 20px;
  background: rgba(117, 184, 153, 0.15);
  color: #8ed0b2;
}
.client-info {
  min-width: 0;
  display: block;
}
.client-info strong,
.client-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-info strong {
  font-size: 16px;
  font-weight: 600;
}
.client-info small {
  font-size: 10px;
  color: #91a49e;
  margin-top: 2px;
}
.client-item.active .client-info small {
  color: #c0cfca;
}
.client-count {
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #9fb0ab;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}
.client-item.active .client-count {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.client-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 8px 3px;
  color: #71857f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.client-divider:after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}
.empty-clients {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 24px 12px;
  text-align: center;
  color: #91a49e;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 11px;
}
.empty-clients strong {
  font-size: 13px;
  color: #c9d5d1;
}
.empty-clients small {
  font-size: 10px;
}
.empty-client-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
}
/* Ações do dia */
.day {
  display: flex;
  flex-direction: column;
  cursor: default !important;
}
.day-content {
  flex: 1;
  min-height: 28px;
}
.day-actions {
  display: grid;
  grid-template-columns: 1fr 29px;
  gap: 5px;
  margin-top: 7px;
}
.view-day,
.add-day {
  height: 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: 0.15s;
}
.view-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #d7dcda;
  background: #fff;
  color: #47635c;
}
.view-day:hover {
  border-color: #678e84;
  background: #edf4f1;
  color: #294d45;
}
.view-day span {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #e1ece8;
  color: #355f56;
  font-size: 9px;
}
.add-day {
  opacity: 1 !important;
  width: 29px !important;
  border: 1px solid #d7dcda !important;
  background: #f8f9f8 !important;
  color: #527269 !important;
  font-size: 16px !important;
  padding: 0 !important;
}
.add-day:hover {
  background: #355f56 !important;
  border-color: #355f56 !important;
  color: #fff !important;
}
/* Agenda futura */
.upcoming-panel {
  border-radius: 12px !important;
  overflow: hidden;
}
.upcoming-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 4px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}
.upcoming-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 44px;
  height: 48px;
  border-radius: 9px;
  background: #f1f5f3;
  color: #355f56;
}
.upcoming-date strong {
  font-size: 18px;
  line-height: 1;
}
.upcoming-date small {
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  margin-top: 3px;
}
.upcoming-body {
  min-width: 0;
  text-align: left;
}
.upcoming-body strong,
.upcoming-body span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upcoming-body strong {
  color: #355f56;
  font-size: 18px;
}
.upcoming-body span {
  font-size: 16px;
  color: #3e4946;
}
.upcoming-weekday {
  font-size: 16px;
  color: #8b9591;
}
.upcoming-color {
  align-self: stretch;
  border-radius: 4px;
  background: var(--note);
}
/* Fins de semana e filtros */
.weekdays span:nth-child(6),
.weekdays span:nth-child(7) {
  background: #e5e7e6;
  color: #65706c;
}
.day:nth-child(7n + 6),
.day:nth-child(7n) {
  background: #fafafa;
}
.day.other:nth-child(7n + 6),
.day.other:nth-child(7n) {
  background: #e8e9e8;
  color: #a2a7a5;
}
.day.today:nth-child(7n + 6),
.day.today:nth-child(7n) {
  background: #ecefed;
}
.color-filter {
  background: #fff;
  border: 1px solid #e0e2e1;
  border-radius: 10px;
  padding: 9px 10px;
}
.color-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid #d9dddb;
  background: #fff;
  color: #52605c;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.15s;
}
.color-filter-btn span,
.colors button span {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: var(--filter, var(--c));
}
.color-filter-btn:hover {
  transform: scale(1.1);
}
.color-filter-btn.active {
  border-color: var(--filter);
  background: color-mix(in srgb, var(--filter) 9%, white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--filter) 20%, transparent);
}
.filter-divider {
  width: 1px;
  height: 25px;
  margin-inline: 3px;
  background: #d9dddb;
}
.holiday-toggle {
  min-height: 31px;
  padding: 4px 10px;
  border: 1px solid #d9dddb;
  border-radius: 7px;
  background: #fff;
  color: #65706c;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.15s;
}
.holiday-toggle span {
  color: #b48a27;
}
.holiday-toggle.active {
  border-color: #b48a27;
  background: #fff8e5;
  color: #755a19;
  box-shadow: 0 0 0 2px rgba(180, 138, 39, 0.15);
}
.custom-date-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}
.custom-date-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e0e3e1;
  border-radius: 9px;
  background: #fafaf8;
}
.custom-date-item strong,
.custom-date-item small {
  display: block;
}
.custom-date-item strong {
  color: #3d4a46;
  font-size: 14px;
}
.custom-date-item small {
  margin-top: 2px;
  color: #7d8783;
  font-size: 10px;
}
.custom-date-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff8e5;
  color: #b48a27;
}
.custom-date-symbol.holiday {
  background: #fde9e7;
  color: #c62828;
}
.custom-date-symbol.optional {
  background: #eee9f4;
  color: #9a6ca8;
}
@media (max-width: 575px) {
  .custom-date-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .custom-date-item [data-custom-delete] {
    grid-column: 3;
  }
}
.commemorative-date {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 3px 0;
  padding: 3px 5px;
  border-radius: 4px;
  background: #fff8e5;
  color: #72591f;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
}
.commemorative-date span {
  flex: 0 0 auto;
  color: #b48a27;
}/*
.commemorative-date.holiday {
  background: #fde9e7;
  color: #9e3029;
}
.commemorative-date.holiday span {
  color: #c62828;
}
.commemorative-date.optional {
  background: #eee9f4;
  color: #6f4d7c;
}
.commemorative-date.optional span {
  color: #9a6ca8;
}*/
/* Usuários e notas */
.note-user,
.upcoming-user {
  display: block;
  margin-top: 5px;
  color: #89938f;
  font-size: 10px;
}
.upcoming-user {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-note-content .note-user {
  font-weight: 500;
}
.notes-form-card {
  top: 1.5rem;
}
.note-card {
  border-left: 4px solid #4f7c70 !important;
  transition: 0.2s;
}
.note-card:hover {
  transform: translateY(-1px);
}
.note-check {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #e7f0ed;
  color: #355f56;
  font-size: 18px;
  font-weight: 700;
}
.note-text {
  font-size: 16px;
  line-height: 1.6;
}
.note-card.completed {
  background: #e2e4e3 !important;
  border-left-color: #a7adaa !important;
  box-shadow: none !important;
}
.note-card.completed .note-text {
  color: #7f8582;
  text-decoration: line-through;
}
.note-card.completed .note-check {
  background: #cfd2d0;
  color: #777d7a;
}
.note-card.completed small,
.note-card.completed .badge {
  opacity: 0.7;
}
.min-width-0 {
  min-width: 0;
}
.dashboard-notes {
  display: none;
}
.quick-notes-home {
  padding-bottom: 2rem;
}
.quick-notes-home .note-card {
  height: 100%;
}
.quick-notes-home .note-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 991px) {
  #clientList {
    display: flex !important;
    flex-wrap: nowrap !important;
    padding-bottom: 5px;
  }
  .client-item {
    min-width: 210px;
  }
  .client-divider {
    display: none;
  }
  .empty-clients {
    min-width: 220px;
    padding: 12px;
  }
  .client-item:hover {
    transform: translateY(-1px);
  }
  .notes-form-card {
    position: static !important;
  }
}
@media (max-width: 767px) {
  .view-day {
    font-size: 9px;
  }
  .day-actions {
    grid-template-columns: 1fr 27px;
  }
}
@media (max-width: 575px) {
  .upcoming-item {
    grid-template-columns: 44px minmax(0, 1fr) 4px;
  }
  .upcoming-weekday {
    display: none;
  }
}
* {
  box-sizing: border-box;
}
body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.print-only {
  display: none;
}
.sidebar {
  background: #243a35;
  color: #fff;
  transition:
    width 0.22s ease,
    flex-basis 0.22s ease,
    padding 0.22s ease;
}
.calendar-main {
  transition:
    width 0.22s ease,
    flex-basis 0.22s ease;
}
.sidebar-header {
  min-width: 0;
}
.brand-copy {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  transition:
    background 0.15s,
    transform 0.15s;
}
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}
@media (min-width: 992px) {
  body.sidebar-collapsed .sidebar {
    width: 82px;
    flex: 0 0 82px;
    padding-inline: 18px !important;
  }
  body.sidebar-collapsed .calendar-main {
    width: calc(100% - 82px);
    flex: 0 0 calc(100% - 82px);
  }
  body.sidebar-collapsed .sidebar-header {
    flex-direction: column;
    gap: 12px !important;
  }
  body.sidebar-collapsed .brand-copy,
  body.sidebar-collapsed .sidebar-content {
    display: none;
  }
  body.sidebar-collapsed .sidebar-toggle {
    margin-left: 0;
  }
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  font: 700 23px "Playfair Display";
}
.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}
.brand-logo-login {
  width: 64px;
  height: 64px;
  margin-inline: auto;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75b899;
  margin-right: 6px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #9a765f;
  font-weight: 700;
}
.display-title {
  font: 700 36px "Playfair Display";
}
.btn-success {
  --bs-btn-bg: var(--green);
  --bs-btn-border-color: var(--green);
  --bs-btn-hover-bg: #294d45;
  --bs-btn-hover-border-color: #294d45;
}
.client-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  color: #cdd6d3 !important;
  padding: 10px !important;
  text-align: left;
}
.client-item:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #789089;
}
.client-item.active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}
.client-item.active:before {
  background: #e98b69;
}
.calendar-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
}
.weekdays,
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  min-width: 700px;
}
.weekdays {
  background: #f1efe9;
  border-bottom: 1px solid var(--line);
}
.weekdays span {
  padding: 10px;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #84908c;
  font-weight: 700;
  line-height: 1;
}
.day {
  min-height: 130px;
  padding: 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.day:nth-child(7n) {
  border-right: 0;
}
.day.other {
  background: #faf9f6;
  color: #b6b9b7;
}
.day-number {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}
.day.today .day-number {
  background: var(--accent);
  color: #fff;
}
.note {
  display: block;
  width: 100%;
  border: 0;
  border-left: 3px solid var(--note);
  background: color-mix(in srgb, var(--note) 11%, white);
  border-radius: 4px;
  padding: 5px 6px;
  margin: 4px 0;
  color: #3e4946;
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Página da agenda futura */
.agenda-page {
  min-height: 100vh;
}
.agenda-navbar .navbar-brand {
  font-weight: 700;
}
.agenda-summary span {
  display: grid;
  min-width: 92px;
  padding: 9px 13px;
  border: 1px solid #dfe2e0;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}
.agenda-summary strong {
  color: #355f56;
  font-size: 20px;
  line-height: 1.1;
}
.agenda-summary small {
  color: #7b8582;
  font-size: 10px;
}
.agenda-filters {
  border-radius: 14px !important;
}
.agenda-filters .form-label {
  margin-bottom: 5px;
  color: #52605c;
  font-size: 12px;
  font-weight: 700;
}
.agenda-days {
  display: grid;
  gap: 18px;
}
.agenda-day-group {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.agenda-day-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  position: sticky;
  top: 16px;
}
.agenda-day-heading h2 {
  margin: 0;
  color: #355f56;
  font-size: 15px;
  font-weight: 700;
}
.agenda-day-heading small {
  color: #8a9390;
  font-size: 10px;
}
.agenda-day-number {
  display: grid;
  place-items: center;
  align-content: center;
  width: 52px;
  height: 58px;
  flex: 0 0 52px;
  border-radius: 12px;
  background: #e8f0ed;
  color: #355f56;
}
.agenda-day-number strong {
  font-size: 22px;
  line-height: 1;
}
.agenda-day-number small {
  margin-top: 3px;
  color: #60746e;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.agenda-day-items {
  display: grid;
  gap: 9px;
}
.agenda-activity {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e0e3e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(36, 48, 45, 0.05);
}
.agenda-activity-color {
  align-self: stretch;
  border-radius: 5px;
  background: var(--note);
}
.agenda-activity-content {
  min-width: 0;
}
.agenda-activity-content > div > strong {
  color: #355f56;
}
.agenda-activity-content p {
  margin: 0 0 5px;
  color: #37423f;
  font-size: 15px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}
.agenda-category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--note);
}
.agenda-activity.completed {
  background: #f0f2f1;
  opacity: 0.75;
}
.agenda-activity.completed .agenda-activity-content p {
  color: #7d8582;
  text-decoration: line-through;
}
.agenda-link {
  white-space: nowrap;
}
.agenda-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8f0ed;
  color: #355f56;
  font-size: 22px;
}
@media (max-width: 767px) {
  .agenda-day-group {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .agenda-day-heading {
    position: static;
  }
  .agenda-activity {
    grid-template-columns: 5px minmax(0, 1fr);
  }
  .agenda-link {
    grid-column: 2;
    justify-self: start;
  }
}
.note.completed {
  border-left-color: #9aa29f;
  background: #eef0ef;
  color: #7d8582;
  text-decoration: line-through;
  opacity: 0.72;
}
.completed-mark {
  margin-right: 4px;
  color: #4f7c70;
  font-weight: 800;
  text-decoration: none;
}
.note-link-mark {
  margin-right: 4px;
  text-decoration: none;
}
.add-day {
  opacity: 0;
  border: 1px dashed #b8bfbc;
  background: transparent;
  color: #77817e;
  border-radius: 5px;
  width: 100%;
  padding: 4px;
  font-size: 10px;
}
.day:hover .add-day {
  opacity: 1;
}
.colors button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid #d6dad8;
  box-shadow: none;
  background: #fff;
  color: #46534f;
  font-size: 0.85rem;
  font-weight: 600;
}
.colors button:nth-child(1) {
  --c: #c62828;
}
.colors button:nth-child(2) {
  --c: #4f7c70;
}
.colors button:nth-child(3) {
  --c: #d97757;
}
.colors button:nth-child(4) {
  --c: #9a6ca8;
}
.colors button:nth-child(5) {
  --c: #c49a3a;
}
.colors button.active {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, white);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 20%, transparent);
}
.hidden {
  display: none !important;
}
.day-notes {
  max-height: 55vh;
  overflow: auto;
}
.day-note-item {
  display: grid;
  grid-template-columns: 5px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #faf9f6;
}
.day-note-item.completed {
  background: #eef0ef;
  border-color: #d5d9d7;
  opacity: 0.75;
}
.day-note-item.completed .day-note-color {
  background: #9aa29f;
}
.day-note-item.completed .day-note-content > span {
  color: #7d8582;
  text-decoration: line-through;
}
.day-completed-mark {
  margin-right: 6px;
  color: #4f7c70;
  text-decoration: none;
}
.day-note-link {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 6px;
  color: #355f56;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.day-note-link:hover {
  text-decoration: underline;
}
.day-note-color {
  align-self: stretch;
  border-radius: 5px;
  background: var(--note);
}
.day-note-content strong,
.day-note-content span {
  display: block;
}
.day-note-content strong {
  font-size: 18px;
  color: var(--green);
}
.day-note-content span {
  font-size: 16px;
  white-space: pre-wrap;
}
.day-note-edit {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}
.day-empty {
  text-align: center;
  padding: 30px;
  color: #6c757d;
  background: #faf9f6;
  border-radius: 10px;
}
@media (max-width: 991px) {
  .sidebar {
    min-height: auto;
  }
  body.sidebar-collapsed .sidebar-content,
  body.sidebar-collapsed .brand-copy,
  body.sidebar-collapsed .brand-logo {
    display: none;
  }
  body.sidebar-collapsed .sidebar {
    padding-block: 12px !important;
  }
  body.sidebar-collapsed .sidebar-header {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }
  .client-item {
    white-space: nowrap;
  }
  .sidebar .nav {
    flex-direction: row !important;
    overflow: auto;
  }
  .day {
    min-height: 105px;
  }
  .display-title {
    font-size: 30px;
  }
}
@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }
  body {
    background: #fff !important;
    color: #111;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .sidebar,
  .calendar-main > header,
  .calendar-main > .d-flex.justify-content-between,
  .color-filter,
  .upcoming-panel,
  .dashboard-notes,
  .quick-notes-home,
  .day-actions,
  .modal,
  .toast-container {
    display: none !important;
  }
  .container-fluid,
  .row,
  .calendar-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .calendar-wrap {
    border: 1px solid #aaa;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .calendar {
    min-width: 0;
  }
  .weekdays,
  .weekdays span,
  .day,
  .note,
  .commemorative-date {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .weekdays span:nth-child(6),
  .weekdays span:nth-child(7) {
    background: #d9dfdd !important;
    color: #3f514c !important;
  }
  .day:nth-child(7n + 6),
  .day:nth-child(7n) {
    background: #e7ebe9 !important;
  }
  .day.other:nth-child(7n + 6),
  .day.other:nth-child(7n) {
    background: #dce1df !important;
    color: #777f7c !important;
  }
  .day {
    min-height: 0 !important;
    padding: 2mm;
    break-inside: avoid;
  }
  .day-content {
    min-height: 0;
  }
  .note {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    font-size: 9pt;
    line-height: 1.25;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .commemorative-date {
    font-size: 8pt;
    break-inside: avoid;
  }
  .agenda-page .agenda-filters,
  .agenda-page .agenda-summary {
    display: none !important;
  }
  .agenda-page main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }
  .agenda-page .agenda-day-group {
    grid-template-columns: 42mm minmax(0, 1fr);
    gap: 5mm;
    break-inside: avoid;
  }
  .agenda-page .agenda-day-heading {
    position: static;
  }
  .agenda-page .agenda-activity {
    box-shadow: none;
    break-inside: avoid;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
