/* Calendário de eventos - Meu Evento */
.mei-cal {
	max-width: 920px;
	margin: 0 auto 2rem;
	font-size: 0.95rem;
}
.mei-cal-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 1rem;
}
.mei-cal-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mei-cal-nav button {
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 8px;
	width: 34px;
	height: 34px;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	color: #555;
}
.mei-cal-nav button:hover { background: #f3f3f3; }
.mei-cal-label {
	font-weight: 600;
	font-size: 1.05rem;
	min-width: 150px;
	text-align: center;
}
.mei-cal-views {
	display: flex;
	gap: 4px;
}
.mei-vbtn {
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	padding: 7px 12px;
	font-size: 0.85rem;
	cursor: pointer;
	color: #555;
}
.mei-vbtn.on {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #3949ab;
	font-weight: 600;
}

/* ---------- Badges (compartilhadas) ---------- */
.mei-cal .mei-badge {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 99px;
}
.mei-badge-open   { background: #e3f5ea; color: #1d7a44; }
.mei-badge-full   { background: #fdf0d8; color: #9a6a10; }
.mei-badge-soon   { background: #eee; color: #555; }
.mei-badge-closed { background: #fae3e3; color: #a32020; }

/* ---------- Modo grade ---------- */
.mei-grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.mei-card {
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.mei-card-img {
	height: 130px;
	background: #f3f3f3 center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bbb;
	font-size: 2rem;
}
.mei-card-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.mei-card-titulo {
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	margin: 4px 0;
}
.mei-card-data { color: #666; font-size: 0.85rem; }
.mei-card-btn {
	margin-top: auto;
	display: block;
	text-align: center;
	padding: 9px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}
.mei-card-btn.ativo { background: #2563eb; color: #fff; }
.mei-card-btn.ativo:hover { background: #1d4ed8; }
.mei-card-btn.inativo {
	background: #f3f3f3;
	color: #999;
	cursor: default;
	pointer-events: none;
}

/* ---------- Modo lista ---------- */
.mei-lista-mes {
	margin-bottom: 1.5rem;
}
.mei-lista-mes h4 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	border-bottom: 2px solid #eee;
	padding-bottom: 6px;
	text-transform: capitalize;
}
.mei-lista-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 4px;
	border-bottom: 1px solid #f0f0f0;
}
.mei-lista-data {
	flex-shrink: 0;
	width: 64px;
	text-align: center;
	background: #f6f7f9;
	border-radius: 8px;
	padding: 6px 0;
}
.mei-lista-data .dia { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.mei-lista-data .mes { font-size: 0.7rem; text-transform: uppercase; color: #888; }
.mei-lista-info { flex: 1; }
.mei-lista-info .titulo { font-weight: 600; }
.mei-lista-info .sub { color: #777; font-size: 0.82rem; }
.mei-lista-acao a {
	font-size: 0.85rem;
	font-weight: 600;
	color: #2563eb;
	text-decoration: none;
	white-space: nowrap;
}
.mei-lista-acao span { color: #999; font-size: 0.82rem; }

/* ---------- Modo mês ---------- */
.mei-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
	margin-bottom: 4px;
}
.mei-weekdays div {
	text-align: center;
	font-size: 0.75rem;
	font-weight: 600;
	color: #888;
	padding: 4px 0;
}
.mei-grid-mes {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-auto-rows: 92px;
	gap: 3px;
}
.mei-dia {
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: 6px 5px;
	overflow: hidden;
	font-size: 0.8rem;
}
.mei-dia.cur { border-color: #ececec; }
.mei-dia.out { opacity: 0.35; }
.mei-dia.hoje { border-color: #c7d2fe; background: #f7f8ff; }
.mei-dia-num { font-weight: 600; color: #666; margin-bottom: 4px; }
.mei-dia.hoje .mei-dia-num { color: #3949ab; }
.mei-dia.tem-evento { cursor: pointer; }
.mei-dia.tem-evento:hover { background: #f6f7f9; }
.mei-dia-evs { display: flex; flex-direction: column; gap: 2px; }
.mei-dia-ev {
	font-size: 0.68rem;
	padding: 2px 5px;
	border-radius: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}
.mei-dia-ev.open   { background: #e3f5ea; color: #1d7a44; }
.mei-dia-ev.full   { background: #fdf0d8; color: #9a6a10; }
.mei-dia-ev.soon   { background: #eee; color: #555; }
.mei-dia-ev.closed { background: #fae3e3; color: #a32020; }

.mei-popover {
	margin-top: 12px;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
}
.mei-popover .fechar {
	float: right;
	border: none;
	background: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #999;
	line-height: 1;
}
.mei-popover .pop-data { color: #888; font-size: 0.8rem; margin: 0 0 10px; }
.mei-popover .pop-ev { padding: 8px 0; }
.mei-popover .pop-ev + .pop-ev { border-top: 1px solid #f0f0f0; }
.mei-popover .pop-titulo { font-weight: 600; margin: 0 0 3px; }
.mei-popover .pop-meta { color: #777; font-size: 0.82rem; margin: 0 0 8px; }
.mei-popover .pop-btn {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}
.mei-popover .pop-btn.ativo { background: #2563eb; color: #fff; }
.mei-popover .pop-btn.inativo { background: #f3f3f3; color: #999; }

.mei-vazio {
	text-align: center;
	color: #999;
	padding: 2rem;
}

/* ---------- Legenda ---------- */
.mei-legenda {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 14px;
	font-size: 0.78rem;
	color: #777;
}
.mei-legenda span { display: inline-flex; align-items: center; gap: 5px; }
.mei-legenda i {
	width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
