/*!
 * Solid Waste Generation Estimator — module CSS (e2z-swg- prefix).
 * Color scheme (spec): Primary #78716C (waste stone), Secondary #1C1917,
 * Accent #16A34A (recycle green), BG #FAFAF9.
 * Scope: .e2z-tool-solid-waste-generation-estimator (framework wrapper).
 */

.e2z-tool-solid-waste-generation-estimator,
.e2z-tool-solid-waste-generation-estimator *,
.e2z-tool-solid-waste-generation-estimator *::before,
.e2z-tool-solid-waste-generation-estimator *::after {
	box-sizing: border-box;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #1C1917;
	width: 100%;
	margin: 0 auto;
	background: #FAFAF9;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(120, 113, 108, 0.14);
	overflow: hidden;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-mono,
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat-value,
.e2z-tool-solid-waste-generation-estimator .e2z-swg-formula,
.e2z-tool-solid-waste-generation-estimator .e2z-swg-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #1C1917, #78716C);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #16A34A;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-subtitle {
	font-size: 0.82rem;
	opacity: 0.85;
	margin: 0;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-inputs-panel { flex: 2; min-width: 0; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-results-panel { flex: 3; min-width: 360px; }
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-inputs-panel,
.e2z-tool-solid-waste-generation-estimator .e2z-swg-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #E7E5E4;
	box-shadow: 0 2px 8px rgba(120, 113, 108, 0.05);
	min-width: 0;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #78716C;
	margin: 16px 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #DCFCE7;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-inputs-panel > .e2z-swg-section-title:first-of-type { margin-top: 0; }

.e2z-tool-solid-waste-generation-estimator .e2z-swg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-field {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-row .e2z-swg-field { margin-bottom: 0; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #57534E;
	margin-bottom: 4px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-hint {
	font-size: 0.73rem;
	color: #A8A29E;
	margin: 4px 0 10px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #E7E5E4;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #1C1917;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-input:focus {
	outline: none;
	border-color: #16A34A;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-comp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-comp-cell {
	display: flex;
	flex-direction: column;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-comp-cell label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #57534E;
	margin-bottom: 3px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-comp-cell input {
	min-height: 40px;
	padding: 6px 8px;
	border: 1px solid #E7E5E4;
	border-radius: 6px;
	font-size: 0.85rem;
	font-family: 'SF Mono', monospace;
	color: #1C1917;
	width: 100%;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-comp-cell input:focus {
	outline: none; border-color: #16A34A; box-shadow: 0 0 0 2px rgba(22,163,74,0.16);
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-comp-sum {
	font-size: 0.78rem;
	font-weight: 700;
	margin: 0 0 12px;
	font-family: 'SF Mono', monospace;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-sum-ok { color: #15803D; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-sum-bad { color: #B91C1C; }

.e2z-tool-solid-waste-generation-estimator .e2z-swg-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #78716C;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter 0.15s ease;
	margin-top: 6px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-calc-btn:hover { filter: brightness(1.15); }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.5);
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-empty-state {
	padding: 24px;
	text-align: center;
	color: #A8A29E;
	background: #FAFAF9;
	border-radius: 8px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #1C1917;
	border-bottom: 3px solid #16A34A;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #4ADE80;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #D6D3D1;
	margin: 0;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	margin-top: 6px;
	background: #DCFCE7;
	color: #15803D;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-result-block {
	background: #FAFAF9;
	border: 1px solid #E7E5E4;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-result-block h3 {
	font-size: 1rem;
	color: #1C1917;
	margin: 0 0 10px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat {
	background: #fff;
	border: 1px solid #E7E5E4;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #A8A29E;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1C1917;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat-stone .e2z-swg-stat-value { color: #78716C; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-stat-green .e2z-swg-stat-value { color: #15803D; }

/* composition bars */
.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 7px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #44403C;
	min-width: 74px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-track {
	flex: 1;
	height: 18px;
	background: #E7E5E4;
	border-radius: 9px;
	overflow: hidden;
	min-width: 50px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-fill {
	height: 100%;
	border-radius: 9px;
	background: #16A34A;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-val {
	font-size: 0.76rem;
	font-weight: 700;
	color: #57534E;
	min-width: 96px;
	text-align: right;
	font-family: 'SF Mono', monospace;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
	background: #fff;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-table th {
	background: #1C1917;
	color: #4ADE80;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-table td {
	padding: 7px 6px;
	text-align: center;
	border-bottom: 1px solid #FAFAF9;
	white-space: nowrap;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-table td.e2z-swg-td-left { text-align: left; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-table tbody tr:nth-child(odd) { background: #FAFAF9; }

.e2z-tool-solid-waste-generation-estimator .e2z-swg-formula {
	display: block;
	background: #1C1917;
	color: #4ADE80;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.8rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-note-info { background: #DCFCE7; color: #166534; border-left: 3px solid #16A34A; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-note-warn { background: #FEF9C3; color: #854D0E; border-left: 3px solid #FACC15; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

.e2z-tool-solid-waste-generation-estimator .e2z-swg-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-print-btn,
.e2z-tool-solid-waste-generation-estimator .e2z-swg-copy-btn {
	flex: 1;
	min-height: 44px;
	padding: 11px;
	border: none;
	border-radius: 8px;
	color: #fff;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.e2z-tool-solid-waste-generation-estimator .e2z-swg-print-btn { background: #1C1917; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-copy-btn { background: #78716C; }
.e2z-tool-solid-waste-generation-estimator .e2z-swg-print-btn:hover,
.e2z-tool-solid-waste-generation-estimator .e2z-swg-copy-btn:hover { filter: brightness(1.2); }

.e2z-tool-solid-waste-generation-estimator .e2z-swg-disclaimer {
	font-size: 0.75rem;
	color: #A8A29E;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-solid-waste-generation-estimator .e2z-swg-hidden { display: none !important; }

@media (max-width: 480px) {
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-title { font-size: 1.12rem; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-inputs-panel,
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-results-panel { padding: 14px; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-hero-value { font-size: 1.55rem; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-label { min-width: 62px; font-size: 0.72rem; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-bar-val { min-width: 76px; }
}
@media (max-width: 360px) {
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-header { padding: 16px 10px; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-title { font-size: 1rem; }
	.e2z-tool-solid-waste-generation-estimator .e2z-swg-field { min-width: 100%; }
}
