/**
 * Client/staff portal dashboard ([summitnet_portal_dashboard]).
 * The markup (class-summitnet-portal.php) ships no styling of its own —
 * this is what turns the raw <table>/<section> output into the dashboard
 * look. Colors match snet-site-polish.css's brand palette so the portal
 * doesn't look bolted on to the rest of the site.
 */

:root {
	--snet-ink: #3A2E22;
	--snet-ink-soft: #7A6B5A;
	--snet-rust: #C1603E;
	--snet-rust-dark: #8A4024;
	--snet-olive: #617D39;
	--snet-cream: #FBF3E7;
	--snet-border: #EADFCF;
}

.snet-portal-dashboard {
	max-width: 960px;
	margin: 0 auto;
	color: var(--snet-ink);
}

.snet-portal-dashboard h2 {
	margin-bottom: 1.5rem;
}

.snet-portal-notice {
	background: #EEF3E5;
	border: 1px solid #D3E0C0;
	border-left: 4px solid var(--snet-olive);
	color: var(--snet-ink);
	padding: 0.85rem 1.1rem;
	border-radius: 8px;
	margin-bottom: 1.5rem;
	font-weight: 500;
}

.snet-portal-section {
	background: #FFFFFF;
	border: 1px solid var(--snet-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(58, 46, 34, 0.06);
	padding: 1.75rem 1.75rem 2rem;
	margin-bottom: 1.75rem;
}

.snet-portal-section h3 {
	margin-top: 0;
	margin-bottom: 0.4rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--snet-cream);
	font-size: 1.15rem;
}

.snet-portal-section > .description {
	color: var(--snet-ink-soft);
	font-size: 0.92rem;
	margin-top: 0;
	margin-bottom: 1.25rem;
}

/* Table: horizontal scroll wrapper so wide tables never blow out the
   layout on narrow screens, matching the artifact/responsive convention
   used elsewhere on the site. */
.snet-portal-table-wrap {
	overflow-x: auto;
	border-radius: 10px;
	border: 1px solid var(--snet-border);
}

.snet-portal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.snet-portal-table th,
.snet-portal-table td {
	text-align: left;
	padding: 0.7rem 1rem;
	white-space: nowrap;
}

.snet-portal-table th {
	background: var(--snet-cream);
	color: var(--snet-ink);
	font-weight: 600;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 1px solid var(--snet-border);
}

.snet-portal-table tbody tr {
	border-bottom: 1px solid var(--snet-border);
	transition: background-color 0.12s ease;
}

.snet-portal-table tbody tr:last-child {
	border-bottom: none;
}

.snet-portal-table tbody tr:nth-child(even) {
	background: #FDFAF5;
}

.snet-portal-table tbody tr:hover {
	background: var(--snet-cream);
}

/* Cost breakdown tables' Total row -- reads as a sum, not just another
   line item. */
.snet-portal-table tbody tr.snet-portal-cost-total {
	border-top: 2px solid var(--snet-border);
	background: var(--snet-cream);
}
.snet-portal-table tbody tr.snet-portal-cost-total:hover {
	background: var(--snet-cream);
}

.snet-portal-table td {
	white-space: normal;
}

/* "BC #C00020" linked-status text reads as a confirmation pill rather
   than plain text sitting in a cell. */
.snet-portal-bc-linked {
	display: inline-block;
	background: #EAF1DE;
	color: var(--snet-olive);
	border: 1px solid #D3E0C0;
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	font-size: 0.82rem;
	font-weight: 600;
	white-space: nowrap;
}

/* "Create BC Customer" button — the markup uses WordPress's admin
   .button class, which has no styling at all on the front end (wp-admin
   CSS isn't loaded here), so it needs its own rules rather than relying
   on that class. */
.snet-portal-table .button,
.snet-portal-table button[type="submit"] {
	display: inline-block;
	background: var(--snet-rust);
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	padding: 0.45rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	box-shadow: 0 1px 2px rgba(58, 46, 34, 0.08);
}

.snet-portal-table .button:hover,
.snet-portal-table button[type="submit"]:hover {
	background: var(--snet-rust-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(58, 46, 34, 0.18);
	color: #FFFFFF;
}

.snet-portal-login-card {
	max-width: 380px;
	margin: 2.5rem auto;
	background: #FFFFFF;
	border: 1px solid var(--snet-border);
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(58, 46, 34, 0.08);
	padding: 2.5rem 2rem;
	text-align: center;
}

.snet-portal-login-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--snet-cream);
	border-radius: 50%;
	color: var(--snet-rust);
}

.snet-portal-login-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	color: var(--snet-ink);
}

.snet-portal-login-sub {
	color: var(--snet-ink-soft);
	margin: 0 0 1.5rem;
	font-size: 0.92rem;
}

.snet-portal-login-btn {
	display: inline-block;
	background: var(--snet-rust);
	color: #FFFFFF !important;
	border-radius: 8px;
	padding: 0.75rem 2rem;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	box-shadow: 0 1px 2px rgba(58, 46, 34, 0.08);
}

.snet-portal-login-btn:hover {
	background: var(--snet-rust-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(58, 46, 34, 0.18);
}

@media (max-width: 480px) {
	.snet-portal-login-card {
		margin: 1.5rem 1rem;
		padding: 2rem 1.5rem;
	}
}

.snet-portal-billing-note {
	color: var(--snet-ink-soft);
	font-size: 0.85rem;
	margin-top: 1rem;
	margin-bottom: 0;
}

/* Marks the one row in "Other Recurring Costs" that is measured rather than
   typed. Deliberately quiet -- it qualifies the label, it isn't a badge. */
.snet-portal-cost-live {
	color: var(--snet-ink-soft);
	font-size: 0.8em;
	font-weight: 400;
	white-space: nowrap;
}

@media (max-width: 480px) {
	/* At phone width the label column is narrow enough that the qualifier
	   has to be allowed to wrap under the label rather than force a
	   horizontal scroll on the table. */
	.snet-portal-cost-live {
		display: block;
		white-space: normal;
	}
}

.snet-portal-website {
	padding: 1rem 0;
	border-bottom: 1px solid var(--snet-border);
}

.snet-portal-website:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.snet-portal-website h4 {
	margin: 0 0 0.4rem;
	font-size: 1rem;
}

.snet-portal-ga4-pending {
	color: var(--snet-ink-soft);
	font-style: italic;
	font-size: 0.88rem;
}

@media (max-width: 600px) {
	.snet-portal-section {
		padding: 1.25rem 1.1rem 1.5rem;
		border-radius: 10px;
	}
}

/**
 * Widget picker (class-summitnet-widgets.php).
 *
 * Deliberately quieter than the panels above it: this is a settings
 * control that sits at the bottom of the stack, not another panel
 * competing for attention. Collapsed by default via <details>.
 */

.snet-portal-widget-picker {
	max-width: 960px;
	margin: 2rem auto 0;
	border: 1px dashed var(--snet-border);
	border-radius: 10px;
	background: transparent;
}

.snet-portal-widget-picker > summary {
	cursor: pointer;
	padding: 0.85rem 1.1rem;
	font-weight: 600;
	color: var(--snet-ink-soft);
	list-style: none;
}

.snet-portal-widget-picker > summary::-webkit-details-marker {
	display: none;
}

.snet-portal-widget-picker > summary::before {
	content: "+";
	display: inline-block;
	width: 1.1em;
	font-weight: 700;
	color: var(--snet-rust);
}

.snet-portal-widget-picker[open] > summary::before {
	content: "\2212"; /* minus */
}

.snet-portal-widget-picker > summary:hover,
.snet-portal-widget-picker > summary:focus-visible {
	color: var(--snet-ink);
}

.snet-portal-widget-picker form {
	padding: 0 1.1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.snet-portal-widget-option {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	line-height: 1.4;
}

.snet-portal-widget-option input {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}

.snet-portal-widget-option strong {
	display: block;
	font-weight: 600;
	color: var(--snet-ink);
}

.snet-portal-widget-option em {
	display: block;
	font-style: normal;
	font-size: 0.9rem;
	color: var(--snet-ink-soft);
}

.snet-portal-widget-save {
	align-self: flex-start;
	background: var(--snet-rust);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.6rem 1.4rem;
	font-weight: 600;
	cursor: pointer;
}

.snet-portal-widget-save:hover,
.snet-portal-widget-save:focus-visible {
	background: var(--snet-rust-dark);
}