/* shared with pest.php / daily.php — mobile-first dashboard */
/* 製品ブランド見出し（menu.txt の Pomona 等） */
.agrishot-product-heading {
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.2;
	margin: 0.5rem 0 0.5rem;
	color: inherit;
	background: transparent;
	border: none;
	padding: 0;
	text-align: left;
	width: auto;
}
.agrishot-product-heading a {
	color: #007bff;
	text-decoration: none;
}
.agrishot-product-heading a:hover,
.agrishot-product-heading a:focus {
	color: #0056b3;
	text-decoration: none;
}
#ui-datepicker-div {
	z-index: 1100 !important;
}
.pest-device-nav-row .pest-context-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}
.pest-device-nav-row .pest-context-actions__btn {
	min-height: 44px;
	font-weight: 600;
	white-space: nowrap;
}
.pest-page {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	padding-bottom: 1.25rem;
}
.pest-glance {
	position: sticky;
	top: 0;
	z-index: 1020;
	color: #fff;
	border-radius: 0 0 16px 16px;
	padding: 14px 16px 16px;
	margin: 0 -8px 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.pest-glance--safe {
	background: linear-gradient(135deg, #0f5132 0%, #198754 55%, #20c997 100%);
	box-shadow: 0 8px 24px rgba(15, 81, 50, 0.25);
}
.pest-glance--caution {
	background: linear-gradient(135deg, #664d03 0%, #ffc107 55%, #ffda6a 100%);
	color: #1a1a1a;
}
.pest-glance--caution .text-white-50,
.pest-glance--caution .pest-glance__meta { color: #333 !important; opacity: 1; }
.pest-glance--danger {
	background: linear-gradient(135deg, #58151c 0%, #dc3545 55%, #f5c2c7 100%);
	color: #fff;
}
@media (min-width: 576px) {
	.pest-glance { margin: 0 0 20px; border-radius: 16px; }
}
.pest-glance__rain {
	font-size: clamp(2rem, 9vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
}
.pest-glance__rain small { font-size: 45%; font-weight: 600; opacity: .9; vertical-align: super; margin-left: 2px; }
.pest-glance__meta {
	font-size: 0.9rem;
	opacity: .92;
	margin-top: 6px;
	line-height: 1.35;
}
.pest-pill {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.pest-pill--safe { background: rgba(255,255,255,.25); color: #fff; }
.pest-glance--caution .pest-pill--safe { background: rgba(0,0,0,.08); color: #1a1a1a; }
.pest-pill--caution { background: #fff3cd; color: #664d03; border: 1px solid rgba(0,0,0,.08); }
.pest-glance--caution .pest-pill--caution { background: #fff; color: #664d03; }
.pest-pill--danger { background: #f8d7da; color: #58151c; font-weight: 800; }
.pest-glance--danger .pest-pill--danger { background: #fff; color: #842029; }
.pest-chart-panel {
	border: 1px solid #dee2e6;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	margin-bottom: 1rem;
}
.pest-chart-panel__heading {
	margin: 0;
	padding: 14px 16px;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.3;
	background: #f8f9fa;
	min-height: 48px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e9ecef;
}
.pest-chart-panel .pest-chart-inner { padding: 8px 12px 16px; }
.pest-soil-current {
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 1rem;
	font-weight: 800;
	font-size: 1.35rem;
	line-height: 1.3;
	border: 2px solid transparent;
}
.pest-soil-current small { display: block; font-size: 0.78rem; font-weight: 600; margin-top: 6px; opacity: .9; }
.pest-soil--danger { background: #f8d7da; border-color: #f1aeb5; color: #58151c; }
.pest-soil--caution { background: #fff3cd; border-color: #ffecb5; color: #664d03; }
.pest-soil--safe { background: #d1e7dd; border-color: #a3cfbb; color: #0f5132; }
.pest-soil--muted { background: #e9ecef; border-color: #dee2e6; color: #495057; }
.pest-settings-panel {
	border: 1px solid #dee2e6;
	border-radius: 12px;
	background: #f8f9fa;
	overflow: hidden;
	margin-bottom: 1rem;
}
.pest-settings-panel .pest-settings-heading {
	margin: 0;
	padding: 14px 16px;
	font-weight: 700;
	font-size: 1rem;
	background: #fff;
	border-bottom: 1px solid #e9ecef;
	display: flex;
	align-items: center;
	min-height: 48px;
}
.pest-settings-panel .pest-settings-body { padding: 14px 16px; }
.pest-settings-body .pest-rain-dates-row { margin-bottom: 0.75rem; }
.pest-settings-body .pest-settings-field-label {
	display: block;
	font-size: 0.8125rem;
	margin-bottom: 0.25rem;
	line-height: 1.2;
}
.pest-stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 14px 16px;
	border: 1px solid #e9ecef;
	height: 100%;
	margin-bottom: 12px;
}
.pest-stat-card.pest-stat-card--safe { background: #d1e7dd !important; border-color: #a3cfbb !important; }
.pest-stat-card.pest-stat-card--caution { background: #fff3cd !important; border-color: #ffecb5 !important; }
.pest-stat-card.pest-stat-card--danger { background: #f8d7da !important; border-color: #f5c2c7 !important; }
.pest-stat-card .label { font-size: 0.78rem; color: #6c757d; text-transform: none; font-weight: 600; }
.pest-stat-card .value { font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; color: #212529; margin: 4px 0 0; line-height: 1.15; }
.pest-section-title { font-size: 1.15rem; font-weight: 800; margin: 1.25rem 0 0.75rem; color: #0f5132; }
.pest-accordion .card { border-radius: 12px; margin-bottom: 10px; border: 1px solid #dee2e6; overflow: hidden; }
.pest-accordion .card-header { padding: 0; background: #fff; border-bottom: none; }
.pest-accordion .btn-link {
	font-weight: 700;
	color: #0f5132 !important;
	text-decoration: none !important;
	padding: 14px 16px;
	font-size: 1rem;
	width: 100%;
	text-align: left;
	min-height: 48px;
}
.pest-accordion .btn-link:hover { background: #f8f9fa; }
.pest-accordion .card-body { padding: 12px 14px 16px; background: #fafcfb; }
.pest-pred-row { margin-bottom: 12px; }
.pest-pred-row:last-child { margin-bottom: 0; }
.pest-pred-row .pest-lbl { font-size: 0.75rem; color: #6c757d; font-weight: 600; display: block; margin-bottom: 2px; }
.pest-pred-row .pest-val { font-size: 1.05rem; font-weight: 700; color: #212529; line-height: 1.3; }
.pest-chart-wrap .chart-container { height: 240px !important; }
@media (min-width: 768px) {
	.pest-chart-wrap .chart-container { height: 360px !important; }
}
.pest-guide-card { font-size: 0.9rem; line-height: 1.5; color: #495057; }
.pest-guide-card .card-title { font-size: 1rem; font-weight: 700; color: #0f5132; }
.daily-metrics-row .col-md-3 {
	flex: 0 0 25%;
	max-width: 25%;
}
@media (max-width: 767.98px) {
	.daily-metrics-row .col-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}
.daily-metric-btn {
	display: block;
	width: 100%;
	cursor: pointer;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	padding: 14px 16px;
	min-height: 48px;
	margin-bottom: 0;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}
@media (min-width: 768px) {
	.daily-metric-btn,
	.daily-metric-display {
		padding: 12px 10px;
	}
	.daily-metric-btn .label,
	.daily-metric-display .label {
		font-size: 0.8rem;
	}
}
.daily-metric-btn:hover { border-color: #a3cfbb; background: #f8f9fa; }
.daily-metric-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.35); }
.daily-metric-btn.active {
	border-color: #0f5132;
	box-shadow: 0 0 0 1px #0f5132;
}
.daily-metric-btn.pest-stat-card--safe { background: #d1e7dd !important; border-color: #a3cfbb !important; }
.daily-metric-btn.pest-stat-card--caution { background: #fff3cd !important; border-color: #ffecb5 !important; }
.daily-metric-btn.pest-stat-card--danger { background: #f8d7da !important; border-color: #f1aeb5 !important; }
.daily-metric-btn.active.pest-stat-card--safe,
.daily-metric-btn.active.pest-stat-card--caution,
.daily-metric-btn.active.pest-stat-card--danger {
	border-color: #0f5132 !important;
	box-shadow: 0 0 0 2px #0f5132;
}
.daily-metric-btn--disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.daily-metric-btn--disabled:hover { border-color: #e9ecef; background: #fff; }
.daily-metric-btn .label {
	font-size: 0.85rem;
	color: #212529;
	font-weight: 700;
	margin: 0;
	display: block;
	line-height: 1.35;
}
.daily-metric-display {
	min-height: 48px;
	margin-bottom: 0;
}
.daily-metric-display .value {
	font-size: clamp(1.5rem, 6vw, 2rem);
	font-weight: 800;
	color: #212529;
	margin-top: 4px;
	line-height: 1.15;
}
