/* ============================================================
   WC Reps Inventory — frontend panel shell
   Self-contained: does not rely on the active theme's styles.
   ============================================================ */

.wcri-panel-shell,
.wcri-panel-shell * {
	box-sizing: border-box;
}

.wcri-panel-shell {
	direction: rtl;
	font-family: Tahoma, 'Segoe UI', Vazirmatn, Arial, sans-serif;
	color: #1f2937;
	max-width: 1200px;
	margin: 30px auto;
}

/* ---------- Header ---------- */
.wcri-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #111827;
	color: #fff;
	padding: 18px 26px;
	border-radius: 14px 14px 0 0;
}

.wcri-panel-title {
	font-size: 19px;
	font-weight: 700;
}

.wcri-panel-user {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
}

.wcri-panel-user a {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	padding: 6px 14px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.15s ease;
}

.wcri-panel-user a:hover {
	background: rgba(255, 255, 255, 0.22);
}

/* ---------- Tabs ---------- */
.wcri-panel-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	background: #1f2937;
	padding: 0 18px;
}

.wcri-panel-tab {
	display: inline-block;
	padding: 12px 18px;
	color: #cbd5e1;
	text-decoration: none;
	font-size: 14px;
	border-radius: 8px 8px 0 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.wcri-panel-tab:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.wcri-panel-tab.is-active {
	background: #f4f6f8;
	color: #111827;
	font-weight: 700;
}

/* ---------- Content card ---------- */
.wcri-panel-content {
	background: #f4f6f8;
	border-radius: 0 0 14px 14px;
	padding: 26px;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.wcri-panel-content .wrap.wcri-wrap h1 {
	font-size: 20px;
	margin-top: 0;
}

.wcri-panel-content table.widefat {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.wcri-panel-content table.widefat th {
	background: #eef1f4;
}

/* ---------- Dashboard charts ---------- */
.wcri-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin-top: 10px;
}

.wcri-chart-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
}

.wcri-chart-card h3 {
	margin-top: 0;
	font-size: 15px;
}

/* ---------- Buttons ---------- */
.wcri-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
}

.wcri-btn-primary {
	background: #2563eb;
	color: #fff;
}

.wcri-btn-primary:hover {
	background: #1d4ed8;
}

.wcri-btn-secondary {
	background: #e5e7eb;
	color: #1f2937;
	margin-inline-start: 8px;
}

.wcri-btn-block {
	display: block;
	width: 100%;
	text-align: center;
}

/* ---------- Alerts ---------- */
.wcri-alert {
	padding: 12px 16px;
	border-radius: 9px;
	font-size: 14px;
}

.wcri-alert-error {
	background: #fee2e2;
	color: #991b1b;
}

/* ---------- Login page ---------- */
.wcri-login-shell {
	max-width: 420px;
	margin: 60px auto;
}

.wcri-login-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 36px 30px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
	text-align: center;
}

.wcri-login-title {
	margin-top: 0;
	margin-bottom: 22px;
	font-size: 20px;
}

.wcri-login-form {
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wcri-login-form label {
	font-size: 13px;
	font-weight: 600;
	margin-top: 10px;
}

.wcri-login-form input {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	font-size: 14px;
}

.wcri-login-form input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.wcri-login-form button {
	margin-top: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.wcri-panel-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.wcri-panel-content {
		padding: 16px;
	}
}
