/* [acutis-lich-ngay] — sidebar Newspaper. Không áp vào [lich-xito]. */

html body .acutis-widget-daily-card,
html body .acutis-widget-daily-card .xito-card,
html body .acutis-widget-daily-card .xito-info-card,
html body .acutis-widget-daily-card .acutis-widget-stage,
html body .acutis-widget-daily-card .acutis-widget-scroll-area {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html body .acutis-widget-daily-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-bottom: 3px solid #D4AF37 !important;
  border-radius: 0 0 8px 8px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 12px !important;
  margin: 0 0 20px !important;
  margin-top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: max-content !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  overflow: visible;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

html body .acutis-widget-daily-card .xito-page {
  width: 100% !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

html body .acutis-widget-daily-card .acutis-widget-bar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1e4f60 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  padding: 15px 12px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom: 3px solid #D4AF37 !important;
}

html body .acutis-widget-daily-card .acutis-widget-bar h2,
html body .acutis-widget-daily-card .acutis-widget-bar h3,
html body .acutis-widget-daily-card .acutis-widget-bar p,
html body .acutis-widget-daily-card .acutis-widget-bar span {
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: 1.2 !important;
}

html body .acutis-widget-daily-card .acutis-widget-bar__icon {
  flex-shrink: 0;
}

html body .acutis-widget-daily-card .acutis-widget-nav {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 10px !important;
  margin: 0 !important;
  background: #fff;
}

html body .acutis-widget-daily-card .acutis-widget-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: #1e4f60 !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  line-height: 1 !important;
}

html body .acutis-widget-daily-card .acutis-widget-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

html body .acutis-widget-daily-card .acutis-widget-datehit {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

html body .acutis-widget-daily-card .acutis-widget-weekday {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  color: #1b6b2a !important;
  text-transform: uppercase;
  line-height: 1.2 !important;
  margin: 0 !important;
}

html body .acutis-widget-daily-card .acutis-widget-datelabel {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1b6b2a !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

html body .acutis-widget-daily-card .acutis-widget-lunar-date {
  font-size: 12px !important;
  color: #777 !important;
  font-style: italic !important;
  font-weight: 400 !important;
  margin: 2px 0 0 !important;
  line-height: 1.2 !important;
}

html body .acutis-widget-daily-card .acutis-widget-lunar-date:empty {
  display: none !important;
}

html body .acutis-widget-daily-card .acutis-widget-pop {
  display: none;
  position: absolute;
  z-index: 999;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  width: 260px;
  max-width: calc(100vw - 32px);
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #8b0000;
  padding: 10px !important;
  text-align: left;
}

html body .acutis-widget-daily-card .acutis-widget-datehit:hover .acutis-widget-pop,
html body .acutis-widget-daily-card .acutis-widget-datehit:focus-within .acutis-widget-pop {
  display: block;
}

html body .acutis-widget-daily-card .acutis-mini__bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px !important;
}

html body .acutis-widget-daily-card .acutis-mini__title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #7a1f1a !important;
  text-align: center;
}

html body .acutis-widget-daily-card .acutis-mini__nav {
  width: 28px;
  height: 28px;
  border: 1px solid #e4d2d0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #7a1f1a !important;
  cursor: pointer;
  padding: 0 !important;
}

html body .acutis-widget-daily-card .acutis-mini__week,
html body .acutis-widget-daily-card .acutis-mini__grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

html body .acutis-widget-daily-card .acutis-mini__week {
  margin: 0 0 4px !important;
}

html body .acutis-widget-daily-card .acutis-mini__week span {
  text-align: center;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #8b0000 !important;
}

html body .acutis-widget-daily-card .acutis-mini__day {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 28px;
  border: 0 !important;
  border-radius: 6px !important;
  background: #f3f3f3 !important;
  color: #333 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  cursor: pointer;
}

html body .acutis-widget-daily-card .acutis-mini__day.is-out {
  color: #aaa !important;
  background: #f7f7f7 !important;
}

html body .acutis-widget-daily-card .acutis-mini__day.is-empty {
  cursor: default;
  opacity: 0.45;
}

html body .acutis-widget-daily-card .acutis-mini__day.is-selected {
  background: #8b1e1e !important;
  color: #fff !important;
}

html body .acutis-widget-daily-card .xito-inline-search-box {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 6px 8px !important;
  position: static !important;
  box-sizing: border-box !important;
}

html body .acutis-widget-daily-card .xito-search {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

html body .acutis-widget-daily-card .xito-search__icon {
  position: absolute !important;
  left: 8px !important;
  right: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}

html body .acutis-widget-daily-card .xito-search__clear {
  position: absolute !important;
  right: 6px !important;
  left: auto !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  z-index: 2;
}

html body .acutis-widget-daily-card .xito-search__clear[hidden] {
  display: none !important;
}

html body .acutis-widget-daily-card .xito-search__input {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 7px 28px 7px 32px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body .acutis-widget-daily-card .acutis-widget-stage,
html body .acutis-widget-daily-card .acutis-widget-scroll-area {
  background: #fdf9f1;
  padding: 5px 5px 0 0 !important;
  border-radius: 0 0 8px 8px;
  height: auto !important;
  min-height: 0 !important;
  max-height: 400px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

html body .acutis-widget-daily-card .acutis-widget-scroll-area::-webkit-scrollbar {
  width: 4px;
}

html body .acutis-widget-daily-card .acutis-widget-scroll-area::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

html body .acutis-widget-daily-card .acutis-widget-scroll-wrap {
  position: relative !important;
}

html body .acutis-widget-daily-card .acutis-widget-fade {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 3;
  pointer-events: none !important;
  transition: opacity 0.3s ease;
}

html body .acutis-widget-daily-card .acutis-widget-fade--top {
  top: 0 !important;
  height: 30px;
  opacity: 0;
  background: linear-gradient(to bottom, #fdf9f1, transparent);
}

html body .acutis-widget-daily-card .acutis-widget-fade--bottom {
  bottom: 0 !important;
  height: 40px;
  opacity: 1;
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(to top, #fdf9f1, transparent);
}

html body .acutis-widget-daily-card .acutis-widget-fade__chevron {
  width: 8px;
  height: 8px;
  margin: 0 0 8px !important;
  border-right: 2px solid rgba(30, 79, 96, 0.55);
  border-bottom: 2px solid rgba(30, 79, 96, 0.55);
  transform: rotate(45deg);
  animation: acutis-fade-bounce 1.2s ease-in-out infinite;
}

@keyframes acutis-fade-bounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(4px) rotate(45deg); }
}

html body .acutis-widget-daily-card .acutis-widget-stage .xito-panel__head {
  display: none !important;
}

html body .acutis-widget-daily-card .xito-panel__cols,
html body .acutis-widget-daily-card .xito-panel__col-main,
html body .acutis-widget-daily-card .xito-panel__col-side,
html body .acutis-widget-daily-card .xito-panel__body,
html body .acutis-widget-daily-card .xito-panel__body--split {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .acutis-widget-daily-card .xito-card--liturgy {
  display: block !important;
  background: #fff !important;
  border: 0 !important;
  border-left: 6px solid #2e7d32 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  padding: 10px 8px 10px 10px !important;
  margin: 0 0 10px !important;
}

html body .acutis-widget-daily-card .xito-card--red { border-left-color: #c0392b !important; }
html body .acutis-widget-daily-card .xito-card--white { border-left-color: #cfc6ba !important; }
html body .acutis-widget-daily-card .xito-card--purple { border-left-color: #6b3fa0 !important; }
html body .acutis-widget-daily-card .xito-card--rose { border-left-color: #c2185b !important; }
html body .acutis-widget-daily-card .xito-card--black { border-left-color: #222 !important; }

html body .acutis-widget-daily-card h2.xito-card__feast,
html body .acutis-widget-daily-card .xito-card__feast,
html body .acutis-widget-daily-card .xito-card__feast strong {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  color: #222 !important;
}

html body .acutis-widget-daily-card .xito-card__feast--highlight,
html body .acutis-widget-daily-card .xito-title--darkred {
  color: #8b0000 !important;
}

html body .acutis-widget-daily-card .xito-card__rank {
  display: block !important;
  margin: 0 0 2px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  text-transform: none !important;
}

html body .acutis-widget-daily-card .xito-sub-saints {
  display: block !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-style: italic !important;
  color: #666 !important;
}

html body .acutis-widget-daily-card .xito-meta-row {
  display: flex !important;
  align-items: flex-start;
  gap: 6px;
  margin: 0 !important;
}

html body .acutis-widget-daily-card .xito-meta-text {
  font-size: 13px !important;
  color: #444 !important;
  line-height: 1.4 !important;
}

html body .acutis-widget-daily-card .xito-info-card,
html body .acutis-widget-daily-card .xito-info-card:hover {
  display: block !important;
  width: 100% !important;
  background: #fff !important;
  border: 2px solid #e5a743 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 8px !important;
  margin: 0 0 10px !important;
}

html body .acutis-widget-daily-card .xito-info-card header h3 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #c58a00 !important;
  text-transform: none !important;
}

html body .acutis-widget-daily-card .xito-info-card header h3 span {
  font-weight: 400 !important;
  color: #888 !important;
}

html body .acutis-widget-daily-card .xito-reading-line,
html body .acutis-widget-daily-card .xito-card-body .xito-reading-line {
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: #222 !important;
  margin: 0 !important;
}

html body .acutis-widget-daily-card .acutis-widget-scroll {
  max-height: none;
  overflow: visible;
  background: #f4f4f4;
  padding: 4px 0 !important;
  margin: 0 !important;
  border-radius: 4px;
  width: 100% !important;
}

html body .acutis-widget-daily-card .xito-info-card ul,
html body .acutis-widget-daily-card .acutis-widget-scroll ul {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  width: 100% !important;
}

html body .acutis-widget-daily-card .xito-info-card ul li {
  position: static !important;
  display: block !important;
  list-style: none !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  margin: 0 0 3px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  color: #222 !important;
  background: none !important;
  text-align: left !important;
}

html body .acutis-widget-daily-card .xito-info-card ul li::before {
  content: none !important;
  display: none !important;
}

html body .acutis-widget-daily-card .acutis-monk-title {
  font-weight: 400 !important;
  font-style: normal !important;
}

html body .acutis-widget-daily-card .acutis-monk-saint {
  font-weight: 400 !important;
  font-style: italic !important;
}

html body .acutis-widget-daily-card .acutis-monk-name {
  font-weight: 700 !important;
  font-style: normal !important;
}

html body .acutis-widget-daily-card .acutis-monk-house {
  font-weight: 400 !important;
  font-style: normal !important;
  color: #555 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card {
  margin: 0 0 20px !important;
  margin-top: 0 !important;
  padding: 0 0 12px !important;
  padding-top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: max-content !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  border-bottom: 3px solid #D4AF37 !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-page,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-bar {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-bar {
  padding: 15px 12px !important;
  font-size: 17px !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom: 3px solid #D4AF37 !important;
}

html body .widget p:empty,
html body .textwidget > p:empty,
html body .textwidget > br,
html body .td_block_wrap p:empty,
html body p:empty:has(+ .acutis-widget-daily-card),
html body p:has(+ #lich-xito-app-wrapper.acutis-widget-daily-card) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

html body .widget:has(.acutis-widget-daily-card),
html body .textwidget:has(.acutis-widget-daily-card),
html body .td_block_wrap:has(.acutis-widget-daily-card) {
  margin-top: 0 !important;
  padding-top: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card--liturgy,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card:hover {
  padding: 8px 0 0 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card.acutis-widget-readings {
  padding: 8px !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card header {
  margin: 0 !important;
  padding: 0 8px !important;
  padding-bottom: 0 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card header h3 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  font-size: calc(1.25rem - 3px) !important;
  font-weight: 700 !important;
  color: #c58a00 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body p,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card ul,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-monastery-events,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-reading-line,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body .xito-reading-line {
  margin-top: 0 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-reading-line,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body .xito-reading-line,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body p {
  margin-bottom: 0 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-reading-line,
html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body .xito-reading-line {
  font-size: calc(1.05rem - 2px) !important;
  text-align: center !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body {
  padding: 0 !important;
  margin: 0 !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-scroll {
  width: 100% !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  border-radius: 0 0 6px 6px;
  box-sizing: border-box !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card ul {
  padding-left: 0 !important;
  margin-left: 0 !important;
  list-style: none !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card ul li {
  position: relative !important;
  padding-left: 12px !important;
  margin-left: 0 !important;
  margin-bottom: 6px !important;
  text-align: left !important;
}

html body #lich-xito-app-wrapper.acutis-widget-daily-card ul li::before {
  content: "•" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  color: #e5a743 !important;
  font-weight: bold !important;
  font-size: 16px !important;
  line-height: inherit !important;
}

@media (max-width: 768px) {
  html body .acutis-widget-daily-card,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card {
    padding: 0 0 12px !important;
    padding-top: 0 !important;
    margin: 0 0 20px !important;
    margin-top: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: max-content !important;
    align-self: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom: 3px solid #D4AF37 !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-page,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-bar,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-bar h2,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-bar h3,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card .acutis-widget-bar p {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style: none !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card ul li {
    padding-left: 12px !important;
    margin-left: 0 !important;
    margin-bottom: 6px !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card ul li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #e5a743 !important;
    font-weight: bold !important;
    font-size: 16px !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-info-card header h3 {
    font-size: calc(1.25rem - 3px) !important;
    font-weight: 700 !important;
    color: #c58a00 !important;
  }

  html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-reading-line,
  html body #lich-xito-app-wrapper.acutis-widget-daily-card .xito-card-body .xito-reading-line {
    font-size: calc(1.05rem - 2px) !important;
    text-align: center !important;
  }
}
