/* ════════════════════════════════════════════════
   bpc-plantao-escala-mensal — Escala por mês (grade de quadros mensais)
   Cabeçalho + grade 2×2 de quadros (um por mês), cada um com até 5 datas
   do rodízio + etiqueta "Hoje" na data ativa + aviso.
   ════════════════════════════════════════════════ */
.bpc-plmonth {
	--plm-green:      #2f6b43;
	--plm-green-dark: #234e33;
	--plm-green-line: #bfe0c9;
	--plm-ink:        #2b2018;
	--plm-muted:      #8a7d68;
	--plm-line:       #efe7d8;
	--plm-line-soft:  #f0e9dc;
	--plm-cream:      #fbf8f1;
	--plm-amber:      #c0863a;

	box-sizing: border-box;
	width: 100%;
}
.bpc-plmonth *, .bpc-plmonth *::before, .bpc-plmonth *::after { box-sizing: border-box; }

/* ── Cabeçalho ─────────────────────────────────── */
.bpc-plmonth__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
.bpc-plmonth__title {
	margin: 0;
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--plm-green-dark);
}
.bpc-plmonth__legend {
	font-size: 0.86rem;
	color: var(--plm-muted);
	white-space: nowrap;
}

/* ── Grade de meses ────────────────────────────── */
.bpc-plmonth__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* ── Quadro do mês ─────────────────────────────── */
.bpc-plmonth__card {
	background: #ffffff;
	border: 1px solid var(--plm-line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(43, 32, 24, 0.05);
	overflow: hidden;
}
.bpc-plmonth__card--current {
	border-color: var(--plm-green-line);
}
.bpc-plmonth__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--plm-line-soft);
}
.bpc-plmonth__card--current .bpc-plmonth__card-head {
	background: #f2f8f3;
	border-bottom-color: #dcede0;
}
.bpc-plmonth__card-name {
	margin: 0;
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--plm-ink);
}
.bpc-plmonth__badge {
	flex-shrink: 0;
	background: var(--plm-green);
	color: #ffffff;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
}

/* ── Lista de datas ────────────────────────────── */
.bpc-plmonth__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px 14px;
}
.bpc-plmonth__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	background: var(--plm-cream);
	border: 1px solid var(--plm-line);
	border-radius: 12px;
}
.bpc-plmonth__row--today {
	background: #f4faf5;
	border-color: #cfe7d6;
}

/* Data (sigla + número/intervalo) */
.bpc-plmonth__date {
	flex: 0 0 58px;
	width: 58px;
	text-align: center;
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.bpc-plmonth__dow {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--plm-muted);
}
.bpc-plmonth__day {
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--plm-ink);
	white-space: nowrap;
}
.bpc-plmonth__row--today .bpc-plmonth__day {
	color: var(--plm-green);
}

.bpc-plmonth__divider {
	flex: 0 0 1px;
	align-self: stretch;
	background: var(--plm-line);
}

/* Info (farmácia + telefone) */
.bpc-plmonth__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.bpc-plmonth__name {
	font-family: Georgia, "Times New Roman", "Playfair Display", serif;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--plm-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bpc-plmonth__meta {
	font-size: 0.75rem;
	color: var(--plm-muted);
}

/* Farmácia parceira: nome em verde, com link opcional */
.bpc-plmonth__name--partner { color: var(--plm-green); }
.bpc-plmonth__name-link {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(47, 107, 67, 0.35);
	transition: border-color 0.15s ease;
}
.bpc-plmonth__name-link:hover,
.bpc-plmonth__name-link:focus-visible { border-bottom-color: var(--plm-green); }

/* Etiquetas à direita (Hoje / Parceira) */
.bpc-plmonth__tags {
	margin-left: auto;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
}
.bpc-plmonth__tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}
.bpc-plmonth__tag--today {
	background: rgba(47, 107, 67, 0.12);
	color: var(--plm-green);
}
.bpc-plmonth__tag--partner {
	background: rgba(192, 134, 58, 0.15);
	color: #8a5a12;
}
.bpc-plmonth__tag-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--plm-green);
}
.bpc-plmonth__ic-star { flex-shrink: 0; }

/* ── Aviso âmbar ───────────────────────────────── */
.bpc-plmonth__note {
	--plm-amber: #c0863a;

	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 16px 0 0;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1px solid #f0e4c8;
	background: #fcf6e8;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #6b4e1f;
}
.bpc-plmonth__ic { flex-shrink: 0; margin-top: 1px; color: var(--plm-amber); }

/* ── Responsivo ────────────────────────────────── */
@media (max-width: 680px) {
	.bpc-plmonth__grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
	.bpc-plmonth__row { flex-wrap: wrap; }
	.bpc-plmonth__tags { margin-left: 70px; }
}
