/*!
 * BOD/COD Estimator — module CSS (e2z-bcd- prefix).
 * Color scheme (spec): Primary #0F766E (deep teal), Secondary #134E4A,
 * Accent #F59E0B (amber), BG #F0FDFA.
 * Scope: .e2z-tool-bod-cod-estimator (framework shortcode wrapper).
 */

.e2z-tool-bod-cod-estimator,
.e2z-tool-bod-cod-estimator *,
.e2z-tool-bod-cod-estimator *::before,
.e2z-tool-bod-cod-estimator *::after {
	box-sizing: border-box;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #134E4A;
	width: 100%;
	margin: 0 auto;
	background: #F0FDFA;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(15, 118, 110, 0.14);
	overflow: hidden;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-mono,
.e2z-tool-bod-cod-estimator .e2z-bcd-stat-value,
.e2z-tool-bod-cod-estimator .e2z-bcd-formula,
.e2z-tool-bod-cod-estimator .e2z-bcd-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #134E4A, #0F766E);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #F59E0B;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-title {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-subtitle {
	font-size: 0.84rem;
	opacity: 0.85;
	margin: 0;
}

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

.e2z-tool-bod-cod-estimator .e2z-bcd-inputs-panel,
.e2z-tool-bod-cod-estimator .e2z-bcd-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #99F6E4;
	box-shadow: 0 2px 8px rgba(15, 118, 110, 0.05);
	min-width: 0;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #0F766E;
	margin: 16px 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #FEF3C7;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	background: #F0FDFA;
	padding: 4px;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-tab {
	flex: 1;
	min-width: 90px;
	min-height: 44px;
	padding: 10px 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: #0F766E;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-tab-active {
	background: #0F766E;
	color: #fff;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-field {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-row .e2z-bcd-field { margin-bottom: 0; }
.e2z-tool-bod-cod-estimator .e2z-bcd-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #0F766E;
	margin-bottom: 4px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-hint {
	font-size: 0.73rem;
	color: #2DD4BF;
	margin: 0 0 10px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #99F6E4;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #134E4A;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-input:focus {
	outline: none;
	border-color: #F59E0B;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.e2z-tool-bod-cod-estimator .e2z-bcd-stage-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 8px;
	padding: 8px;
	background: #F0FDFA;
	border: 1px solid #99F6E4;
	border-left: 3px solid #F59E0B;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stage-row .e2z-bcd-field { min-width: 100px; margin-bottom: 0; }
.e2z-tool-bod-cod-estimator .e2z-bcd-stage-name-field { flex: 2; }
.e2z-tool-bod-cod-estimator .e2z-bcd-stage-del {
	min-height: 44px;
	min-width: 44px;
	border: 1px solid #FCA5A5;
	border-radius: 6px;
	background: #FEF2F2;
	color: #DC2626;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stage-del:hover { background: #DC2626; color: #fff; }

.e2z-tool-bod-cod-estimator .e2z-bcd-add-stage-btn {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px dashed #F59E0B;
	border-radius: 8px;
	background: #fff;
	color: #B45309;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-add-stage-btn:hover { background: #FFFBEB; }

.e2z-tool-bod-cod-estimator .e2z-bcd-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #0F766E;
	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-bod-cod-estimator .e2z-bcd-calc-btn:hover { filter: brightness(1.2); }
.e2z-tool-bod-cod-estimator .e2z-bcd-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.55);
}

.e2z-tool-bod-cod-estimator .e2z-bcd-empty-state {
	padding: 24px;
	text-align: center;
	color: #64748B;
	background: #F8FAFC;
	border-radius: 8px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #134E4A;
	border-bottom: 3px solid #F59E0B;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #FCD34D;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #5EEAD4;
	margin: 0;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	margin-top: 6px;
	background: #CCFBF1;
	color: #0F766E;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-badge-good { background: #DCFCE7; color: #15803D; }
.e2z-tool-bod-cod-estimator .e2z-bcd-badge-poor { background: #FEE2E2; color: #B91C1C; }
.e2z-tool-bod-cod-estimator .e2z-bcd-badge-mod { background: #FEF3C7; color: #B45309; }

.e2z-tool-bod-cod-estimator .e2z-bcd-result-block {
	background: #F8FAFC;
	border: 1px solid #CCFBF1;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-result-block h3 {
	font-size: 1rem;
	color: #134E4A;
	margin: 0 0 10px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stat {
	background: #fff;
	border: 1px solid #CCFBF1;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748B;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stat-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: #134E4A;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-stat-teal .e2z-bcd-stat-value { color: #0F766E; }
.e2z-tool-bod-cod-estimator .e2z-bcd-stat-amber .e2z-bcd-stat-value { color: #B45309; }

.e2z-tool-bod-cod-estimator .e2z-bcd-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-bod-cod-estimator .e2z-bcd-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
	background: #fff;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-table th {
	background: #134E4A;
	color: #FCD34D;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-table td {
	padding: 7px 6px;
	text-align: center;
	border-bottom: 1px solid #F0FDFA;
	white-space: nowrap;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-table td.e2z-bcd-td-left { text-align: left; }
.e2z-tool-bod-cod-estimator .e2z-bcd-table tbody tr:nth-child(odd) { background: #F8FAFC; }
.e2z-tool-bod-cod-estimator .e2z-bcd-table tfoot td {
	font-weight: 800;
	background: #CCFBF1;
	color: #0F766E;
	border-top: 2px solid #0F766E;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-formula {
	display: block;
	background: #134E4A;
	color: #FCD34D;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.8rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-note-info { background: #CCFBF1; color: #115E59; border-left: 3px solid #0F766E; }
.e2z-tool-bod-cod-estimator .e2z-bcd-note-good { background: #DCFCE7; color: #166534; border-left: 3px solid #16A34A; }
.e2z-tool-bod-cod-estimator .e2z-bcd-note-poor { background: #FEE2E2; color: #991B1B; border-left: 3px solid #DC2626; }
.e2z-tool-bod-cod-estimator .e2z-bcd-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

.e2z-tool-bod-cod-estimator .e2z-bcd-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-bod-cod-estimator .e2z-bcd-print-btn,
.e2z-tool-bod-cod-estimator .e2z-bcd-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-bod-cod-estimator .e2z-bcd-print-btn { background: #134E4A; }
.e2z-tool-bod-cod-estimator .e2z-bcd-copy-btn { background: #0F766E; }
.e2z-tool-bod-cod-estimator .e2z-bcd-print-btn:hover,
.e2z-tool-bod-cod-estimator .e2z-bcd-copy-btn:hover { filter: brightness(1.25); }

.e2z-tool-bod-cod-estimator .e2z-bcd-disclaimer {
	font-size: 0.75rem;
	color: #2DD4BF;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-bod-cod-estimator .e2z-bcd-hidden { display: none !important; }

@media (max-width: 480px) {
	.e2z-tool-bod-cod-estimator .e2z-bcd-title { font-size: 1.2rem; }
	.e2z-tool-bod-cod-estimator .e2z-bcd-inputs-panel,
	.e2z-tool-bod-cod-estimator .e2z-bcd-results-panel { padding: 14px; }
	.e2z-tool-bod-cod-estimator .e2z-bcd-hero-value { font-size: 1.6rem; }
	.e2z-tool-bod-cod-estimator .e2z-bcd-tab { min-width: 30%; }
	.e2z-tool-bod-cod-estimator .e2z-bcd-stage-name-field { flex-basis: 100%; }
}
@media (max-width: 360px) {
	.e2z-tool-bod-cod-estimator .e2z-bcd-header { padding: 16px 10px; }
	.e2z-tool-bod-cod-estimator .e2z-bcd-title { font-size: 1.05rem; }
	.e2z-tool-bod-cod-estimator .e2z-bcd-field { min-width: 100%; }
}
