/*!
 * Inventory Carrying Cost Estimator — module CSS (e2z-icc- prefix).
 * Color scheme (spec): Primary #78350F (warehouse brown), Secondary #1C1917,
 * Accent #0D9488 (teal), BG #FFFBEB.
 * Scope: .e2z-tool-inventory-carrying-cost-estimator (framework shortcode wrapper).
 */

.e2z-tool-inventory-carrying-cost-estimator,
.e2z-tool-inventory-carrying-cost-estimator *,
.e2z-tool-inventory-carrying-cost-estimator *::before,
.e2z-tool-inventory-carrying-cost-estimator *::after {
	box-sizing: border-box;
}

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-container {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	line-height: 1.5;
	color: #1C1917;
	width: 100%;
	margin: 0 auto;
	background: #FFFBEB;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(120, 53, 15, 0.14);
	overflow: hidden;
}

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

/* Header */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-header {
	padding: 24px 16px;
	background: linear-gradient(135deg, #1C1917, #78350F);
	color: #fff;
	text-align: center;
	border-bottom: 3px solid #0D9488;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-title {
	font-size: 1.55rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #fff;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-subtitle {
	font-size: 0.85rem;
	opacity: 0.85;
	margin: 0;
}

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

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-inputs-panel,
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-results-panel {
	background: #FFFFFF;
	border-radius: 12px;
	padding: 20px;
	border: 1px solid #FDE68A;
	box-shadow: 0 2px 8px rgba(120, 53, 15, 0.05);
	min-width: 0;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-section-title {
	font-size: 1.02rem;
	font-weight: 600;
	color: #78350F;
	margin: 0 0 12px;
	padding-bottom: 7px;
	border-bottom: 2px solid #CCFBF1;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-inputs-panel .e2z-icc-section-title { margin-top: 14px; }

/* Fields */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-field {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	margin-bottom: 12px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-row .e2z-icc-field { margin-bottom: 0; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-label {
	font-size: 0.85rem;
	font-weight: 500;
	color: #92400E;
	margin-bottom: 4px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-hint {
	font-size: 0.73rem;
	color: #B99A5B;
	margin: 0 0 10px;
	line-height: 1.45;
	display: block;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-input {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #FDE68A;
	border-radius: 6px;
	font-size: 0.95rem;
	background: #fff;
	color: #1C1917;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-input:focus {
	outline: none;
	border-color: #0D9488;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

/* Component rows */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-comp-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	margin-bottom: 8px;
	padding: 8px;
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-left: 3px solid #0D9488;
	border-radius: 8px;
	flex-wrap: wrap;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-comp-row .e2z-icc-field { min-width: 84px; margin-bottom: 0; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-comp-name-field { flex: 2; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-comp-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-inventory-carrying-cost-estimator .e2z-icc-comp-del:hover { background: #DC2626; color: #fff; }

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-add-comp-btn {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px dashed #0D9488;
	border-radius: 8px;
	background: #fff;
	color: #0F766E;
	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-inventory-carrying-cost-estimator .e2z-icc-add-comp-btn:hover { background: #F0FDFA; }

/* Button */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-calc-btn {
	width: 100%;
	min-height: 48px;
	padding: 13px;
	border: none;
	border-radius: 8px;
	background: #78350F;
	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-inventory-carrying-cost-estimator .e2z-icc-calc-btn:hover { filter: brightness(1.2); }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-calc-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.55);
}

/* Results */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-empty-state {
	padding: 24px;
	text-align: center;
	color: #78716C;
	background: #FAFAF9;
	border-radius: 8px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-hero {
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	margin-bottom: 14px;
	background: #1C1917;
	border-bottom: 3px solid #0D9488;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-hero-value {
	font-size: 2rem;
	font-weight: 800;
	margin: 4px 0;
	line-height: 1.12;
	color: #2DD4BF;
	font-family: 'SF Mono', 'Courier New', ui-monospace, monospace;
	word-break: break-word;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-hero-label {
	font-size: 0.83rem;
	font-weight: 600;
	color: #D6D3D1;
	margin: 0;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-badge {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 800;
	margin-top: 6px;
	background: #CCFBF1;
	color: #0F766E;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-badge-high { background: #FEE2E2; color: #B91C1C; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-badge-low { background: #DCFCE7; color: #15803D; }

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-result-block {
	background: #FAFAF9;
	border: 1px solid #FEF3C7;
	border-radius: 10px;
	padding: 14px;
	margin-bottom: 12px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-result-block h3 {
	font-size: 1rem;
	color: #1C1917;
	margin: 0 0 10px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-stat {
	background: #fff;
	border: 1px solid #FEF3C7;
	border-radius: 8px;
	padding: 10px;
	text-align: center;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-stat-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #78716C;
	margin: 0 0 3px;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1C1917;
	margin: 0;
	word-break: break-word;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-stat-brown .e2z-icc-stat-value { color: #78350F; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-stat-teal .e2z-icc-stat-value { color: #0F766E; }

/* Benchmark scale */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-bench {
	position: relative;
	height: 30px;
	border-radius: 8px;
	overflow: hidden;
	margin: 6px 0 4px;
	background: linear-gradient(to right, #22C55E 0%, #22C55E 20%, #FCD34D 20%, #FCD34D 30%, #F97316 30%, #F97316 100%);
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-bench-marker {
	position: absolute;
	top: 0;
	width: 3px;
	height: 100%;
	background: #1C1917;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-bench-marker::after {
	content: '▲';
	position: absolute;
	bottom: -2px;
	left: -5px;
	color: #1C1917;
	font-size: 0.7rem;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-bench-legend {
	display: flex;
	justify-content: space-between;
	font-size: 0.68rem;
	color: #78716C;
}

/* Table */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table-wrap { width: 100%; overflow-x: auto; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8rem;
	background: #fff;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table th {
	background: #1C1917;
	color: #2DD4BF;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
	font-family: 'Inter', system-ui, sans-serif;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table td {
	padding: 7px 6px;
	text-align: center;
	border-bottom: 1px solid #FFFBEB;
	white-space: nowrap;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table tbody tr:nth-child(odd) { background: #FAFAF9; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table tbody tr.e2z-icc-largest { background: #FEF3C7 !important; font-weight: 700; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-table tfoot td {
	font-weight: 800;
	background: #CCFBF1;
	color: #0F766E;
	border-top: 2px solid #0D9488;
}

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-formula {
	display: block;
	background: #1C1917;
	color: #2DD4BF;
	border-radius: 6px;
	padding: 9px 11px;
	font-size: 0.82rem;
	margin: 8px 0 0;
	overflow-x: auto;
	white-space: pre;
}

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-note {
	font-size: 0.84rem;
	margin: 8px 0 0;
	padding: 9px 11px;
	border-radius: 6px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-note-info { background: #CCFBF1; color: #115E59; border-left: 3px solid #0D9488; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-note-warn { background: #FEF3C7; color: #92400E; border-left: 3px solid #F59E0B; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-note-error { background: #FEF2F2; color: #991B1B; border-left: 3px solid #DC2626; }

/* Export */
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-export-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-print-btn,
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-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-inventory-carrying-cost-estimator .e2z-icc-print-btn { background: #1C1917; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-copy-btn { background: #78350F; }
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-print-btn:hover,
.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-copy-btn:hover { filter: brightness(1.25); }

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-disclaimer {
	font-size: 0.75rem;
	color: #B99A5B;
	margin: 12px 0 0;
	line-height: 1.45;
}

.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-hidden { display: none !important; }

/* Responsive */
@media (max-width: 480px) {
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-title { font-size: 1.2rem; }
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-inputs-panel,
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-results-panel { padding: 14px; }
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-hero-value { font-size: 1.6rem; }
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-comp-name-field { flex-basis: 100%; }
}
@media (max-width: 360px) {
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-header { padding: 16px 10px; }
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-title { font-size: 1.02rem; }
	.e2z-tool-inventory-carrying-cost-estimator .e2z-icc-field { min-width: 100%; }
}
