/* ==========================================================================
   Net Professional — Public / Elementor Widget CSS
   ========================================================================== */

:root {
	--np-primary:      #3b82f6;
	--np-success:      #10b981;
	--np-danger:       #ef4444;
	--np-warning:      #f59e0b;
	--np-purple:       #8b5cf6;
	--np-gray-50:      #f9fafb;
	--np-gray-100:     #f3f4f6;
	--np-gray-200:     #e5e7eb;
	--np-gray-500:     #6b7280;
	--np-gray-700:     #374151;
	--np-gray-900:     #111827;
	--np-radius:       8px;
	--np-shadow:       0 1px 3px rgba(0,0,0,.1);
	--np-shadow-md:    0 4px 6px -1px rgba(0,0,0,.1);
}

/* Widget containers */
.np-widget {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Stats widget */
.np-stats-widget {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
}

.np-stat-box {
	background: #fff;
	border-radius: var(--np-radius);
	padding: 1.25rem;
	box-shadow: var(--np-shadow);
	text-align: center;
}

.np-stat-box__num {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: .25rem;
}

.np-stat-box__label {
	font-size: .75rem;
	color: var(--np-gray-500);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Task list widget */
.np-task-list { display: flex; flex-direction: column; gap: .75rem; }

.np-task-item {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: 1rem;
	background: #fff;
	border-radius: var(--np-radius);
	box-shadow: var(--np-shadow);
	border-left: 4px solid var(--np-primary);
}

.np-task-item--overdue { border-left-color: var(--np-danger); }
.np-task-item--completed { border-left-color: var(--np-success); opacity: .7; }
.np-task-item--in_progress { border-left-color: var(--np-warning); }

.np-task-item__icon { font-size: 1.5rem; flex-shrink: 0; }

.np-task-item__body { flex: 1; min-width: 0; }

.np-task-item__title {
	font-weight: 600;
	font-size: .9375rem;
	margin-bottom: .2rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.np-task-item__meta { font-size: .8rem; color: var(--np-gray-500); }

.np-task-item__actions { display: flex; flex-direction: column; gap: .375rem; flex-shrink: 0; }

/* Mobile action buttons — large touch targets */
.np-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	padding: .75rem 1.25rem;
	border-radius: var(--np-radius);
	border: none;
	font-size: .9375rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	min-height: 48px;
	min-width: 48px;
	transition: opacity .15s;
}

.np-action-btn:active { opacity: .8; }

.np-action-btn--complete { background: var(--np-success); color: #fff; }
.np-action-btn--call     { background: var(--np-primary); color: #fff; }
.np-action-btn--maps     { background: var(--np-warning); color: #fff; }
.np-action-btn--sm { padding: .5rem .875rem; font-size: .875rem; min-height: 40px; }

/* Quick completion widget */
.np-quick-complete {
	background: #fff;
	border-radius: var(--np-radius);
	box-shadow: var(--np-shadow);
	overflow: hidden;
}

.np-quick-complete__header {
	padding: 1rem 1.25rem;
	background: var(--np-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
}

.np-quick-complete__body { padding: 1.25rem; }

.np-quick-complete-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .875rem;
	border-radius: var(--np-radius);
	border: 1px solid var(--np-gray-200);
	margin-bottom: .75rem;
	background: var(--np-gray-50);
}

.np-quick-complete-item__info { flex: 1; min-width: 0; }
.np-quick-complete-item__name { font-weight: 600; font-size: .9rem; display: block; }
.np-quick-complete-item__addr { font-size: .8rem; color: var(--np-gray-500); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.np-complete-big-btn {
	width: 100%;
	padding: 1rem;
	background: var(--np-success);
	color: #fff;
	border: none;
	border-radius: var(--np-radius);
	font-size: 1.125rem;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 56px;
	transition: background .15s;
}

.np-complete-big-btn:hover { background: #059669; }
.np-complete-big-btn:active { background: #047857; }

/* Customer list widget */
.np-customer-list { display: flex; flex-direction: column; gap: .5rem; }

.np-customer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .875rem 1rem;
	background: #fff;
	border-radius: var(--np-radius);
	box-shadow: var(--np-shadow);
	gap: .75rem;
	flex-wrap: wrap;
}

.np-customer-row__name { font-weight: 600; font-size: .9rem; }
.np-customer-row__meta { font-size: .8rem; color: var(--np-gray-500); }

/* Calendar public widget */
.np-cal-widget {
	background: #fff;
	border-radius: var(--np-radius);
	box-shadow: var(--np-shadow);
	padding: 1.25rem;
}

/* Kanban public widget */
.np-kanban-public {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.np-kanban-col-public {
	background: var(--np-gray-50);
	border-radius: var(--np-radius);
	padding: .875rem;
}

.np-kanban-col-title {
	font-weight: 700;
	font-size: .875rem;
	margin-bottom: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Status inline badge */
.np-status {
	display: inline-flex;
	align-items: center;
	padding: .2rem .625rem;
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
}

.np-status--scheduled  { background: #eff6ff; color: #3b82f6; }
.np-status--completed  { background: #ecfdf5; color: #10b981; }
.np-status--overdue    { background: #fef2f2; color: #ef4444; }
.np-status--in_progress { background: #fffbeb; color: #92400e; }
.np-status--missed     { background: #f3f4f6; color: #6b7280; }
.np-status--cancelled  { background: #f3f4f6; color: #6b7280; }

/* Notifications / toasts */
.np-toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }

.np-toast {
	padding: .875rem 1.25rem;
	border-radius: var(--np-radius);
	box-shadow: var(--np-shadow-md);
	font-size: .875rem;
	font-weight: 500;
	color: #fff;
	max-width: 320px;
	animation: npSlideIn .2s ease;
}

.np-toast--success { background: var(--np-success); }
.np-toast--error   { background: var(--np-danger);  }
.np-toast--warning { background: var(--np-warning); }

@keyframes npSlideIn {
	from { opacity: 0; transform: translateX(20px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 640px) {
	.np-task-item { flex-direction: column; align-items: flex-start; }
	.np-task-item__actions { flex-direction: row; width: 100%; }
	.np-action-btn { flex: 1; }
	.np-stats-widget { grid-template-columns: repeat(2, 1fr); }
	.np-kanban-public { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Print styles — AR Report
   ========================================================================== */
@media print {
	.np-app-sidebar,
	.np-app-nav,
	.np-app-overlay,
	.np-no-print,
	.np-app-btn,
	#np-print-report-btn { display: none !important; }

	.np-print-only { display: block !important; }

	.np-app-panel {
		position: static !important;
		width: 100% !important;
		box-shadow: none !important;
		transform: none !important;
	}

	body { background: #fff !important; }
}
