#epaper-calendar-wrapper{
 
  position: relative;
  display: inline-block;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  font-size: 18px;
}

/* ===== TRIGGER ===== */
#epaper-calendar-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

/* ===== DROPDOWN ===== */
#epaper-calendar-dropdown {
  position: absolute;
  top: 115%;
  left: 0;
  width: 340px;

  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;

  box-shadow: 0 12px 35px rgba(0,0,0,0.12);

  padding: 12px;

  transform: translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 9999;
}

#epaper-calendar-wrapper.open #epaper-calendar-dropdown {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* ===== HEADER (FIXED DARK BLUE) ===== */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 10px;
  padding: 8px 10px;

  background: #1e3a8a; /* DARK BLUE */
  border-radius: 8px;
}

.cal-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff; /* WHITE TEXT */
}

/* NAV BUTTONS (CLEAN BLUE) */
.cal-header button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 9px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
  transition: 0.2s;
}

.cal-header button:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== WEEK HEADER ===== */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-align: center;
  margin: 8px 0;
}

/* ===== TABLE BASE ===== */
#calendar {
  width: 100%;
  border-collapse: collapse;
}

/* alternating ROWS (soft only, no clash) */
#calendar tr:nth-child(odd) td {
  background: #ffffff;
}

#calendar tr:nth-child(even) td {
  background: #f9fafb;
}

/* ===== CELLS ===== */
#calendar td {
  width: 14.2%;
  height: 38px;
  text-align: center;
  cursor: pointer;

  font-size: 13px;
  font-weight: 500;
  color: #111;

  transition: all 0.15s ease;
  border-radius: 4px;
}

/* ===== HOVER (ONLY ONE COLOR - CLEAN) ===== */
#calendar td:hover {
  background: #f5bd31 !important; /* soft blue hover */
  transform: scale(1.05);
}

/* ===== EPAPER DAYS ===== */
.has-post {
  background: #bfdbfe !important; /* light blue */
  font-weight: 700;
}

/* hover on epaper days */
.has-post:hover {
  background: #93c5fd !important;
}

/* ===== TODAY ===== */
.today {
  outline: 2px solid #1e3a8a;
  font-weight: 800;
  background: #FEEC41 !important;
}

/* ===== EMPTY CELLS ===== */
#calendar td:empty {
  background: transparent !important;
  cursor: default;
  transform: none;
}