/**
 * NUVOYA Owner Portal — dashboard styling.
 * Uses the NUVOYA brand palette: bright green #18CD11, deep forest green
 * #1F3B2C, near-black #0D0D0D, cream #DCD3C4.
 */

.nop-dashboard {
	--nop-green: #18CD11;
	--nop-forest: #1F3B2C;
	--nop-black: #0D0D0D;
	--nop-cream: #DCD3C4;
	--nop-text: #313131;
	--nop-border: #E4E1D8;
	font-family: inherit;
	color: var(--nop-text);
	max-width: 1100px;
	margin: 0 auto;
}

.nop-notice {
	background: var(--nop-cream);
	border-left: 4px solid var(--nop-forest);
	padding: 20px 24px;
	border-radius: 4px;
}

/* Tabs */
.nop-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid var(--nop-border);
	margin-bottom: 24px;
}

.nop-tab {
	background: none;
	border: none;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 700;
	color: var(--nop-text);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.nop-tab:hover {
	color: var(--nop-forest);
}

.nop-tab.is-active {
	color: var(--nop-forest);
	border-bottom-color: var(--nop-green);
}

.nop-panel {
	display: none;
}

.nop-panel.is-active {
	display: block;
}

/* Property cards */
.nop-property-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.nop-property-card {
	border: 1px solid var(--nop-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.nop-property-card img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}

.nop-property-card__body {
	padding: 16px;
}

.nop-property-card__body h3 {
	margin: 0 0 6px;
	font-size: 17px;
}

.nop-property-address {
	color: #6b6b6b;
	font-size: 13px;
	margin: 0 0 10px;
}

.nop-property-meta {
	list-style: none;
	display: flex;
	gap: 12px;
	padding: 0;
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--nop-text);
}

.nop-property-meta li {
	background: var(--nop-cream);
	padding: 2px 8px;
	border-radius: 4px;
}

/* Status badges */
.nop-status-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.nop-status-badge--active,
.nop-status-badge--booked {
	background: var(--nop-green);
	color: var(--nop-black);
}

.nop-status-badge--inactive,
.nop-status-badge--cancelled {
	background: #e0e0e0;
	color: #555;
}

.nop-status-badge--pending,
.nop-status-badge--on_hold {
	background: var(--nop-cream);
	color: var(--nop-forest);
}

/* Tables */
.nop-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 24px;
	font-size: 14px;
}

.nop-table th {
	text-align: left;
	background: var(--nop-forest);
	color: #fff;
	padding: 10px 12px;
	font-weight: 600;
}

.nop-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--nop-border);
}

.nop-table--compact th,
.nop-table--compact td {
	padding: 6px 10px;
	font-size: 13px;
}

.nop-adj-heading {
	margin: 20px 0 8px;
	color: var(--nop-forest);
}

/* Revenue summary cards */
.nop-revenue-summary {
	display: flex;
	gap: 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.nop-revenue-card {
	background: var(--nop-forest);
	color: #fff;
	border-radius: 8px;
	padding: 18px 24px;
	min-width: 220px;
}

.nop-revenue-card__label {
	display: block;
	font-size: 13px;
	opacity: 0.8;
	margin-bottom: 6px;
}

.nop-revenue-card__value {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: var(--nop-green);
}

.nop-fineprint {
	font-size: 12px;
	color: #6b6b6b;
	max-width: 70ch;
	margin-bottom: 20px;
}

.nop-empty {
	color: #6b6b6b;
	font-style: italic;
}

/* Mobile */
@media (max-width: 600px) {
	.nop-tabs {
		flex-wrap: wrap;
	}
	.nop-tab {
		padding: 10px 12px;
		font-size: 13px;
	}
	.nop-table {
		font-size: 12px;
	}
	.nop-revenue-card {
		min-width: 100%;
	}
}
