/* Feel India Hospitality — frontend + admin shared styles */

:root {
	/* Palette built around the Feel logo: brick red on warm cream paper. */
	--fih-maroon: #a01e1e;        /* logo brick red (primary) */
	--fih-maroon-dark: #7d1414;
	--fih-gold: #c2873a;          /* warm terracotta-gold accent */
	--fih-gold-dark: #a06f29;
	--fih-cream: #f4eee2;         /* warm paper */
	--fih-ink: #2a1c18;           /* warm near-black */
	--fih-muted: #6b6258;
	--fih-line: #e6ddcf;
	--fih-navy: #2b1517;          /* deep wine sidebar (complements the red) */
	--fih-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fih-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--fih-shadow: 0 6px 24px rgba(40, 30, 20, 0.06);
}


.fih-wrap {
	max-width: 860px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: var(--fih-sans);
	color: var(--fih-ink);
}

/* Premium typography + base */
.fih-wrap,
.fih-portal,
body.fih-app-body {
	font-family: var(--fih-sans);
	color: var(--fih-ink);
	-webkit-font-smoothing: antialiased;
}

.fih-card h1,
.fih-card h2,
.fih-card h3,
.fih-page-title,
.fih-onboard-brand strong,
.fih-brand-text strong,
.fih-brand strong {
	font-family: var(--fih-serif);
	letter-spacing: -0.01em;
	font-weight: 600;
}

.fih-register-wrap {
	max-width: 760px;
}

/* Branded sign-in / reset page */
.fih-auth-wrap {
	max-width: 440px;
}

.fih-auth-logo {
	text-align: center;
	margin-bottom: 20px;
}

.fih-auth-logo img {
	height: 60px;
	width: auto;
	display: inline-block;
	background: var(--fih-cream);
	border-radius: 10px;
	padding: 8px 14px;
}

.fih-auth-alt {
	margin-top: 14px;
	font-size: 14px;
}

.fih-auth-alt a {
	color: var(--fih-maroon);
	text-decoration: none;
}

.fih-auth-alt a:hover {
	text-decoration: underline;
}

.fih-card {
	background: #fff;
	border: 1px solid var(--fih-line);
	border-radius: 14px;
	padding: 28px;
	margin-bottom: 24px;
	box-shadow: var(--fih-shadow);
}

.fih-card h1 {
	margin-top: 0;
	font-size: 26px;
}

.fih-card h2 {
	margin-top: 0;
	font-size: 20px;
}

.fih-sub {
	color: #646970;
	margin-top: -6px;
}

.fih-form .fih-field {
	margin-bottom: 16px;
	flex: 1;
}

.fih-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.fih-form input[type="text"],
.fih-form input[type="email"],
.fih-form input[type="number"],
.fih-form select,
.fih-form textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d6cfc4;
	border-radius: 9px;
	font-size: 15px;
	font-family: var(--fih-sans);
	color: var(--fih-ink);
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fih-form input:focus,
.fih-form select:focus,
.fih-form textarea:focus {
	outline: none;
	border-color: var(--fih-maroon);
	box-shadow: 0 0 0 3px rgba(157, 28, 32, 0.12);
}

.fih-row {
	display: flex;
	gap: 16px;
}

.fih-row-3 {
	flex-wrap: wrap;
}

.fih-inline {
	display: flex;
	gap: 8px;
}

.fih-inline input {
	flex: 1;
}

.fih-req {
	color: #b32d2e;
}

.fih-hint {
	display: block;
	font-size: 13px;
	margin-top: 6px;
}

.fih-actions {
	margin-top: 20px;
}

.fih-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 9px;
	border: none;
	font-size: 15px;
	font-family: var(--fih-sans);
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.fih-btn:active {
	transform: translateY(1px);
}

.fih-btn-primary {
	background: var(--fih-maroon);
	color: #fff;
}

.fih-btn-primary:hover {
	background: var(--fih-maroon-dark);
	color: #fff;
}

.fih-btn-gold {
	background: var(--fih-gold);
	color: #fff;
}

.fih-btn-gold:hover {
	background: var(--fih-gold-dark);
	color: #fff;
}

.fih-btn-secondary {
	background: #f0f0f1;
	color: #1d2327;
	white-space: nowrap;
}

.fih-errors {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #8a1f1f;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 18px;
}

.fih-errors ul {
	margin: 0;
	padding-left: 18px;
}

.fih-success h2 {
	color: #1a7f37;
}

/* ---------------- Tables ---------------- */
.fih-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: #fff;
	border: 1px solid var(--fih-line);
	border-radius: 14px;
	overflow: hidden;
	font-size: 14px;
}

.fih-table thead th {
	text-align: left;
	padding: 12px 18px;
	background: #faf7f1;
	color: var(--fih-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	border-bottom: 1px solid var(--fih-line);
}

.fih-table tbody td {
	padding: 14px 18px;
	border-bottom: 1px solid #f1ece3;
	color: var(--fih-ink);
	vertical-align: middle;
}

.fih-table tbody tr:last-child td {
	border-bottom: 0;
}

.fih-table tbody tr {
	transition: background-color 0.12s ease;
}

.fih-table tbody tr:hover {
	background: #fbf8f3;
}

.fih-table .fih-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* A second, muted line inside a cell (e.g. city under a business name). */
.fih-cell-sub {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--fih-muted);
}

.fih-cell-link {
	color: var(--fih-ink);
	font-weight: 600;
	text-decoration: none;
}

.fih-cell-link:hover {
	color: var(--fih-maroon);
	text-decoration: underline;
}

/* ---------------- Key/value detail ---------------- */
.fih-detail {
	width: 100%;
	border-collapse: collapse;
}

.fih-detail th {
	text-align: left;
	width: 210px;
	padding: 11px 14px;
	color: var(--fih-muted);
	font-weight: 600;
	font-size: 13px;
	vertical-align: top;
	border-bottom: 1px solid #f1ece3;
}

.fih-detail td {
	padding: 11px 14px;
	border-bottom: 1px solid #f1ece3;
}

.fih-detail tr:last-child th,
.fih-detail tr:last-child td {
	border-bottom: 0;
}

/* Detail-view header: back link, title + badge, and inline actions. */
.fih-detail-head {
	margin-bottom: 18px;
}

.fih-detail-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 14px;
}

.fih-detail-title h2 {
	margin: 0;
}

.fih-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fih-cards-grid {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.fih-cards-grid .fih-card {
	flex: 1;
	min-width: 240px;
}

.fih-placeholder {
	opacity: 0.85;
	border-style: dashed;
}

.fih-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	line-height: 1.5;
	border: 1px solid transparent;
	white-space: nowrap;
}

.fih-badge-pending {
	background: #fcf6e3;
	color: #8a6d00;
	border-color: #f0e3b8;
}

.fih-badge-active {
	background: #e8f7ec;
	color: #1a7f37;
	border-color: #c3e9cd;
}

.fih-badge-disabled {
	background: #f3f1ee;
	color: #6b6258;
	border-color: #e3ddd3;
}

/* Admin */
.fih-stat-grid {
	display: flex;
	gap: 16px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.fih-stat {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 18px 24px;
	min-width: 130px;
	text-align: center;
}

.fih-stat-num {
	display: block;
	font-size: 30px;
	font-weight: 700;
}

.fih-stat-label {
	color: #646970;
	font-size: 13px;
}

/* ============================================================
 * Ordering platform — client portal + front-end admin panel
 * ============================================================ */

.fih-portal {
	max-width: 1100px;
	margin: 32px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d2327;
}

.fih-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #14213d;
	color: #fff;
	padding: 16px 22px;
	border-radius: 10px;
	margin-bottom: 22px;
}

.fih-brand strong {
	color: #e8a33d;
	font-size: 19px;
}

.fih-brand span {
	color: #c9cede;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-left: 6px;
}

.fih-topnav {
	color: #e8a33d;
	font-weight: 600;
	font-size: 14px;
}

/* Flash messages */
.fih-flash {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
}

.fih-flash-success {
	background: #edfaef;
	border: 1px solid #46b450;
	color: #1a7f37;
}

.fih-flash-warning {
	background: #fcf9e8;
	border: 1px solid #dba617;
	color: #8a6d00;
}

.fih-flash-error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #8a1f1f;
}

.fih-empty {
	color: #646970;
	padding: 18px;
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	text-align: center;
}

.fih-num {
	text-align: right;
}

/* Chips */
.fih-chip {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	margin-left: 6px;
}

.fih-chip-express {
	background: #fff3e0;
	color: #b9560a;
}

/* Admin: pending order cards */
.fih-order-card {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 16px;
	background: #fcfcfd;
}

.fih-order-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
}

.fih-order-total {
	font-weight: 700;
	font-size: 17px;
}

.fih-order-meta {
	color: #646970;
	font-size: 13px;
	margin: 4px 0 12px;
}

.fih-order-lines {
	margin-bottom: 8px;
}

.fih-order-summary-line {
	font-size: 13px;
	color: #50575e;
	margin-bottom: 12px;
}

.fih-order-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fih-inline-label {
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
}

.fih-discount-input {
	width: 80px;
	padding: 7px 8px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
}

.fih-btn-sm {
	padding: 8px 16px;
	font-size: 14px;
}

.fih-linkbtn {
	background: none;
	border: none;
	color: #b8202e;
	cursor: pointer;
	padding: 0;
	font-size: 13px;
	text-decoration: underline;
}

/* Item-rules edit form */
.fih-item-form {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #e2e4e7;
}

.fih-item-form h3 {
	margin-top: 0;
}

.fih-checks {
	display: flex;
	gap: 18px;
	align-items: flex-end;
	padding-bottom: 8px;
}

.fih-check {
	display: flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 500 !important;
}

/* Client portal: order form */
.fih-express-toggle {
	display: flex !important;
	align-items: center;
	gap: 8px;
	background: #fff8ef;
	border: 1px solid #f0d9b5;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 18px;
	font-size: 14px;
	font-weight: 500;
}

.fih-order-grid {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.fih-order-items {
	flex: 1 1 520px;
	min-width: 280px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	align-content: start;
}

.fih-item-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 1px solid var(--fih-line);
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fih-item-row:hover {
	border-color: #d8cfc2;
	box-shadow: 0 4px 14px rgba(40, 30, 20, 0.05);
}

.fih-item-disabled,
.fih-item-disabled:hover {
	opacity: 0.6;
	background: #f7f5f1;
	box-shadow: none;
}

.fih-item-top {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fih-item-emoji {
	font-size: 26px;
	line-height: 1;
	flex-shrink: 0;
}

.fih-item-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.fih-item-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.fih-item-meta {
	color: var(--fih-ink);
	font-size: 13px;
	font-weight: 500;
}

.fih-item-cutoff {
	font-size: 12px;
	color: #1a7f37;
	line-height: 1.35;
}

.fih-item-cutoff.fih-item-blocked {
	color: #b9560a;
}

.fih-item-min {
	font-size: 12px;
	color: var(--fih-muted);
}

.fih-item-qty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 4px;
	border-top: 1px dashed var(--fih-line);
}

.fih-item-qty label {
	margin: 0;
	font-size: 13px;
	color: var(--fih-muted);
}

.fih-order-form .fih-item-row input.fih-qty-input {
	width: 92px;
	padding: 9px 10px;
	border: 1px solid #d6cfc4;
	border-radius: 8px;
	text-align: center;
	font-size: 15px;
}

.fih-order-summary {
	flex: 1 1 280px;
	min-width: 260px;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 18px;
	background: #fcfcfd;
	position: sticky;
	top: 20px;
}

.fih-order-summary h3 {
	margin-top: 0;
}

.fih-summary-rows {
	margin-bottom: 12px;
}

.fih-summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 3px 0;
}

.fih-summary-totals {
	border-top: 1px solid #e2e4e7;
	margin-top: 8px;
	padding-top: 8px;
}

.fih-summary-grand {
	font-weight: 700;
	font-size: 16px;
	border-top: 1px solid #e2e4e7;
	margin-top: 4px;
	padding-top: 8px;
}

.fih-order-summary .fih-btn {
	width: 100%;
	margin-top: 14px;
	text-align: center;
}

.fih-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.fih-muted {
	color: #8c8f94;
	font-size: 13px;
}

/* Kitchen */
.fih-kitchen-grid {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.fih-kitchen-grid > div {
	flex: 1 1 360px;
	min-width: 280px;
}

.fih-kitchen-grid h3 {
	margin-top: 8px;
}

.fih-kw-ok {
	color: #1a7f37;
	font-weight: 600;
}

.fih-kw-short {
	color: #b9560a;
	font-weight: 600;
}

.fih-stage-card {
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 12px;
	background: #fcfcfd;
}

.fih-stage-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fih-stage-meta {
	color: #646970;
	font-size: 13px;
}

.fih-stage-items {
	color: #50575e;
	font-size: 14px;
	margin: 6px 0 10px;
}

.fih-branch-add {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #e2e4e7;
}

.fih-branch-add h3 {
	margin: 0 0 4px;
}

.fih-btn-danger {
	background: #b32d2e;
	color: #fff;
}

.fih-btn-danger:hover {
	background: #8a1f1f;
	color: #fff;
}

.fih-client-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fih-inline-form {
	display: inline;
	margin: 0;
}

/* ============================================================
 * App shell — full-width layout with collapsible sidebar
 * ============================================================ */

body.fih-app-body {
	margin: 0;
	background: #f3ede1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--fih-ink);
}

.fih-app {
	display: flex;
	min-height: 100vh;
}

.fih-sidebar {
	width: 250px;
	flex-shrink: 0;
	background: var(--fih-navy);
	color: #cbb6b0;
	transition: width 0.2s ease;
	overflow-x: hidden;
	overflow-y: auto;
	position: sticky;
	top: 0;
	align-self: flex-start;
	height: 100vh;
}

.admin-bar .fih-sidebar {
	top: 32px;
	height: calc(100vh - 32px);
}

.fih-app.fih-collapsed .fih-sidebar {
	width: 64px;
}

.fih-sidebar-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding: 14px 16px;
	white-space: nowrap;
}

/* The logo art sits on cream paper, so frame it on a cream chip. */
.fih-brand-logo {
	height: 38px;
	width: auto;
	max-width: 100%;
	display: block;
	background: var(--fih-cream);
	border-radius: 8px;
	padding: 6px 10px;
	box-sizing: border-box;
}

.fih-app.fih-collapsed .fih-sidebar-brand {
	padding: 12px 6px;
}

.fih-app.fih-collapsed .fih-brand-logo {
	height: 30px;
	padding: 4px;
}

.fih-nav {
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fih-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 8px;
	color: #aeb8c4;
	text-decoration: none;
	white-space: nowrap;
	font-size: 14px;
}

.fih-nav-link:hover {
	background: #1d2d3a;
	color: #fff;
}

.fih-nav-link.active {
	background: #5b6be8;
	color: #fff;
}

.fih-nav-icon {
	width: 22px;
	text-align: center;
	font-size: 15px;
	flex-shrink: 0;
}

.fih-nav-divider {
	height: 1px;
	background: #28384700;
	border-top: 1px solid #2a3947;
	margin: 8px 6px;
}

.fih-app.fih-collapsed .fih-nav-label,
.fih-app.fih-collapsed .fih-brand-text {
	display: none;
}

.fih-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.fih-appbar {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 64px;
	padding: 0 22px;
	background: #fff;
	border-bottom: 1px solid #e6e8ec;
	position: sticky;
	top: 0;
	z-index: 20;
}

.fih-hamburger {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #5a6473;
	padding: 4px 6px;
}

.fih-appbar-search {
	flex: 1;
	max-width: 460px;
}

.fih-appbar-search input {
	width: 100%;
	border: none;
	background: #f1f3f7;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	box-sizing: border-box;
}

.fih-appbar-user {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 14px;
}

.fih-appbar-user img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.fih-content {
	padding: 26px;
	flex: 1;
}

/* Sidebar sections behave like separate pages (JS toggles these). Without JS,
   .fih-tabs-ready is never added, so every section stays visible. */
.fih-tabs-ready .fih-section {
	display: none;
}

.fih-tabs-ready .fih-section.fih-section-active {
	display: block;
	animation: fih-fade 0.2s ease;
}

.fih-page-title {
	margin: 0 0 18px;
	font-size: 24px;
}

/* Make the shortcodes' own wrappers fill the content area inside the shell. */
.fih-content .fih-portal,
.fih-content .fih-wrap {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Offset sticky bars below the WP admin bar when present. */
.admin-bar .fih-appbar {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.fih-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		z-index: 60;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
	}

	.fih-app.fih-sidebar-open .fih-sidebar {
		transform: translateX(0);
	}

	/* Ignore desktop collapse on mobile — drawer is full width. */
	.fih-app.fih-collapsed .fih-sidebar {
		width: 250px;
	}

	.fih-app.fih-collapsed .fih-nav-label,
	.fih-app.fih-collapsed .fih-brand-text {
		display: inline;
	}

	.admin-bar .fih-appbar {
		top: 46px;
	}
}

/* ============================================================
 * Registration onboarding wizard
 * ============================================================ */

.fih-onboard-head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--fih-line);
	border-radius: 14px;
	padding: 18px 24px;
	margin-bottom: 22px;
	box-shadow: var(--fih-shadow);
}

.fih-onboard-logo {
	height: 54px;
	width: auto;
	display: block;
}

.fih-onboard-tag {
	color: var(--fih-muted);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.fih-wizard-card {
	padding: 32px;
}

.fih-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 18px 0 10px;
}

.fih-step-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--fih-muted);
	font-size: 13px;
	font-weight: 600;
}

.fih-step-no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #ece6dc;
	color: var(--fih-muted);
	font-size: 12px;
}

.fih-step-pill.active {
	color: var(--fih-ink);
}

.fih-step-pill.active .fih-step-no {
	background: var(--fih-gold);
	color: #fff;
}

.fih-step-pill.done .fih-step-no {
	background: var(--fih-maroon);
	color: #fff;
}

.fih-progress {
	height: 4px;
	background: #ece6dc;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 24px;
}

.fih-progress-fill {
	height: 100%;
	width: 0;
	background: var(--fih-gold);
	transition: width 0.25s ease;
}

.fih-step {
	display: none;
}

.fih-step.active {
	display: block;
	animation: fih-fade 0.25s ease;
}

@keyframes fih-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.fih-banner {
	background: #f1f6f1;
	border: 1px solid #d4e6d4;
	color: #2f5d3a;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	margin-bottom: 18px;
}

.fih-review {
	border: 1px solid var(--fih-line);
	border-radius: 10px;
	padding: 8px 16px;
	background: var(--fih-cream);
}

.fih-wizard-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

.fih-wizard-spacer {
	flex: 1;
}

.fih-wizard-error {
	background: #fcf0f1;
	border: 1px solid #d9a0a2;
	color: #8a1f1f;
	border-radius: 9px;
	padding: 11px 14px;
	margin-top: 16px;
	font-size: 14px;
}

/* Premium accents */
.fih-nav-link.active {
	background: var(--fih-maroon);
}

.fih-stat-num {
	font-family: var(--fih-serif);
}

.fih-appbar-search input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(157, 28, 32, 0.12);
}

/* ============================================================
 * Inventory (front-end) — material cards + compact forms
 * ============================================================ */

.fih-mat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
}

.fih-mat-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 1px solid var(--fih-line);
	border-radius: 12px;
	padding: 16px;
	background: #fff;
}

.fih-mat-card.is-low {
	border-color: #e6c878;
	background: #fffdf5;
}

.fih-mat-card.is-out {
	border-color: #e0b4b4;
	background: #fdf6f6;
}

.fih-mat-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.fih-mat-name {
	font-weight: 600;
	font-size: 15px;
}

.fih-mat-stock {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.fih-mat-qty {
	font-family: var(--fih-serif);
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
}

.fih-mat-unit {
	color: var(--fih-muted);
	font-size: 12px;
}

.fih-mat-sub {
	color: var(--fih-muted);
	font-size: 12px;
}

.fih-mat-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

/* Two inventory forms sit side by side and don't stretch full width. */
.fih-inv-forms .fih-card {
	flex: 1 1 320px;
	max-width: 560px;
}

.fih-recipe-table {
	max-width: 480px;
}

.fih-recipe-table input[type="number"] {
	max-width: 150px;
}

/* ============================================================
 * M5 — Kitchen Management panel
 * ============================================================ */

.fih-kpi-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 14px 0 18px;
}

.fih-kpi {
	flex: 1;
	min-width: 150px;
	background: #fff;
	border: 1px solid var(--fih-line);
	border-radius: 12px;
	padding: 14px 18px;
}

.fih-kpi-num {
	display: block;
	font-size: 26px;
	font-weight: 700;
	font-family: var(--fih-serif);
	color: var(--fih-maroon);
}

.fih-kpi-label {
	display: block;
	font-size: 12px;
	color: var(--fih-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 2px;
}

.fih-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.fih-section-tools {
	display: flex;
	gap: 8px;
}

.fih-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 22px;
	align-items: flex-end;
	margin: 6px 0 16px;
	padding: 12px 14px;
	background: #faf7f1;
	border: 1px solid var(--fih-line);
	border-radius: 10px;
}

.fih-filter-bar label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--fih-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fih-filter-bar select {
	font-size: 14px;
	padding: 7px 10px;
}

.fih-stage-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.fih-btn-stage {
	padding: 12px 18px;
	font-size: 15px;
}

.fih-btn-wa {
	background: #25d366;
	border-color: #1fb855;
	color: #fff;
}

.fih-btn-wa:hover {
	background: #1fb855;
	color: #fff;
}

.fih-row-short td {
	background: #fdf1f1;
}

@media print {
	.fih-sidebar,
	.fih-appbar,
	.fih-nav,
	.fih-hamburger,
	.fih-no-print {
		display: none !important;
	}
	.fih-main,
	.fih-content {
		margin: 0 !important;
		padding: 0 !important;
	}
	.fih-card {
		box-shadow: none !important;
		border: 1px solid #ddd !important;
	}
	body,
	body.fih-app-body {
		background: #fff !important;
	}
}
