/**
 * IFE - SKU Solutions
 * global.css
 *
 * All front-end styles for the plugin — loads site-wide.
 * Selectors are namespaced with ife- prefix to avoid theme/plugin collisions.
 */

/* ============ CSS VARIABLES ============ */
body {
	font-family: Roboto, sans-serif;
}

.ife-sku-portal {
	--ife-page: #fcfaf8;
	--ife-bg: #ffffff;
	--ife-navy: #07213d;
	--ife-orange: #e17f27;
	--ife-ink: var(--ife-navy);
	--ife-muted: #5b6775;
	--ife-line: #e7e2dd;
	--ife-soft: #f9f6f3;
	--ife-accent: var(--ife-orange);
	--ife-cta: var(--ife-navy);
	--ife-cta-ink: #ffffff;
	--ife-radius: 16px;
	--ife-shadow: 0 10px 30px rgba(7, 33, 61, .10);
	--ife-max: 1120px;
	--ife-tint-orange: rgba(225, 127, 39, .12);
	--ife-tint-navy: rgba(7, 33, 61, .06);
}

/* ============ BASE ============ */
.ife-sku-portal {
	width: 100%;
	font-family: Roboto, sans-serif;
	color: var(--ife-ink);
	font-size: 18px;
	line-height: 1.55;
	box-sizing: border-box;
}

.ife-sku-portal *,
.ife-sku-portal *::before,
.ife-sku-portal *::after {
	box-sizing: border-box;
}

.ife-sku-portal a {
	color: inherit;
	text-decoration: none;
}

.ife-wrap {
	max-width: var(--ife-max);
	margin: 0 auto;
	padding: 0 0px;
}

/* ============ BUTTONS (global — works inside and outside portal) ============ */
.ife-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 650;
	font-size: 15px;
	gap: 10px;
	cursor: pointer;
	transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
	user-select: none;
	white-space: nowrap;
	text-decoration: none;
	font-family: Roboto, sans-serif;
}

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

.ife-btn-primary {
	background: #07213d;
	color: #ffffff;
	box-shadow: 0 10px 30px rgba(7, 33, 61, .10);
}

.ife-btn-primary:hover {
	background: #e17f27;
	color: #07213d;
	box-shadow: 0 14px 40px rgba(7, 33, 61, .16);
}

.ife-btn-ghost {
	background: #fff;
	border-color: rgba(7, 33, 61, .18);
	color: #07213d;
}

.ife-btn-ghost:hover {
	background: #f9f6f3;
}

.ife-btn-small {
	padding: 12px 16px;
	font-size: 14px;
}

/* ============ PILL ============ */
.ife-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	border: 1px solid rgba(225, 127, 39, .35);
	background: rgba(225, 127, 39, .12);
	color: #07213d;
	font-size: 13px;
	font-family: Roboto, sans-serif;
}

.ife-pill--secure {
	border-color: rgba(7, 33, 61, .18);
	background: rgba(7, 33, 61, .06);
}

/* ============ TAG ============ */
.ife-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(7, 33, 61, .14);
	background: #f9f6f3;
	font-size: 12px;
	color: #07213d;
	font-family: Roboto, sans-serif;
}

/* ============ CARD ============ */
.ife-card {
	border: 1px solid var(--ife-line, #e7e2dd);
	border-radius: var(--ife-radius, 16px);
	background: #fff;
	box-shadow: 0 10px 26px rgba(7, 33, 61, .06);
}

/* ============ PORTAL HERO ============ */
.ife-portal-hero {
	padding: 52px 0 18px;
	background: linear-gradient(180deg, #f9f6f3 0%, #fcfaf8 70%);
}

.ife-portal-grid {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 18px;
	align-items: stretch;
}

.ife-portal-hero h1 {
	margin: 20px 0;
	font-size: 52px;
	letter-spacing: -.6px;
	line-height: 1.08;
	color: #07213d;
	font-family: Roboto, sans-serif;
	font-weight: 700;
}

.ife-portal-hero p {
	margin: 0 0 14px;
	color: #5b6775;
	font-size: 18px;
	max-width: 60ch;
	font-family: Roboto, sans-serif;
}

/* ============ SUMMARY CARD ============ */
.ife-summary {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 160px;
}

.ife-summary-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.ife-summary strong {
	font-size: 14px;
	font-family: Roboto, sans-serif;
}

.ife-meta {
	color: #5b6775;
	font-size: 12px;
	font-family: Roboto, sans-serif;
}

.ife-kv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 4px;
}

.ife-kv-item {
	border: 1px solid #e7e2dd;
	border-radius: 14px;
	padding: 12px;
	background: linear-gradient(180deg, #fff, rgba(7, 33, 61, .06));
}

.ife-kv-label {
	font-size: 11px;
	color: #5b6775;
	margin-bottom: 6px;
	font-family: Roboto, sans-serif;
}

.ife-kv-value {
	font-size: 14px;
	font-weight: 750;
	font-family: Roboto, sans-serif;
}

/* ============ INVENTORY TABLE SECTION ============ */
.ife-section {
	padding: 18px 0 38px;
}

.ife-section h2 {
	margin: 0 0 12px;
	font-size: 26px;
	letter-spacing: -.2px;
	color: #07213d;
	font-family: Roboto, sans-serif;
}

.ife-table-card {
	overflow: hidden;
}

.ife-table-top {
	padding: 14px 16px;
	border-bottom: 1px solid #e7e2dd;
	background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(225, 127, 39, .12) 140%);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.ife-table-top-left {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ife-table-top-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ife-hint {
	font-size: 12px;
	color: #5b6775;
	font-family: Roboto, sans-serif;
}

.ife-hint b {
	color: #07213d;
}

/* ============ TABLE (updated to match screenshot) ============ */
.ife-sku-portal table.ife-portal-table {
	width: 100%;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
	background: #fff;
	font-family: Roboto, sans-serif;
}

.ife-sku-portal table.ife-portal-table th,
.ife-sku-portal table.ife-portal-table td {
	border: 0 !important;
	background: transparent;
	font-family: Roboto, sans-serif;
}

.ife-sku-portal table.ife-portal-table thead th {
	text-align: left;
	font-size: 12px;
	color: #6b7786;
	font-weight: 700;
	padding: 16px 18px;
	background: #fff;
	border-bottom: 1px solid #d9d2cc !important;
	position: static;
	top: auto;
	z-index: auto;
}

.ife-sku-portal table.ife-portal-table tbody td {
	padding: 18px 18px;
	color: #07213d;
	border-bottom: 1px solid #d9d2cc !important;
	vertical-align: middle;
	background: #fff;
}

.ife-sku-portal table.ife-portal-table tbody tr:hover td {
	background: #fff;
}

/* ============ SUPPORT STRIP ============ */
.ife-support-strip {
	padding: 22px 0;
	background: #f9f6f3;
	border-top: 1px solid #e7e2dd;
	border-bottom: 1px solid #e7e2dd;
}

.ife-support-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.ife-support-copy {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ife-support-copy strong {
	font-size: 16px;
	font-family: Roboto, sans-serif;
}

.ife-support-copy span {
	font-size: 15px;
	color: #5b6775;
	font-family: Roboto, sans-serif;
}

.ife-support-copy a {
	color: #07213d;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ife-support-strip a.ife-btn.ife-btn-primary {
	color: #fff;
}

.ife-support-strip a.ife-btn.ife-btn-primary:hover {
	color: #0B233D;
}

/* ============ FOOTER ============ */
.ife-portal-footer {
	padding: 26px 0;
	color: #5b6775;
	font-size: 13px;
	font-family: Roboto, sans-serif;
}

/* ============ NOTICES ============ */
.ife-sku-portal__notice {
	border: 1px solid #e7e2dd;
	border-left-width: 4px;
	border-radius: 10px;
	padding: 12px 14px;
	background: #fff;
	font-size: 14px;
	line-height: 1.5;
	font-family: Roboto, sans-serif;
}

.ife-sku-portal__notice--info,
.ife-sku-portal__notice.is-info {
	border-left-color: #2271b1;
}

.ife-sku-portal__notice--warning,
.ife-sku-portal__notice.is-warning {
	border-left-color: #dba617;
}

.ife-sku-portal__notice--error,
.ife-sku-portal__notice.is-error {
	border-left-color: #d63638;
}

.ife-sku-portal__notice.is-success {
	border-left-color: #00a32a;
	color: #5b6775;
	font-size: 14px;
	line-height: 24px;
	font-family: Roboto, sans-serif;
}

@media (min-width: 1024px) {
.ife-table-top-left .ife-hint {
    width: 95%;
    line-height: 24px;
}
.ife-portal-hero h1 {
	width: 86%;
}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.ife-portal-grid {
    grid-template-columns: 1fr;
}
.ife-portal-hero h1 {
	font-size: 40px;
	line-height: 50px;
}
    
}

/* ============ RESPONSIVE (single mobile query only) ============ */
@media (max-width: 767px) {
	.ife-portal-grid {
		grid-template-columns: 1fr;
	}

	.ife-portal-hero h1 {
		font-size: 36px;
	}

	.ife-kv {
		grid-template-columns: 1fr;
	}

	.ife-btn {
		width: 100%;
	}

	.ife-support-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.ife-table-top-right {
		justify-content: flex-start;
	}

	.ife-portal-table thead {
		display: none;
	}

	.ife-portal-table,
	.ife-portal-table tbody,
	.ife-portal-table tr,
	.ife-portal-table td {
		display: block;
		width: 100%;
	}

	.ife-portal-table tbody tr {
		border-bottom: 1px solid #e7e2dd;
	}

	.ife-portal-table tbody td {
		border: 0 !important;
		border-bottom: 1px solid #d9d2cc !important;
		padding: 12px 16px;
	}

	.ife-portal-table tbody td:last-child {
		border-bottom: 0 !important;
	}

	.ife-portal-table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		color: #6b7786;
		margin-bottom: 6px;
		font-weight: 700;
		font-family: Roboto, sans-serif;
	}

	span.ife-pill.ife-pill--secure {
    position: absolute;
    right: 20px;
}
}

/* ============ LOGIN FORM ============ */
.ife-sku-login {
	font-family: Roboto, sans-serif;
}

.ife-sku-login input#ife-sku-wp-submit {
	width: 100%;
	padding: 12px;
	color: white;
	background: #07223b;
	border: none;
	border-radius: 100px;
	font-size: 16px;
	font-weight: 700;
	line-height: 26px;
	font-family: Roboto, sans-serif;
}

.ife-sku-login input#ife-sku-wp-submit:hover {
	background: #E17F27;
	color: #0B233D;
}

.ife-sku-login .login-username label,
.ife-sku-login p.login-password label {
	color: #5b6775;
	font-size: 13px;
	line-height: 26px;
	font-family: Roboto, sans-serif;
}

.ife-sku-login input#ife-sku-user_login,
.ife-sku-login input#ife-sku-user_pass {
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid #07213d2e;
	outline: 0;
	font-size: 16px;
	color: #5b6775;
	font-family: Roboto, sans-serif;
}

.ife-sku-login input#ife-sku-user_login:focus,
.ife-sku-login input#ife-sku-user_pass:focus {
	border-color: rgba(225, 127, 39, .7);
	box-shadow: 0 0 0 4px rgba(225, 127, 39, .12);
	outline: 0;
}

.ife-sku-login p.login-remember {
	font-size: 14px;
	color: #5b6775;
	line-height: 20px;
	align-items: center;
	font-family: Roboto, sans-serif;
}

.ife-sku-login .ife-sku-login__links a {
	color: #e38228;
}

.ife-sku-login .ife-sku-login__links a:hover {
	color: #07223b;
}

.ife-sku-login input::placeholder {
	font-size: 13px;
	font-family: Roboto, sans-serif;
}

.nav-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
}
