/* Chicken Rates Manager front end styles. Self contained so shortcodes render well in any theme. */

.crm-board {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin: 8px 0 4px;
}

.crm-card {
	background: #173f25;
	color: #fdfaf3;
	border-radius: 14px;
	padding: 22px 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	border-bottom: 4px solid #f0a626;
}

.crm-card-label {
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.85;
}

.crm-card-price {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.crm-card-unit {
	font-size: 13px;
	opacity: 0.8;
}

.crm-change {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 99px;
	width: fit-content;
	background: rgba(255, 255, 255, 0.14);
}

.crm-up { color: #ffb4a6; }
.crm-down { color: #a8e6b0; }
.crm-flat { color: #e8e4d8; }

.crm-table .crm-up { color: #b03020; background: #fdeae6; }
.crm-table .crm-down { color: #1d6b34; background: #e6f5ea; }
.crm-table .crm-flat { color: #555; background: #f1efe8; }

.crm-board-meta {
	font-size: 14px;
	color: #5a5f55;
	margin: 10px 0 0;
}

.crm-table-wrap { overflow-x: auto; margin: 8px 0; }

.crm-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
	background: #fff;
	border: 1px solid #e4e0d4;
	border-radius: 10px;
	overflow: hidden;
}

.crm-table th {
	background: #173f25;
	color: #fdfaf3;
	text-align: left;
	padding: 12px 14px;
	font-size: 14px;
}

.crm-table td {
	padding: 11px 14px;
	border-top: 1px solid #eeebdf;
	font-size: 15px;
}

.crm-table tbody tr:nth-child(even) { background: #faf8f1; }
.crm-td-city { font-weight: 700; }
.crm-td-city a { text-decoration: none; color: #173f25; border-bottom: 1px dotted #c9a23e; }

.crm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	margin: 8px 0;
}

.crm-grid-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #fff;
	border: 1px solid #e4e0d4;
	border-left: 4px solid #f0a626;
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none;
	color: #21251f;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.crm-grid-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(23, 63, 37, 0.12);
}

.crm-grid-city { font-weight: 800; font-size: 16px; }
.crm-grid-rate { font-size: 18px; font-weight: 700; color: #173f25; }
.crm-grid-rate small { font-weight: 400; color: #777; margin-left: 3px; }

.crm-grid-item .crm-change { background: #f1efe8; margin-top: 2px; }
.crm-grid-item .crm-up { color: #b03020; }
.crm-grid-item .crm-down { color: #1d6b34; }

.crm-updated { font-size: 14px; }

@media (max-width: 600px) {
	.crm-card-price { font-size: 28px; }
}
