/*!
 * Machine Cycle Time Estimator — module CSS (e2z-mct- prefix).
 * Color scheme (spec): Primary #334155 (precision slate), Secondary #0F172A,
 * Accent #06B6D4 (cyan), BG #F8FAFC.
 * Scope: .e2z-tool-machine-cycle-time-estimator (framework shortcode wrapper).
 */

.e2z-tool-machine-cycle-time-estimator,
.e2z-tool-machine-cycle-time-estimator *,
.e2z-tool-machine-cycle-time-estimator *::before,
.e2z-tool-machine-cycle-time-estimator *::after {
	box-sizing: border-box;
}

.e2z-tool-machine-cycle-time-estimator .e2z-mct-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #0F172A;
	width: 100%;
	margin: 0 auto;
	background: #F8FAFC;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(51, 65, 85, 0.14);
	overflow: hidden;
}

/* Monospace technical fields */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-mono,
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat-value,
.e2z-tool-machine-cycle-time-estimator .e2z-mct-formula,
.e2z-tool-machine-cycle-time-estimator .e2z-mct-table td {
	font-family: 'SF Mono', 'Courier New', ui-monospace, Menlo, Consolas, monospace;
}

/* Header */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #0F172A, #334155);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #06B6D4;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-title {
	font-size: 1.62rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-subtitle {
	font-size: 0.85rem;
	opacity: 0.85;
	margin: 0;
}

/* Layout */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-main-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 16px;
}
@media (min-width: 1024px) {
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-main-grid {
		flex-direction: row;
		align-items: flex-start;
	}
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-inputs-panel { flex: 2; min-width: 0; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-results-panel { flex: 3; min-width: 360px; }
}

.e2z-tool-machine-cycle-time-estimator .e2z-mct-inputs-panel,
.e2z-tool-machine-cycle-time-estimator .e2z-mct-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #E2E8F0;
	box-shadow: 0 2px 8px rgba(51, 65, 85, 0.05);
	min-width: 0;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #334155;
	margin: 0 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #CFFAFE;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-inputs-panel .e2z-mct-section-title { margin-top: 14px; }

/* Fields */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-field {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-row .e2z-mct-field { margin-bottom: 0; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #334155;
	margin-bottom: 4px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-hint {
	font-size: 0.73rem;
	color: #94A3B8;
	margin: 0 0 10px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #0F172A;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-input:focus {
	outline: none;
	border-color: #06B6D4;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
}

/* Step rows */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-step-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 8px;
	padding: 8px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-left: 3px solid #06B6D4;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-step-tag {
	font-size: 0.8rem;
	font-weight: 800;
	color: #334155;
	min-width: 28px;
	padding-bottom: 12px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-step-row .e2z-mct-field { min-width: 90px; margin-bottom: 0; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-step-name-field { flex: 2; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-setup-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
	padding-bottom: 10px;
	font-size: 0.78rem;
	color: #475569;
	white-space: nowrap;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-setup-check { width: 20px; height: 20px; min-height: 20px; accent-color: #06B6D4; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-step-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-machine-cycle-time-estimator .e2z-mct-step-del:hover { background: #DC2626; color: #fff; }

.e2z-tool-machine-cycle-time-estimator .e2z-mct-add-step-btn {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px dashed #06B6D4;
	border-radius: 8px;
	background: #fff;
	color: #0E7490;
	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-machine-cycle-time-estimator .e2z-mct-add-step-btn:hover { background: #F0FDFF; }

/* Button */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #334155;
	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-machine-cycle-time-estimator .e2z-mct-calc-btn:hover { filter: brightness(1.3); }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.55);
}

/* Results */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-empty-state {
	padding: 24px;
	text-align: center;
	color: #64748B;
	background: #F8FAFC;
	border-radius: 8px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #0F172A;
	border-bottom: 3px solid #06B6D4;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #22D3EE;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #94A3B8;
	margin: 0;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 6px;
	background: #CFFAFE;
	color: #0E7490;
}

.e2z-tool-machine-cycle-time-estimator .e2z-mct-result-block {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-result-block h3 {
	font-size: 1rem;
	color: #0F172A;
	margin: 0 0 10px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat {
	background: #fff;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748B;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #0F172A;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat-slate .e2z-mct-stat-value { color: #334155; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-stat-cyan .e2z-mct-stat-value { color: #0891B2; }

/* Step breakdown bars */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 7px;
	font-size: 0.82rem;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-name { flex: 0 0 120px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-track {
	flex: 1;
	height: 18px;
	background: #E2E8F0;
	border-radius: 999px;
	overflow: hidden;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-fill { height: 100%; background: #06B6D4; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-fill-setup { background: #F59E0B; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-val { flex: 0 0 84px; text-align: right; font-family: 'SF Mono', monospace; color: #0F172A; }

.e2z-tool-machine-cycle-time-estimator .e2z-mct-formula {
	display: block;
	background: #0F172A;
	color: #22D3EE;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.82rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-machine-cycle-time-estimator .e2z-mct-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-note-info { background: #CFFAFE; color: #155E75; border-left: 3px solid #06B6D4; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-note-warn { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-machine-cycle-time-estimator .e2z-mct-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-machine-cycle-time-estimator .e2z-mct-print-btn,
.e2z-tool-machine-cycle-time-estimator .e2z-mct-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-machine-cycle-time-estimator .e2z-mct-print-btn { background: #0F172A; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-copy-btn { background: #334155; }
.e2z-tool-machine-cycle-time-estimator .e2z-mct-print-btn:hover,
.e2z-tool-machine-cycle-time-estimator .e2z-mct-copy-btn:hover { filter: brightness(1.4); }

.e2z-tool-machine-cycle-time-estimator .e2z-mct-disclaimer {
	font-size: 0.75rem;
	color: #94A3B8;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-machine-cycle-time-estimator .e2z-mct-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-title { font-size: 1.25rem; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-inputs-panel,
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-results-panel { padding: 14px; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-hero-value { font-size: 1.6rem; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-step-name-field { flex-basis: 100%; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-break-name { flex-basis: 90px; }
}
@media (max-width: 360px) {
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-header { padding: 16px 10px; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-title { font-size: 1.05rem; }
	.e2z-tool-machine-cycle-time-estimator .e2z-mct-field { min-width: 100%; }
}
