@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2");
}

@font-face {
	font-family: "Roboto Slab";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("/assets/fonts/roboto-slab-latin-variable.woff2") format("woff2");
}

:root {
	--bg: #07111f;
	--bg-soft: #0d1b2f;
	--card: rgba(12, 25, 43, 0.82);
	--card-strong: rgba(16, 34, 58, 0.94);
	--line: rgba(255, 255, 255, 0.12);
	--line-strong: rgba(125, 183, 255, 0.28);
	--text: #eef4ff;
	--muted: #a9bad0;
	--muted-strong: #c6d6ea;
	--primary: #58a6ff;
	--primary-strong: #2f7df0;
	--accent: #10d7a0;
	--success: #4ade80;
	--danger: #fb7185;
	--warning: #facc15;
	--shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
	font-family:
		Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
		"Segoe UI", sans-serif;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	padding-right: env(safe-area-inset-right);
	padding-left: env(safe-area-inset-left);
	color: var(--text);
	background:
		radial-gradient(
			circle at 12% 18%,
			rgba(47, 125, 240, 0.48),
			transparent 32rem
		),
		radial-gradient(
			circle at 88% 8%,
			rgba(74, 222, 128, 0.16),
			transparent 24rem
		),
		linear-gradient(135deg, #06101f 0%, #0a1628 45%, #07111f 100%);
}

body::before {
	position: fixed;
	inset: 0;
	pointer-events: none;
	content: "";
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
	mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button,
input,
a,
select,
textarea {
	font: inherit;
}

input,
select,
textarea {
	font-size: 16px;
}

a {
	color: var(--primary);
	text-decoration: none;
}
a:hover {
	color: #93c5fd;
}

.auth-page {
	display: grid;
	place-items: center;
	padding: max(32px, env(safe-area-inset-top)) 32px
		max(32px, env(safe-area-inset-bottom));
}

.auth-shell {
	display: grid;
	grid-template-columns: minmax(420px, 0.95fr) minmax(380px, 0.72fr);
	align-items: center;
	gap: 28px;
	width: min(1120px, 100%);
}

.auth-hero,
.auth-card,
.status-hero,
.metric-card,
.panel-card {
	border: 1px solid var(--line);
	background: var(--card);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.auth-hero {
	position: relative;
	overflow: hidden;
	min-height: 560px;
	padding: 56px;
	border-radius: 34px;
}

.auth-hero::after {
	position: absolute;
	right: -90px;
	bottom: -120px;
	width: 360px;
	height: 360px;
	border-radius: 999px;
	content: "";
	background: rgba(88, 166, 255, 0.16);
	filter: blur(8px);
}

.brand-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.client-name {
	display: block;
	margin-top: -6px;
	color: var(--text);
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.055em;
}

.brand-mark,
.avatar {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--line-strong);
	border-radius: 18px;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--primary) 32%, transparent),
		color-mix(in srgb, var(--accent) 18%, transparent)
	);
	color: #dbeafe;
	font-weight: 900;
	letter-spacing: -0.04em;
}

.eyebrow {
	margin: 0 0 12px;
	color: #8ec5ff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.auth-hero h1,
.topbar h1 {
	margin: 0;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 0.95;
	letter-spacing: -0.07em;
}

.hero-copy,
.status-hero p,
.card-header p,
.metric-card p,
.panel-card li {
	color: var(--muted);
	line-height: 1.65;
}

.hero-copy {
	max-width: 680px;
	margin: 24px 0 0;
	font-size: 20px;
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-top: 80px;
}

.hero-grid article {
	min-height: 180px;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.055);
}

.hero-grid span,
.metric-card span {
	display: block;
	margin-bottom: 14px;
	color: var(--primary);
	font-size: 13px;
	font-weight: 800;
}

.hero-grid strong,
.metric-card strong {
	display: block;
	font-size: 22px;
	letter-spacing: -0.03em;
}

.auth-card {
	align-self: center;
	padding: 34px;
	border-radius: 30px;
	background: var(--card-strong);
}

.card-header h2,
.status-hero h2,
.panel-card h3 {
	margin: 0;
	font-size: 22px;
	letter-spacing: -0.04em;
}

.login-form {
	display: grid;
	gap: 12px;
	margin-top: 28px;
}

.login-form label {
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 700;
}

.login-form input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
}

.login-form input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.login-form select {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
	/* iOS: prevent zoom on focus */
	font-size: 16px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2358a6ff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	cursor: pointer;
}

.login-form select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.login-form select option {
	background: #0c1a2c;
	color: var(--text);
}

.login-notice {
	margin: 0;
	padding: 10px 14px;
	border: 1px solid rgba(251, 191, 36, 0.3);
	border-radius: 12px;
	background: rgba(251, 191, 36, 0.07);
	color: #fbbf24;
	font-size: 12px;
	line-height: 1.5;
}

.primary-button,
.ghost-button {
	min-height: 48px;
	border: 0;
	border-radius: 16px;
	cursor: pointer;
	font-weight: 800;
}

.primary-button {
	margin-top: 10px;
	background: linear-gradient(135deg, var(--primary), var(--primary-strong));
	color: white;
	box-shadow: 0 14px 30px rgba(47, 125, 240, 0.28);
}

.primary-button:disabled,
.link-button:disabled {
	cursor: not-allowed;
	opacity: 0.62;
}

.ghost-button {
	padding: 0 18px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}

.banner {
	margin-top: 20px;
	padding: 12px 14px;
	border: 1px solid rgba(251, 113, 133, 0.32);
	border-radius: 14px;
	background: rgba(251, 113, 133, 0.12);
	color: #fecdd3;
}

.banner[data-state="success"] {
	border-color: rgba(74, 222, 128, 0.32);
	background: rgba(74, 222, 128, 0.12);
	color: #bbf7d0;
}

.banner[data-state="info"] {
	border-color: rgba(88, 166, 255, 0.32);
	background: rgba(88, 166, 255, 0.12);
	color: #cfe5ff;
}

.banner[data-state="warning"] {
	border-color: rgba(245, 158, 11, 0.32);
	background: rgba(245, 158, 11, 0.12);
	color: #fde68a;
}

.auth-actions,
.auth-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	color: var(--muted);
	font-size: 14px;
}

.link-button {
	border: 0;
	background: transparent;
	color: var(--muted);
}

.dashboard-page {
	padding: max(18px, env(safe-area-inset-top)) 24px
		max(18px, env(safe-area-inset-bottom));
	background: #07111f;
}

.dashboard-shell {
	/* width: min(1680px, 100%) over-resolved against the viewport, leaving the
	   shell 31px wider than the page content box; margin:auto then went negative
	   and content bled into the right padding. width + max-width is equivalent
	   and resolves against the parent correctly. */
	width: 100%;
	max-width: 1680px;
	margin: 0 auto;
}

.dashboard-frame {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 24px;
	min-height: calc(
		100svh -
		max(18px, env(safe-area-inset-top)) -
		max(18px, env(safe-area-inset-bottom))
	);
	transition: grid-template-columns 180ms ease;
}

.dashboard-frame[data-sidebar-collapsed="true"] {
	grid-template-columns: 84px minmax(0, 1fr);
}

.dashboard-shell[data-ready="false"] {
	opacity: 0.72;
}

.dashboard-shell[data-ready="true"] {
	animation: dashboard-page-enter 180ms ease-out both;
}

@keyframes dashboard-page-enter {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dashboard-sidebar {
	display: flex;
	position: sticky;
	top: max(18px, env(safe-area-inset-top));
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	max-height: calc(
		100svh -
		max(18px, env(safe-area-inset-top)) -
		max(18px, env(safe-area-inset-bottom))
	);
	min-height: calc(
		100svh -
		max(18px, env(safe-area-inset-top)) -
		max(18px, env(safe-area-inset-bottom))
	);
	overflow: hidden;
	padding: 24px;
	border: 1px solid rgba(125, 183, 255, 0.2);
	border-radius: 28px;
	background:
		linear-gradient(180deg, rgba(88, 166, 255, 0.055), transparent 22rem),
		#0a1728;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.sidebar-brand,
.sidebar-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sidebar-brand {
	position: relative;
	padding: 8px;
	border: 1px solid rgba(125, 183, 255, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.025);
}

.sidebar-brand-copy {
	min-width: 0;
}

.sidebar-toggle {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	margin-left: auto;
	border: 1px solid rgba(125, 183, 255, 0.26);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	cursor: pointer;
	font-size: 26px;
	font-weight: 900;
	line-height: 1;
}

.sidebar-toggle:hover {
	border-color: var(--line-strong);
	background: rgba(88, 166, 255, 0.12);
}

.sidebar-brand strong,
.sidebar-user strong {
	display: block;
	font-size: 14px;
	letter-spacing: 0.02em;
}

.sidebar-brand span,
.sidebar-user span {
	display: block;
	margin-top: 3px;
	color: #6f83a0;
	font-size: 12px;
}

.sidebar-product {
	margin-top: 24px;
	padding: 0 2px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-product h1 {
	margin: 0;
	font-size: 20px;
	letter-spacing: -0.04em;
}

.sidebar-product p {
	margin: 8px 0 0;
	color: #70839d;
	font-size: 12px;
	line-height: 1.45;
}

.sidebar-nav {
	display: grid;
	gap: 8px;
	margin-top: 22px;
	max-height: min(46svh, 460px);
	overflow: auto;
	padding-right: 4px;
	-webkit-overflow-scrolling: touch;
}

.sidebar-nav::before {
	content: "Menú principal";
	margin: 0 0 4px 2px;
	color: #8ec5ff;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	min-height: 44px;
	padding: 11px 12px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: #d8e6fb;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.sidebar-nav a {
	overflow-wrap: anywhere;
}

.sidebar-nav a::before {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 9px;
	background: rgba(88, 166, 255, 0.1);
	color: #9ccfff;
	font-size: 13px;
	content: attr(data-sidebar-icon);
}

.sidebar-nav a:hover,
.sidebar-nav a[aria-current="page"] {
	border-color: rgba(125, 183, 255, 0.22);
	background: rgba(88, 166, 255, 0.1);
	color: var(--text);
}

.sidebar-nav a[aria-current="page"]::before {
	background: color-mix(in srgb, var(--primary) 34%, transparent);
	color: var(--text);
}

.sidebar-nav a[hidden],
.dashboard-shell[data-ready="false"] .sidebar-nav a[data-permission] {
	display: none;
}

.sidebar-user {
	align-items: flex-start;
	flex-direction: column;
	width: 100%;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.035);
}

.sidebar-user .ghost-button {
	width: 100%;
	min-height: 44px;
	border-radius: 14px;
}

.dashboard-frame[data-sidebar-collapsed="true"] .dashboard-sidebar {
	align-items: center;
	padding-right: 14px;
	padding-left: 14px;
}

.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-brand {
	flex-direction: column;
}

.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-brand-copy,
.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-product,
.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-nav,
.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user {
	display: none;
}

.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-toggle {
	margin-left: 0;
	transform: rotate(180deg);
}

.dashboard-main {
	display: grid;
	align-content: start;
	gap: 14px;
	min-height: 0;
}

.service-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 10px 16px;
	border: 1px solid #00d17d;
	border-radius: 6px;
	background: rgba(0, 209, 125, 0.04);
	color: #40f59b;
	font-weight: 800;
}

.service-banner[hidden] {
	display: none;
}

.service-banner span {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #00d17d;
	box-shadow: 0 0 18px rgba(0, 209, 125, 0.7);
}

.dashboard-main-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 0 2px;
}

.dashboard-main-header h2 {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.15;
	letter-spacing: -0.04em;
}

.topbar,
.user-panel,
.status-hero,
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.dashboard-page .topbar h1 {
	font-size: clamp(22px, 2.5vw, 28px);
}

.user-identity {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.avatar-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.account-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--line);
}

.avatar-controls {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.user-panel {
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
}

.user-panel span {
	display: block;
	color: var(--muted);
	font-size: 13px;
}

.status-hero {
	margin-top: 20px;
	padding: 22px 26px;
	border-radius: 22px;
}

.status-hero p {
	max-width: 680px;
	margin-bottom: 0;
}

.status-chip {
	flex: 0 0 auto;
	padding: 12px 16px;
	border: 1px solid rgba(74, 222, 128, 0.32);
	border-radius: 999px;
	background: rgba(74, 222, 128, 0.12);
	color: #bbf7d0;
	font-weight: 900;
}

.metric-grid,
.workspace-grid {
	display: grid;
	gap: 18px;
	margin-top: 20px;
}

.metric-grid {
	grid-template-columns: repeat(4, 1fr);
}
.workspace-grid {
	grid-template-columns: 1fr 1fr;
}

.settings-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
	gap: 18px;
	margin-top: 20px;
}

.settings-workspace { display: grid; gap: 18px; min-width: 0; margin-top: 20px; }
.settings-tabs {
	display: flex; gap: 8px; padding: 6px; border: 1px solid var(--line);
	border-radius: 16px; background: var(--card);
}
.settings-tab {
	min-height: 44px; padding: 0 20px; border: 1px solid transparent;
	border-radius: 11px; background: transparent; color: var(--muted-strong);
	cursor: pointer; font: inherit; font-weight: 800;
}
.settings-tab:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--text); }
.settings-tab[aria-selected="true"] {
	border-color: var(--line-strong);
	background: color-mix(in srgb, var(--primary) 18%, var(--card)); color: var(--text);
}
.settings-tab-panel[hidden] { display: none; }
.account-settings { display: grid; gap: 18px; max-width: 820px; margin-top: 20px; }
.sidebar-account-link {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
	border: 1px solid var(--line); border-radius: 14px; color: var(--text);
	font-size: 14px; font-weight: 800; text-decoration: none;
}
.sidebar-account-link:hover, .sidebar-account-link[aria-current="page"] {
	border-color: var(--line-strong); background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.tecnico-account-link { color: inherit; text-decoration: none; }
.tecnico-account-label { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.metric-card,
.panel-card {
	padding: 24px;
	border-radius: 26px;
}

.metric-card.is-live {
	border-color: rgba(74, 222, 128, 0.26);
}
.metric-card small {
	color: var(--muted);
}

.quick-links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-top: 22px;
}

.quick-links a {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted-strong);
	font-weight: 800;
}

.check-list {
	display: grid;
	gap: 10px;
	margin: 22px 0 0;
	padding-left: 20px;
}

.compact-hero {
	align-items: flex-end;
}

.inline-action {
	min-width: 160px;
	padding: 0 20px;
}

.users-panel {
	margin-top: 20px;
}

.settings-panel {
	align-self: start;
}

.settings-updated {
	margin: 0;
	text-align: right;
}

.settings-form {
	display: grid;
	gap: 16px;
	margin-top: 24px;
}

.settings-form label {
	display: grid;
	gap: 8px;
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 700;
}

.settings-form input,
.settings-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
}

.settings-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.settings-actions .primary-button {
	padding: 0 20px;
	border: 0;
}

.settings-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	margin: 18px 0 12px;
}

.settings-summary-row span {
	color: var(--muted);
	font-weight: 700;
}

.settings-summary-row strong {
	font-size: 24px;
}

.settings-list {
	display: grid;
	gap: 10px;
	padding: 0;
	margin: 16px 0 0;
	list-style: none;
}

.settings-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.16);
}

.settings-list span {
	color: var(--muted);
	font-size: 13px;
}

.table-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.search-input,
.form-grid input,
.form-grid select,
.user-dialog input,
.user-dialog select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
}

.search-input {
	max-width: 340px;
}

.table-wrap {
	overflow-x: auto;
}

.users-table {
	width: 100%;
	border-collapse: collapse;
}

.users-table th,
.users-table td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.users-table td {
	font-size: 14px;
}

.users-table th {
	color: var(--muted-strong);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.users-table td span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 13px;
}

.role-pill,
.status-pill {
	display: inline-flex !important;
	width: fit-content;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px !important;
	font-weight: 800;
}

.role-pill {
	border: 1px solid var(--line-strong);
	color: var(--muted-strong) !important;
	background: rgba(88, 166, 255, 0.1);
}

.status-pill.is-active {
	color: #bbf7d0 !important;
	background: rgba(74, 222, 128, 0.12);
}

.status-pill.is-off {
	color: #fecdd3 !important;
	background: rgba(251, 113, 133, 0.12);
}

.row-actions {
	white-space: normal;
}

.row-actions .link-button {
	display: inline-flex;
	margin: 0 14px 8px 0;
	padding: 0;
	vertical-align: top;
}

.permission-row td {
	color: var(--muted-strong);
	background: rgba(255, 255, 255, 0.035);
}

.permission-summary {
	display: grid;
	gap: 10px;
}

.permission-summary strong {
	color: var(--text);
	font-size: 13px;
	letter-spacing: 0.02em;
}

.permission-chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.permission-chip {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted-strong);
	background: rgba(88, 166, 255, 0.08);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

.permission-chip.is-extra {
	border-color: rgba(52, 211, 153, 0.45);
	color: #bbf7d0;
	background: rgba(52, 211, 153, 0.12);
}

.permission-options {
	display: grid;
	gap: 14px;
	max-height: 48vh;
	overflow: auto;
	padding: 4px;
	-webkit-overflow-scrolling: touch;
}

.permission-module {
	display: grid;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.028);
}

.permission-module header {
	display: grid;
	gap: 4px;
}

.permission-module header strong {
	color: var(--text);
	font-size: 14px;
	letter-spacing: 0.02em;
}

.permission-module header p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.45;
}

.permission-module-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
}

.permission-option {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.035);
	font-weight: 800;
}

.permission-option small {
	grid-column: 2;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.permission-option:has(input:disabled) {
	opacity: 0.72;
}

.ghost-link,
.primary-link {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 16px;
	border-radius: 14px;
	font-weight: 800;
}

.ghost-link {
	border: 1px solid var(--line);
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
}

.primary-link {
	margin-top: 16px;
	background: linear-gradient(135deg, var(--primary), var(--primary-strong));
	color: white;
}

.muted-copy {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
}

.is-current-sap-customer {
	opacity: 0.6;
}

.user-dialog {
	width: min(720px, calc(100vw - 32px));
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: 0;
	background: var(--card-strong);
	color: var(--text);
	box-shadow: var(--shadow);
}

.user-dialog::backdrop {
	background: rgba(0, 0, 0, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.dialog-card {
	padding: 28px;
}

.dialog-header,
.dialog-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.dialog-header h3 {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.04em;
}

.icon-button {
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	cursor: pointer;
	font-size: 24px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 24px;
}

/* Full-width field inside the two-column form grid (e.g. description). */
.form-grid label.form-grid-full {
	grid-column: 1 / -1;
}

.form-grid label,
.user-dialog label {
	display: grid;
	gap: 8px;
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 700;
}

.checkbox-field {
	align-content: center;
	grid-template-columns: auto 1fr;
	align-items: center;
}

.checkbox-field input {
	width: auto;
}

.dialog-actions {
	justify-content: flex-end;
	margin-top: 24px;
}

.settings-test-result {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
}

.settings-test-result div {
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.04);
}

.settings-test-result dt {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.settings-test-result dd {
	margin: 0;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.sap-test-dialog {
	width: min(860px, calc(100vw - 32px));
}

.settings-test-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 24px 0 12px;
}

.settings-test-section-heading h4 {
	margin: 0;
	font-size: 16px;
}

.settings-test-section-heading span {
	padding: 5px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted-strong);
	background: rgba(255, 255, 255, 0.055);
	font-size: 12px;
	font-weight: 800;
}

.settings-test-databases .settings-list {
	max-height: 340px;
	overflow: auto;
	padding-right: 4px;
}

.sap-db-result {
	display: grid !important;
	grid-template-columns: minmax(220px, 1fr) minmax(280px, auto);
	align-items: center;
	gap: 14px !important;
	padding: 14px !important;
	border-color: rgba(125, 183, 255, 0.22) !important;
	background: rgba(255, 255, 255, 0.035) !important;
}

.sap-db-result.is-success {
	border-color: rgba(74, 222, 128, 0.32) !important;
	background: linear-gradient(
		135deg,
		rgba(74, 222, 128, 0.08),
		rgba(255, 255, 255, 0.035)
	) !important;
}

.sap-db-result.is-error {
	border-color: rgba(251, 113, 133, 0.34) !important;
	background: linear-gradient(
		135deg,
		rgba(251, 113, 133, 0.08),
		rgba(255, 255, 255, 0.035)
	) !important;
}

.sap-db-result-main {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.sap-db-result-main strong {
	font-size: 15px;
	letter-spacing: -0.02em;
}

.sap-db-result-main span {
	color: var(--muted);
	font-size: 12px;
	line-height: 1.35;
}

.sap-db-result-details {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.sap-db-result-details span {
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.065);
	color: var(--muted-strong);
	font-size: 12px;
	font-weight: 800;
}

.sap-db-result.is-success .sap-db-result-pill {
	color: #bbf7d0;
	background: rgba(74, 222, 128, 0.16);
}

.sap-db-result.is-error .sap-db-result-pill {
	color: #fecdd3;
	background: rgba(251, 113, 133, 0.16);
}

@media (max-width: 980px) {
	.auth-shell,
	.workspace-grid,
	.settings-grid,
	.maintenance-layout,
	.maintenance-phase-grid,
	.maintenance-detail-grid {
		grid-template-columns: 1fr;
	}
	.auth-hero {
		min-height: auto;
	}
	.hero-grid,
	.metric-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.auth-page,
	.dashboard-page {
		padding: 16px;
	}
	.auth-hero,
	.auth-card,
	.status-hero,
	.metric-card,
	.panel-card {
		padding: 22px;
		border-radius: 22px;
	}
	.hero-grid,
	.metric-grid,
	.quick-links {
		grid-template-columns: 1fr;
	}
	.topbar,
	.user-panel,
	.status-hero,
	.section-heading,
	.maintenance-toolbar,
	.maintenance-search > div,
	.maintenance-detail-header,
	.maintenance-report-card,
	.auth-actions,
	.auth-footer {
		align-items: stretch;
		flex-direction: column;
	}
	.maintenance-console {
		padding: 14px;
		border-radius: 22px;
	}
	.maintenance-search,
	.maintenance-search input,
	.maintenance-search button,
	.maintenance-action-grid button {
		width: 100%;
	}
	.user-panel {
		align-items: flex-start;
	}
	.ghost-button {
		width: 100%;
	}
	.settings-updated {
		text-align: left;
	}
	.settings-actions {
		justify-content: stretch;
	}
	.settings-actions .primary-button {
		width: 100%;
	}
	.settings-test-result {
		grid-template-columns: 1fr;
	}
	.sap-test-dialog .dialog-card {
		padding: 22px;
	}
	.sap-db-result {
		grid-template-columns: 1fr;
		align-items: stretch;
	}
	.sap-db-result-details {
		justify-content: flex-start;
	}
}

/* Named staff theme. Portal-client branding remains a separate runtime. */
:root[data-theme="dark"] .dashboard-page {
	--core-blue: #58a6ff; --core-blue-2: #8ec5ff; --core-green: #7ee787;
	--core-ink: #eef4ff; --core-muted: #b7c7da; --core-line: #34465d;
	--core-soft: #07111f; --core-paper: #0d1b2f;
	--text: #eef4ff; --muted: #b7c7da; --muted-strong: #d6e2f0;
	--card: #0d1b2f; --card-strong: #10223a; --bg-soft: #101f33;
	--line: #34465d;
	--line-strong: #52749b;
	color-scheme: dark;
}
:root[data-theme="dark"] .dashboard-page :is(
	.sidebar-brand, .sidebar-user, .data-source-mark,
	.articles-summary-card, .company-chip-list, .sales-panel-row td,
	.empty-state, .settings-summary-row, .settings-list li,
	.settings-test-result div, .permission-module,
	.permission-option
) {
	border-color: var(--core-line);
	background: #101f33;
	color: var(--core-ink);
}
:root[data-theme="dark"] .dashboard-page :is(
	.sidebar-brand strong, .sidebar-user strong, .sidebar-product h1,
	.core-page-title h2, .minimal-home-header h2, .dashboard-main-header h2,
	.card-header h2, .status-hero h2, .panel-card h3,
	.articles-form label, .articles-header-actions label,
	.users-table th
) {
	color: var(--core-ink);
}
:root[data-theme="dark"] .dashboard-page :is(.sidebar-nav a, .maintenance-tab) {
	color: #d6e2f0;
}
:root[data-theme="dark"] .dashboard-page :is(
	.sidebar-nav a::before, .sidebar-nav a:hover, .sidebar-nav a[aria-current="page"],
	.ghost-button:hover, .link-button:hover, .ot-view-btn:hover,
	.sidebar-toggle:hover, .maintenance-tab:hover, .maintenance-tab.is-active,
	.sales-button.active
) {
	border-color: #52749b;
	background: #142b45;
	color: #b9dcff;
}
:root[data-theme="dark"] .dashboard-page :is(
	.settings-form input, .settings-form select, .search-input,
	.form-grid input, .form-grid select, .user-dialog input,
	.user-dialog select, .user-dialog textarea, .articles-header-actions select,
	.articles-form input, .articles-form select, .articles-table,
	.articles-table tbody td, .company-chip, .sales-stat-card,
	.sales-chart-container,
	.sales-docs-wrap
) {
	border-color: var(--core-line);
	background: var(--core-paper);
	color: var(--core-ink);
}
:root[data-theme="dark"] .dashboard-page .articles-table tbody tr:nth-child(even) td,
:root[data-theme="dark"] .dashboard-page .articles-table tbody tr:hover td {
	background: #101f33;
}
:root[data-theme="dark"] .dashboard-page .article-company-group-row td {
	background: #142b45 !important;
	color: #d6e2f0;
}
:root[data-theme="dark"] .dashboard-page :is(.crm-body, .crm-table tbody tr:hover td) {
	background: #101f33;
}

.panel-card-wide {
	grid-column: 1 / -1;
}

.status-chip-muted {
	border-color: var(--line-strong);
	background: rgba(88, 166, 255, 0.1);
	color: var(--muted-strong);
}

.dashboard-search {
	display: grid;
	gap: 8px;
	margin-top: 24px;
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 800;
}

.dashboard-search input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid rgba(125, 183, 255, 0.18);
	border-radius: 10px;
	outline: none;
	background: #0b1a2e;
	color: var(--text);
}

.dashboard-search input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.frequent-section {
	margin-top: 24px;
}

.section-heading-compact {
	justify-content: flex-start;
}

.quick-links-rich {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-link-card,
.module-action {
	display: grid;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted-strong);
}

.quick-link-card:hover,
.module-action:hover {
	border-color: var(--line-strong);
	background: rgba(88, 166, 255, 0.1);
	color: var(--text);
}

.module-action[aria-disabled="true"]:hover {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.05);
	color: var(--muted-strong);
}

.quick-link-card span,
.module-action span {
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.module-card {
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.04);
}

.module-card-header {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: start;
}

.module-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	background: rgba(88, 166, 255, 0.1);
	font-size: 24px;
}

.module-card h4 {
	margin: 0;
	font-size: 22px;
	letter-spacing: -0.03em;
}

.module-card p {
	margin: 6px 0 0;
	color: var(--muted);
	line-height: 1.5;
}

.module-action-list {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.module-action[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.72;
}

.module-action-badge {
	width: fit-content;
	padding: 4px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted-strong);
	background: rgba(255, 255, 255, 0.06);
	font-size: 11px;
	font-weight: 900;
	text-transform: uppercase;
}

.maintenance-summary-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maintenance-console,
.maintenance-list-panel,
.maintenance-detail-panel,
.maintenance-info-card,
.maintenance-report-card,
.maintenance-phase-card {
	border: 1px solid var(--line);
	background: var(--card);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.maintenance-console {
	display: grid;
	gap: 18px;
	padding: 20px;
	border-radius: 28px;
}

.maintenance-toolbar,
.maintenance-search > div,
.maintenance-detail-header,
.maintenance-report-card,
.maintenance-action-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.maintenance-toolbar,
.maintenance-action-grid {
	flex-wrap: wrap;
}

.maintenance-search {
	display: grid;
	gap: 10px;
	min-width: min(100%, 520px);
}

.maintenance-search > div {
	align-items: stretch;
	gap: 8px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(8, 20, 36, 0.74);
}

.maintenance-search label {
	color: var(--muted-strong);
	font-size: 13px;
	font-weight: 800;
}

.maintenance-search input {
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 12px;
	outline: none;
	background: rgba(255, 255, 255, 0.07);
	color: var(--text);
	font-size: 16px;
	width: 100%;
	min-width: 0;
}

.maintenance-search input:focus {
	box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

.maintenance-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.maintenance-layout {
	display: grid;
	grid-template-columns: minmax(330px, 0.38fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.maintenance-list-panel,
.maintenance-detail-panel {
	padding: 20px;
	border-radius: 24px;
	align-self: start;
}

.maintenance-list-panel {
	display: flex;
	min-height: 0;
	flex-direction: column;
}

.maintenance-detail-panel {
	align-content: start;
}

.maintenance-ot-list,
.maintenance-detail-panel,
.maintenance-checklist {
	display: grid;
	gap: 10px;
}

.maintenance-ot-list {
	margin-top: 16px;
	min-height: 0;
	max-height: min(54vh, 580px);
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.pagination-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	padding: 8px 0;
	border-top: 1px solid var(--border);
}

.pagination-bar span {
	font-size: 13px;
	color: var(--text-muted, #8a9bb0);
}

.pagination-bar .ghost-button:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.maintenance-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.maintenance-pagination .status-chip-muted {
	flex: 1 1 100%;
	order: -1;
	text-align: center;
}

.maintenance-pagination .ghost-button {
	min-height: 36px;
	padding: 0 12px;
	border-radius: 10px;
	font-size: 12px;
}

.maintenance-pagination .ghost-button:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.maintenance-ot-item {
	display: grid;
	gap: 8px;
	width: 100%;
	min-height: 104px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(88, 166, 255, 0.045));
	color: var(--text);
	text-align: left;
	cursor: pointer;
}

.maintenance-ot-item:hover,
.maintenance-ot-item[aria-pressed="true"] {
	border-color: var(--line-strong);
	background: rgba(88, 166, 255, 0.12);
}

.maintenance-ot-item span {
	width: fit-content;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(74, 222, 128, 0.12);
	color: #bbf7d0;
	font-size: 12px;
	font-weight: 900;
}

.maintenance-ot-item strong {
	font-size: 16px;
	letter-spacing: -0.01em;
}

.maintenance-ot-item small,
.empty-state {
	color: var(--muted);
	line-height: 1.5;
}

.maintenance-detail-header {
	align-items: flex-start;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--line);
}

.maintenance-detail-header p {
	max-width: 760px;
	line-height: 1.45;
}

.maintenance-phase-grid,
.maintenance-detail-grid {
	display: grid;
	gap: 14px;
}

.maintenance-phase-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.maintenance-detail-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.maintenance-phase-card,
.maintenance-info-card {
	padding: 20px;
	border-radius: 20px;
}

.maintenance-phase-card span {
	display: block;
	margin-bottom: 10px;
	color: var(--primary);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.maintenance-phase-card strong {
	display: block;
	font-size: 18px;
}

.maintenance-phase-card p,
.maintenance-info-card p,
.maintenance-report-card p {
	color: var(--muted);
	line-height: 1.6;
}

.maintenance-phase-card.is-warning {
	border-color: rgba(250, 204, 21, 0.36);
	background: rgba(250, 204, 21, 0.08);
}

.maintenance-info-card h4 {
	margin: 0 0 14px;
	font-size: 16px;
}

.maintenance-info-card dl {
	display: grid;
	gap: 10px;
	margin: 0;
}

.maintenance-info-card dl div {
	display: grid;
	grid-template-columns: minmax(150px, 0.32fr) minmax(0, 1fr);
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
}

.maintenance-info-card dt {
	color: var(--muted);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.maintenance-info-card dd {
	margin: 0;
	color: var(--text);
}

.maintenance-checklist {
	margin: 0;
	padding-left: 20px;
}

.maintenance-checklist li strong,
.maintenance-resource-row strong {
	display: block;
}

.maintenance-checklist li span,
.maintenance-checklist li small,
.maintenance-resource-row span {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
}

.maintenance-checklist li small {
	max-height: 7.5rem;
	overflow: auto;
	padding: 8px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.045);
	font-weight: 600;
	white-space: pre-wrap;
	-webkit-overflow-scrolling: touch;
}

.maintenance-resource-row,
.maintenance-manual-link {
	display: block;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.045);
}

.maintenance-resource-row + .maintenance-resource-row,
.maintenance-manual-link + .maintenance-manual-link {
	margin-top: 8px;
}

.maintenance-report-card {
	align-items: flex-start;
	padding: 20px;
	border-radius: 22px;
	border-color: rgba(74, 222, 128, 0.26);
	background: linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(88, 166, 255, 0.08));
}

.maintenance-action-grid {
	justify-content: flex-end;
}

.empty-state {
	margin: 24px 0 0;
	padding: 18px;
	border: 1px dashed var(--line-strong);
	border-radius: 18px;
	color: var(--muted-strong);
	background: rgba(88, 166, 255, 0.06);
}


.maintenance-tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.maintenance-tab {
	padding: 10px 18px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}

.maintenance-tab:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
}

.maintenance-tab.is-active {
	background: rgba(88, 166, 255, 0.18);
	color: var(--text);
}

.maintenance-tab-panels {
	display: grid;
	gap: 14px;
}

.maintenance-tab-panel {
	display: grid;
	gap: 14px;
}

.maintenance-tab-panel:not(.is-active) {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.maintenance-list-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.maintenance-list-actions .primary-button,
.maintenance-list-actions .ghost-button {
	flex: 1;
	min-height: 40px;
	font-size: 13px;
	text-align: center;
}

.maintenance-list-filters {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.maintenance-list-ot-actions {
	display: grid;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

.maintenance-list-ot-actions button {
	width: 100%;
	min-height: 40px;
	font-size: 14px;
}

.maintenance-page .dashboard-main {
	gap: 8px;
}

.maintenance-page {
	grid-template-columns: 240px minmax(0, 1fr);
}

.maintenance-page .dashboard-sidebar {
	gap: 18px;
	padding: 18px;
	border-color: rgba(125, 183, 255, 0.14);
	border-radius: 24px;
	background: #071321;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.maintenance-page .sidebar-brand {
	padding: 6px;
	border-radius: 16px;
}

.maintenance-page .sidebar-product {
	margin-top: 16px;
	padding-bottom: 14px;
}

.maintenance-page .sidebar-product h1 {
	font-size: 18px;
}

.maintenance-page .sidebar-product p {
	display: none;
}

.maintenance-page .sidebar-nav {
	gap: 6px;
	margin-top: 16px;
}

.maintenance-page .sidebar-nav::before {
	content: "Navegación";
}

.maintenance-page .sidebar-nav a {
	min-height: 38px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 13px;
	opacity: 0.68;
}

.maintenance-page .sidebar-nav a::before {
	width: 22px;
	height: 22px;
	border-radius: 8px;
	font-size: 12px;
}

.maintenance-page .sidebar-nav a:hover,
.maintenance-page .sidebar-nav a[aria-current="page"] {
	opacity: 1;
}

.maintenance-page .sidebar-user {
	padding: 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.025);
}

.maintenance-page .sidebar-user .ghost-button {
	min-height: 38px;
	border-radius: 12px;
}

.maintenance-page .page-topbar {
	margin-bottom: 8px;
	padding: 8px 0 10px;
}

.maintenance-page .maintenance-console {
	gap: 14px;
	padding: 14px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.026);
}

.maintenance-page .maintenance-layout {
	grid-template-columns: minmax(280px, 0.24fr) minmax(0, 1fr);
	gap: 16px;
}

.maintenance-page .maintenance-list-panel,
.maintenance-page .maintenance-detail-panel {
	padding: 16px;
	border-radius: 20px;
}

.maintenance-page .maintenance-list-panel {
	background: rgba(7, 19, 33, 0.84);
	gap: 14px;
}

.maintenance-page .maintenance-detail-panel {
	background: rgba(12, 25, 43, 0.92);
}

.maintenance-page .maintenance-list-actions .primary-button,
.maintenance-page .maintenance-list-actions .ghost-button {
	min-height: 38px;
}

.maintenance-page .maintenance-search > div {
	gap: 6px;
	padding: 5px;
	border-radius: 16px;
}

.maintenance-page .maintenance-search input {
	min-height: 40px;
	font-size: 16px;
}

.maintenance-page .maintenance-list-filters {
	gap: 5px;
}

.maintenance-page .maintenance-filter {
	padding: 6px 12px;
	font-size: 12px;
}

.maintenance-page .maintenance-pagination {
	gap: 8px;
	margin-top: 10px;
}

.maintenance-page .maintenance-ot-list {
	gap: 8px;
	margin-top: 12px;
	max-height: clamp(360px, calc(100vh - 340px), 620px);
}

.maintenance-page .maintenance-ot-item {
	gap: 7px;
	padding: 14px 16px;
	border-radius: 18px;
}

.maintenance-page .maintenance-list-ot-actions {
	gap: 7px;
	padding-top: 12px;
}

.maintenance-detail-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: -2px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

.maintenance-detail-actions[hidden] {
	display: none;
}

.maintenance-detail-actions button {
	min-height: 38px;
	padding: 0 16px;
	font-size: 13px;
}

.maintenance-page .maintenance-detail-header {
	gap: 12px;
}

.maintenance-page .maintenance-detail-header h3 {
	margin-bottom: 6px;
}

.maintenance-page .maintenance-tabs {
	margin-top: 4px;
}

.maintenance-page .maintenance-info-card {
	padding: 16px 20px;
	border-radius: 18px;
}

.maintenance-toolbar-filters {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	width: 100%;
}

.maintenance-filter {
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: transparent;
	color: var(--muted-strong);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.maintenance-filter:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
}

.maintenance-filter.is-active {
	border-color: var(--primary);
	background: rgba(88, 166, 255, 0.12);
	color: var(--text);
}

.maintenance-detail-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.maintenance-btn-danger {
	border-color: rgba(251, 113, 133, 0.3);
	color: var(--danger);
}

.maintenance-btn-danger:hover {
	background: rgba(251, 113, 133, 0.1);
	border-color: var(--danger);
}

.maintenance-dialog {
	max-width: min(580px, 92vw);
	max-height: 90vh;
	width: min(580px, 92vw);
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--bg-soft);
	color: var(--text);
	box-shadow: var(--shadow);
}

.maintenance-dialog::backdrop {
	background: rgba(7, 17, 31, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.maintenance-dialog-form {
	display: grid;
	gap: 0;
	height: 100%;
}

.maintenance-dialog-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 26px 18px;
	border-bottom: 1px solid var(--line);
}

.maintenance-dialog-header h2 {
	margin: 0;
	font-size: 20px;
	letter-spacing: -0.02em;
}

.maintenance-dialog-body {
	display: grid;
	gap: 16px;
	padding: 22px 26px;
	overflow-y: auto;
	max-height: 60vh;
}

.maintenance-dialog-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 26px 22px;
	border-top: 1px solid var(--line);
}

.maintenance-field {
	display: grid;
	gap: 6px;
	color: var(--muted-strong);
	font-size: 13px;
	font-weight: 800;
}

.maintenance-field select,
.maintenance-field input,
.maintenance-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--text);
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s;
}

.maintenance-field select:focus,
.maintenance-field input:focus,
.maintenance-field textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.maintenance-field textarea {
	resize: vertical;
	min-height: 72px;
	font-family: inherit;
}

.maintenance-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 540px) {
	.maintenance-field-row {
		grid-template-columns: 1fr;
	}
}

.maintenance-dialog-error {
	margin: 0;
	padding: 10px 14px;
	border: 1px solid rgba(251, 113, 133, 0.3);
	border-radius: 10px;
	background: rgba(251, 113, 133, 0.08);
	color: var(--danger);
	font-size: 14px;
}

.minimal-home {
	max-width: 1320px;
	margin: 18px auto 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--card);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.minimal-home-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.articles-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
	min-width: 0;
}

.minimal-home-header h2 {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.15;
	letter-spacing: -0.04em;
}

.minimal-home-header p:not(.eyebrow) {
	max-width: 620px;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.45;
}

.minimal-search {
	margin-top: 20px;
}

.module-grid-minimal {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 0;
}

.module-grid-minimal .module-card {
	position: relative;
	overflow: hidden;
	min-height: 120px;
	padding: 20px;
	border-color: rgba(125, 183, 255, 0.1);
	border-radius: 12px;
	background: #102138;
	box-shadow: none;
}

.module-grid-minimal .module-card::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	content: "";
	background: var(--primary);
}

.module-grid-minimal .module-card:nth-child(1)::before {
	background: var(--accent);
}

.module-grid-minimal .module-card h4 {
	font-size: 24px;
	letter-spacing: -0.04em;
}

.module-grid-minimal .module-card p {
	max-width: 42rem;
	color: #8093ad;
	font-size: 13px;
}

.module-grid-minimal .module-icon {
	width: 42px;
	height: 42px;
	border-color: rgba(125, 183, 255, 0.18);
	border-radius: 12px;
	background: rgba(88, 166, 255, 0.08);
	font-size: 22px;
}

.module-grid-minimal .module-action-list {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-top: 22px;
}

.module-grid-minimal .module-action {
	min-height: 72px;
	padding: 14px 16px;
	border-color: rgba(125, 183, 255, 0.14);
	border-radius: 10px;
	background: #0b1a2e;
}

@media (max-width: 900px) {
	.dashboard-frame {
		grid-template-columns: 1fr;
	}
	.dashboard-frame[data-sidebar-collapsed="true"] {
		grid-template-columns: 84px minmax(0, 1fr);
	}
	.dashboard-sidebar,
	.dashboard-frame[data-sidebar-collapsed="false"] .dashboard-sidebar {
		align-items: stretch;
		position: static;
		max-height: none;
		min-height: auto;
		overflow: visible;
		padding-right: 26px;
		padding-left: 26px;
	}
	.dashboard-frame[data-sidebar-collapsed="true"] .dashboard-sidebar {
		align-items: center;
		position: static;
		max-height: none;
		min-height: auto;
		overflow: visible;
		padding-right: 14px;
		padding-left: 14px;
	}
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-brand {
		flex-direction: column;
	}
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-brand-copy,
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-product,
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-nav,
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user {
		display: none;
	}
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-toggle {
		margin-left: 0;
		transform: rotate(180deg);
	}
	.sidebar-nav,
	.dashboard-frame[data-sidebar-collapsed="false"] .sidebar-nav {
		display: grid;
		grid-template-columns: 1fr;
		max-height: none;
		overflow: visible;
	}
	.sidebar-user,
	.dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user {
		display: flex;
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}
	.dashboard-main .module-grid-minimal {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 901px) and (max-height: 720px) {
	.dashboard-sidebar {
		gap: 14px;
		padding: 16px;
	}
	.sidebar-brand {
		padding: 6px;
	}
	.sidebar-product {
		margin-top: 12px;
		padding-bottom: 12px;
	}
	.sidebar-product p,
	.sidebar-user span {
		display: none;
	}
	.sidebar-nav {
		gap: 6px;
		max-height: none;
		margin-top: 12px;
		overflow: visible;
		padding-right: 0;
	}
	.sidebar-nav::before {
		margin-bottom: 2px;
		font-size: 10px;
	}
	.sidebar-nav a {
		min-height: 38px;
		padding: 8px 10px;
		font-size: 13px;
	}
	.sidebar-nav a::before {
		width: 22px;
		height: 22px;
		border-radius: 8px;
		font-size: 12px;
	}
	.sidebar-user {
		padding: 10px;
	}
	.sidebar-user .ghost-button {
		min-height: 36px;
	}
}

@media (max-width: 640px) {
	.dashboard-page {
		padding-top: max(14px, env(safe-area-inset-top));
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}
	.dashboard-sidebar,
	.module-grid-minimal .module-card {
		padding: 20px;
	}
	.dashboard-main-header,
	.sidebar-user {
		align-items: stretch;
		flex-direction: column;
	}
	.module-card-header {
		grid-template-columns: 1fr;
	}
	.minimal-home {
		margin-top: 20px;
		padding: 22px;
		border-radius: 22px;
	}
	.minimal-home-header {
		align-items: stretch;
		flex-direction: column;
	}
}

.table-wrap,
.settings-test-databases .settings-list {
	-webkit-overflow-scrolling: touch;
}

.pwa-notice {
	position: sticky;
	top: env(safe-area-inset-top);
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: min(100%, 920px);
	min-height: 48px;
	margin: 0 auto 12px;
	padding: 10px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 0 0 18px 18px;
	background: rgba(12, 25, 43, 0.96);
	color: var(--muted-strong);
	box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
}

.pwa-notice[hidden] {
	display: none;
}

.pwa-notice span {
	line-height: 1.4;
}

.pwa-notice button {
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	cursor: pointer;
	font-weight: 800;
}

.offline-shell {
	margin-top: max(32px, env(safe-area-inset-top));
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Breakpoint audit anchors: Mobile S 375, Mobile M 393, Mobile L 412. */
@media (max-width: 412px) {
	.dashboard-page {
		padding-right: max(14px, env(safe-area-inset-right));
		padding-left: max(14px, env(safe-area-inset-left));
	}
	.minimal-home-header h2 {
		font-size: clamp(20px, 6vw, 24px);
	}
}

@media (min-width: 901px) {
	.module-grid-minimal {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	}
}

@media (min-width: 1024px) {
	.minimal-home {
		padding: 26px;
	}
}

@media (min-width: 1280px) {
	.dashboard-shell {
		/* calc(100vw - 32px) included the scrollbar and ignored the page's 48px
		   horizontal padding, over-constraining the shell (negative auto margin,
		   content bleeding into the right padding). Percentages resolve against
		   the parent's content box, which is what we actually want. */
		width: 100%;
		max-width: 1800px;
	}
}

@media (min-width: 1440px) {
	.minimal-home {
		max-width: 1400px;
	}
}

.noscript-banner {
	max-width: 920px;
	margin: 0 auto 12px;
	padding: 12px 16px;
	border: 1px solid rgba(250, 204, 21, 0.38);
	border-radius: 0 0 18px 18px;
	background: rgba(250, 204, 21, 0.14);
	color: #fef3c7;
	font-weight: 800;
	text-align: center;
}

.articles-shell {
	max-width: none;
	margin: 18px auto 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--card);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(22px);
	backdrop-filter: blur(22px);
}

.articles-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: 14px;
	margin-top: 22px;
}

.articles-form label {
	display: grid;
	gap: 8px;
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 800;
}

.articles-form input,
.articles-form select {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
}

.articles-form input:focus,
.articles-form select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.16);
}

.articles-actions {
	display: flex;
	align-items: end;
	align-self: end;
	min-width: 0;
	gap: 10px;
}

.articles-actions .primary-button,
.articles-actions .ghost-button {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 18px;
	border: 0;
}

.articles-status {
	margin: 18px 0 0;
}

.articles-errors {
	display: grid;
	gap: 8px;
	margin-top: 16px;
}

.articles-errors p {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(250, 204, 21, 0.32);
	border-radius: 14px;
	background: rgba(250, 204, 21, 0.1);
	color: #fef3c7;
}

.articles-results {
	margin-top: 18px;
}

.articles-table td,
.articles-table th {
	white-space: nowrap;
}

.status-pill[data-article-status="Activo"] {
	color: #bbf7d0 !important;
	background: rgba(74, 222, 128, 0.12);
}

.status-pill[data-article-status="Inactivo"] {
	color: #fecdd3 !important;
	background: rgba(251, 113, 133, 0.12);
}

.status-pill[data-article-status="Congelado"] {
	color: #fef3c7 !important;
	background: rgba(250, 204, 21, 0.12);
}

@media (max-width: 768px) {
	.articles-shell {
		padding: 20px;
	}
	.articles-actions {
		align-items: stretch;
		flex-direction: column;
	}
	.articles-actions .primary-button,
	.articles-actions .ghost-button {
		width: 100%;
	}
}

.articles-overview {
	display: grid;
	grid-template-columns: minmax(220px, 300px) minmax(260px, 360px);
	align-items: start;
	gap: 18px;
	margin-top: 18px;
}

.articles-table {
	border-collapse: separate;
	border-spacing: 0;
	min-width: 960px;
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 16px;
	overflow: hidden;
}

.articles-table thead th {
	position: sticky;
	top: 0;
	z-index: 1;
	border-bottom: 2px solid rgba(88, 166, 255, 0.38);
	background: #075985;
	color: #fff;
	white-space: nowrap;
}

.articles-table tbody tr:nth-child(odd) td {
	background: rgba(255, 255, 255, 0.035);
}

.articles-table tbody tr:nth-child(even) td {
	background: rgba(15, 23, 42, 0.18);
}

.articles-table tbody tr:hover td {
	background: rgba(88, 166, 255, 0.14);
}

.articles-table td,
.articles-table th {
	border-right: 1px solid rgba(148, 163, 184, 0.18);
	border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.articles-table td:last-child,
.articles-table th:last-child {
	border-right: 0;
}

.articles-table tbody tr:last-child td {
	border-bottom: 0;
}

.article-company-group-row td {
	padding: 11px 14px !important;
	background: rgba(14, 116, 144, 0.28) !important;
	color: #dbeafe;
	font-weight: 900;
	letter-spacing: 0.02em;
}

.article-description-cell {
	min-width: 260px;
	white-space: normal !important;
}

.numeric-cell {
	font-variant-numeric: tabular-nums;
	text-align: right !important;
}

@media (max-width: 900px) {
	.articles-overview {
		grid-template-columns: 1fr;
	}
}

.articles-overview[hidden] {
	display: none;
}

/* Artículos compact summary v2 */
.articles-overview {
	grid-template-columns: minmax(260px, 360px) 1fr;
	align-items: stretch;
	gap: 14px;
}

.articles-summary-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(88, 166, 255, 0.28);
	border-radius: 16px;
	background: rgba(226, 240, 255, 0.08);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.articles-summary-card > div {
	padding: 12px 14px;
	border-left: 4px solid #0ea5e9;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.95);
	color: #0f172a;
}

.articles-summary-card span {
	display: block;
	margin-bottom: 5px;
	color: #334155;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.articles-summary-card strong {
	color: #0369a1;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.1;
}

.company-chip-list {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(88, 166, 255, 0.22);
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.22);
}

.company-chip {
	display: inline-grid;
	gap: 4px;
	min-width: 150px;
	padding: 10px 12px;
	border: 1px solid rgba(148, 163, 184, 0.2);
	border-left: 4px solid #2f8cff;
	border-radius: 12px;
	background: rgba(219, 234, 254, 0.1);
}

.company-chip strong {
	color: var(--text);
	font-size: 14px;
}

.company-chip span {
	color: var(--muted);
	font-size: 12px;
	font-weight: 800;
}

@media (max-width: 1100px) {
	.articles-overview {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 620px) {
	.articles-summary-card {
		grid-template-columns: 1fr;
	}
	.company-chip {
		width: 100%;
	}
}

/* ===== In-app feedback widget ===== */
.feedback-fab {
	position: fixed;
	top: 50%;
	right: max(12px, env(safe-area-inset-right));
	bottom: auto;
	z-index: 9999;
	min-height: 44px;
	padding: 12px 10px;
	border: 0;
	border-radius: 16px 0 0 16px;
	cursor: pointer;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--primary-strong));
	box-shadow: 0 14px 30px rgba(47, 125, 240, 0.32);
	transform: translateY(-50%);
	writing-mode: vertical-rl;
}

.feedback-fab:hover {
	filter: brightness(1.06);
}

.feedback-dialog {
	width: min(480px, calc(100vw - 32px));
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: 0;
	background: var(--card-strong);
	color: var(--text);
	box-shadow: var(--shadow);
}

.feedback-dialog::backdrop {
	background: rgba(0, 0, 0, 0.62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.feedback-form {
	padding: 26px;
}

.feedback-form h2 {
	margin: 0 0 18px;
	font-size: 22px;
	letter-spacing: -0.03em;
	color: var(--text);
}

.feedback-kind {
	display: flex;
	gap: 18px;
	margin-bottom: 16px;
	color: var(--muted-strong);
	font-weight: 600;
}

.feedback-field {
	display: block;
	margin-bottom: 16px;
	color: var(--muted-strong);
	font-size: 14px;
	font-weight: 600;
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	outline: none;
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
	font: inherit;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
	border-color: var(--line-strong);
}

.feedback-field textarea {
	resize: vertical;
}

.feedback-result {
	margin: 0 0 14px;
	padding: 11px 13px;
	border-radius: 12px;
	font-size: 14px;
	border: 1px solid rgba(251, 113, 133, 0.32);
	background: rgba(251, 113, 133, 0.12);
	color: #fecdd3;
	word-break: break-word;
}

.feedback-result[data-state="success"] {
	border-color: rgba(74, 222, 128, 0.32);
	background: rgba(74, 222, 128, 0.12);
	color: #bbf7d0;
}

.feedback-result a {
	color: inherit;
	font-weight: 700;
}

.feedback-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.feedback-actions .ghost-button,
.feedback-actions .primary-button {
	min-height: 44px;
	padding: 0 20px;
	margin-top: 0;
}

/* --- Sales behavior panel (articulos.html) --- */
.article-status-cell {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.sales-button {
	min-height: 0;
	padding: 4px 12px;
	margin-top: 0;
	font-size: 12px;
}

.sales-button.loading {
	color: var(--muted);
	pointer-events: none;
}

.sales-button.active {
	border-color: var(--primary);
	color: var(--primary);
	background: rgba(88, 166, 255, 0.12);
}

.sales-panel-row td {
	padding: 0;
	background: rgba(7, 17, 31, 0.6);
}

.sales-panel {
	padding: 20px 24px 24px;
	border-top: 1px solid var(--line-strong);
	border-bottom: 1px solid var(--line-strong);
}

.sales-panel-banner {
	margin-bottom: 16px;
}

.sales-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.sales-panel-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	margin: 0;
}

.sales-panel-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sales-empty {
	margin-top: 12px;
}

.sales-stats {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.sales-stat-card {
	flex: 1;
	min-width: 130px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 10px;
}

.sales-stat-card .label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.sales-stat-card .value {
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.sales-stat-card .sub {
	font-size: 11px;
	color: var(--muted);
}

.sales-tabs {
	display: flex;
	gap: 2px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 16px;
}

.sales-tab {
	padding: 7px 14px;
	border: none;
	background: none;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.sales-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.sales-tab-panel {
	display: none;
}

.sales-tab-panel.active {
	display: block;
}

.sales-chart-container {
	position: relative;
	height: 280px;
	padding: 20px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 10px;
}

.sales-docs-wrap {
	max-height: 260px;
	overflow-y: auto;
}

.sales-docs-table .doc-num {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: var(--muted-strong);
}

.sales-docs-table .doc-card {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sales-docs-table .qty-positive {
	color: var(--success);
	font-weight: 700;
}

.sales-docs-table .qty-negative {
	color: var(--danger);
	font-weight: 700;
}

.sales-doc-type {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	border: 1px solid;
}

.sales-doc-type.is-invoice {
	background: rgba(88, 166, 255, 0.12);
	color: var(--primary);
	border-color: rgba(88, 166, 255, 0.2);
}

.sales-doc-type.is-credit {
	background: rgba(251, 113, 133, 0.1);
	color: var(--danger);
	border-color: rgba(251, 113, 133, 0.25);
}

/* --- Warehouse config section (settings.html) --- */
.warehouse-config-section .warehouse-config-current {
	margin-top: 12px;
	font-size: 12px;
	color: var(--muted-strong);
}

.warehouse-config-section .warehouse-config-current strong {
	color: var(--text);
}

@media (max-width: 980px) {
	.maintenance-layout,
	.maintenance-detail-grid,
	.maintenance-summary-grid {
		grid-template-columns: 1fr;
	}
	.maintenance-list-panel,
	.maintenance-detail-panel {
		max-height: none;
		overflow: visible;
	}
	.maintenance-ot-list {
		max-height: none;
		overflow: visible;
	}
}

@media (max-width: 640px) {
	.maintenance-search > div,
	.maintenance-detail-header {
		align-items: stretch;
		flex-direction: column;
	}
	.maintenance-console {
		padding: 14px;
		border-radius: 22px;
	}
	.maintenance-search,
	.maintenance-search input,
	.maintenance-search button {
		width: 100%;
	}
	.maintenance-tab {
		padding: 8px 12px;
		font-size: 13px;
	}
	.maintenance-pagination {
		grid-template-columns: 1fr;
	}
}

/* ─── Page topbar (breadcrumb + country pill) ─────────────────────────────── */
.page-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0 14px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
}

.page-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--muted);
}

.page-breadcrumb a {
	color: var(--muted);
	text-decoration: none;
}

.page-breadcrumb a:hover {
	color: var(--primary);
}

.page-breadcrumb [aria-current="page"] {
	color: var(--primary);
	font-weight: 700;
}

.country-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(88, 166, 255, 0.07);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: default;
	user-select: none;
}

/* ─── OT Stat Cards ───────────────────────────────────────────────────────── */
.ot-stat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.ot-stat-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card-strong);
}

.ot-stat-card--blue  { border-left: 4px solid var(--primary); }
.ot-stat-card--amber { border-left: 4px solid #f59e0b; }
.ot-stat-card--green { border-left: 4px solid #10b981; }
.ot-stat-card--grey  { border-left: 4px solid var(--muted); }

.ot-stat-icon { font-size: 22px; line-height: 1; }

.ot-stat-value {
	display: block;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--text);
}

.ot-stat-label {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}

/* ─── View toggle bar ─────────────────────────────────────────────────────── */
.ot-view-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.ot-view-toggle {
	display: flex;
	gap: 4px;
}

.ot-view-btn {
	padding: 7px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: transparent;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background 120ms, color 120ms, border-color 120ms;
}

.ot-view-btn.is-active,
.ot-view-btn:hover {
	background: rgba(88, 166, 255, 0.12);
	border-color: var(--primary);
	color: var(--primary);
}

/* ─── Kanban Board ────────────────────────────────────────────────────────── */
.kanban-board {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	align-items: start;
}

.kanban-board[hidden],
.maintenance-console[hidden] {
	display: none !important;
}

.kanban-col {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--card);
	overflow: hidden;
}

.kanban-col-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	font-size: 13px;
	font-weight: 700;
}

.kanban-col-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.kanban-col--amber .kanban-col-dot { background: #f59e0b; }
.kanban-col--blue   .kanban-col-dot { background: var(--primary); }
.kanban-col--green  .kanban-col-dot { background: #10b981; }
.kanban-col--grey   .kanban-col-dot { background: var(--muted); }
.kanban-col--red    .kanban-col-dot { background: #ef4444; }

.kanban-col-count {
	margin-left: auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(88, 166, 255, 0.12);
	color: var(--primary);
	font-size: 11px;
	font-weight: 700;
}

.kanban-col-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	min-height: 80px;
}

.kanban-card {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card-strong);
	cursor: pointer;
	transition: border-color 120ms, box-shadow 120ms;
}

.kanban-card:hover {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.kanban-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.kanban-card-id {
	font-size: 12px;
	font-weight: 700;
	color: var(--primary);
}

.kanban-card-priority {
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
}

.kanban-card-desc {
	font-size: 13px;
	color: var(--text);
	line-height: 1.4;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kanban-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11px;
	color: var(--muted);
}

.kanban-empty {
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	padding: 20px 0;
}

.dashboard-ot-panel {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	gap: 10px;
	margin-top: 0;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.026);
	height: calc(
		100svh -
		max(18px, env(safe-area-inset-top)) -
		max(18px, env(safe-area-inset-bottom)) -
		18px
	);
	min-height: 520px;
}

.dashboard-ot-copy {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.dashboard-kanban {
	grid-template-columns: repeat(4, minmax(210px, 1fr));
	gap: 12px;
	align-items: stretch;
	min-height: 0;
}

.dashboard-kanban .kanban-col {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	border-radius: 16px;
	background: rgba(12, 25, 43, 0.74);
	min-height: 0;
}

.dashboard-kanban .kanban-col-header {
	padding: 10px 12px;
}

.dashboard-kanban .kanban-col-body {
	gap: 8px;
	padding: 10px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.dashboard-kanban-card {
	display: block;
	padding: 10px 12px;
	border-color: rgba(148, 163, 184, 0.16);
	background: rgba(15, 35, 62, 0.84);
	color: inherit;
	text-decoration: none;
}

.dashboard-kanban-card .kanban-card-header {
	margin-bottom: 5px;
}

.dashboard-kanban-card .kanban-card-priority {
	padding: 1px 7px;
	border: 1px solid rgba(148, 163, 184, 0.18);
	background: rgba(255, 255, 255, 0.04);
	color: var(--muted-strong);
	font-size: 10px;
}

.dashboard-kanban-card .kanban-card-desc {
	margin-bottom: 6px;
	line-height: 1.3;
}

@media (max-width: 900px) {
	.kanban-board { grid-template-columns: 1fr 1fr; }
	.ot-stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.kanban-board { grid-template-columns: 1fr; }
	.ot-stat-cards { grid-template-columns: 1fr 1fr; }
	.page-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════════════════════════════════════════
   REDESIGN 2026 — Mantenimiento OT
   ═══════════════════════════════════════════════ */

/* Search bar */
.ot-search-bar {
	padding: 14px 20px;
	background: var(--bg-soft, #0d1b2f);
	border-bottom: 1px solid rgba(88,166,255,.1);
	flex-shrink: 0;
}
.ot-search-form {
	display: flex;
	gap: 10px;
	max-width: 680px;
}
.ot-search-input {
	flex: 1;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(88,166,255,.15);
	border-radius: 10px;
	color: var(--text);
	font-size: 14px;
	padding: 10px 16px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.ot-search-input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(88,166,255,.12);
}
.ot-search-input::placeholder { color: var(--muted-strong, rgba(238,244,255,.45)); }

/* Split layout */
.ot-split-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	flex: 1;
	overflow: hidden;
	min-height: 0;
}

/* OT list panel */
.ot-list-panel {
	border-right: 1px solid rgba(88,166,255,.1);
	overflow-y: auto;
	background: var(--bg, #07111f);
	display: flex;
	flex-direction: column;
}
.ot-list-header {
	padding: 12px 16px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--muted-strong, rgba(238,244,255,.45));
	text-transform: uppercase;
	border-bottom: 1px solid rgba(88,166,255,.07);
	position: sticky;
	top: 0;
	background: var(--bg);
	z-index: 1;
}
.ot-list-count { color: var(--primary); }
.ot-empty-hint { padding: 20px 16px; font-size: 13px; color: var(--muted-strong, rgba(238,244,255,.45)); }

/* OT cards in list */
.maintenance-ot-list .ot-list-card {
	padding: 13px 16px;
	border-bottom: 1px solid rgba(88,166,255,.06);
	cursor: pointer;
	transition: background .12s;
	display: flex;
	flex-direction: column;
	gap: 5px;
	border-left: 3px solid transparent;
}
.maintenance-ot-list .ot-list-card:hover { background: rgba(88,166,255,.05); }
.maintenance-ot-list .ot-list-card.is-active {
	background: rgba(88,166,255,.08);
	border-left-color: var(--primary);
}
.ot-list-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ot-list-card-number { font-weight: 700; font-size: 13px; color: var(--text); }
.ot-list-card-desc { font-size: 12px; color: var(--muted-strong, rgba(238,244,255,.45)); line-height: 1.4; }
.ot-list-card-machine { margin: 8px 0 5px; }
.staff-machine-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.staff-machine-names > span { display: block; min-width: 0; }
.staff-machine-names small { display: block; margin-bottom: 2px; color: var(--muted-strong, rgba(238,244,255,.45)); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.staff-machine-names strong, .staff-machine-names__stia strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ot-hero-machine { max-width: 640px; margin-top: 12px; }
.ot-hero-machine .staff-machine-names > span { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.ot-list-card-status {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .05em;
	padding: 2px 8px;
	border-radius: 20px;
	text-transform: uppercase;
	white-space: nowrap;
}
.ot-status-DRAFT     { background: rgba(210,153,34,.15); color: #d29922; }
.ot-status-IN_PROGRESS { background: rgba(88,166,255,.15); color: #58a6ff; }
.ot-status-REVIEW    { background: rgba(168,85,247,.15); color: #a855f7; }
.ot-status-COMPLETED { background: rgba(63,185,80,.15); color: #3fb950; }
.ot-status-CANCELLED { background: rgba(248,81,73,.12); color: #f85149; }

/* Detail panel */
.ot-detail-panel {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: var(--bg);
}

/* Hero */
.ot-hero {
	padding: 24px 28px 20px;
	background: linear-gradient(135deg, rgba(15,32,53,.95) 0%, rgba(13,27,47,.8) 100%);
	border-bottom: 1px solid rgba(88,166,255,.1);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}
.ot-hero-glow {
	position: absolute;
	top: -60px; right: -60px;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(88,166,255,.12) 0%, transparent 70%);
	pointer-events: none;
}
.ot-hero-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 4px;
}
.ot-hero-title {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.3px;
	margin-bottom: 4px;
	color: var(--text);
}
.ot-hero-desc {
	font-size: 13px;
	color: var(--muted-strong, rgba(238,244,255,.55));
	margin-bottom: 12px;
	max-width: 580px;
}
.ot-hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ot-sap-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(88,166,255,.1);
	border: 1px solid rgba(88,166,255,.22);
	border-radius: 6px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--primary);
}
.ot-sap-badge::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--primary);
	flex-shrink: 0;
}

/* Action bar */
.ot-action-bar {
	padding: 10px 20px;
	border-bottom: 1px solid rgba(88,166,255,.1);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: rgba(13,27,47,.6);
	flex-shrink: 0;
}
.ot-action-spacer { flex: 1; }
.ot-btn-ghost {
	background: transparent;
	border: 1px solid rgba(88,166,255,.2);
	color: var(--text);
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.ot-btn-ghost:hover { border-color: var(--primary); background: rgba(88,166,255,.08); }
.ot-btn-success {
	background: rgba(63,185,80,.12);
	border: 1px solid rgba(63,185,80,.35);
	color: #3fb950;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}
.ot-btn-success:hover { background: rgba(63,185,80,.2); }
.ot-btn-danger {
	background: transparent;
	border: 1px solid rgba(248,81,73,.3);
	color: #f85149;
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 8px;
	cursor: pointer;
}
.ot-btn-danger:hover { background: rgba(248,81,73,.08); }
.ot-btn-report {
	background: rgba(88,166,255,.1);
	border: 1px solid rgba(88,166,255,.25);
	color: var(--primary);
	font-size: 12px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s;
}
.ot-btn-report:hover { background: rgba(88,166,255,.18); }

/* Tabs */
.ot-tabs {
	display: flex;
	padding: 0 20px;
	border-bottom: 1px solid rgba(88,166,255,.1);
	background: rgba(13,27,47,.4);
	overflow-x: auto;
	flex-shrink: 0;
}
.ot-tab {
	padding: 11px 16px;
	font-size: 13px;
	color: var(--muted-strong, rgba(238,244,255,.5));
	cursor: pointer;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	transition: color .15s;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
}
.ot-tab:hover { color: var(--text); }
.ot-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Tab body */
.ot-tab-body { padding: 20px 24px; flex: 1; overflow-y: auto; }

/* Info grid */
.ot-info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

/* Info cards */
.ot-card {
	background: rgba(15,32,53,.7);
	border: 1px solid rgba(88,166,255,.1);
	border-radius: 14px;
	padding: 18px 20px;
}
.ot-card-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--primary);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.ot-card-title::before {
	content: "";
	width: 3px; height: 12px;
	background: var(--primary);
	border-radius: 2px;
	display: inline-block;
}
.ot-info-rows { display: flex; flex-direction: column; gap: 9px; }
.ot-info-rows > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-bottom: 9px;
	border-bottom: 1px solid rgba(88,166,255,.06);
}
.ot-info-rows > div:last-child { border-bottom: none; padding-bottom: 0; }
.ot-info-rows dt { font-size: 11px; color: var(--muted-strong, rgba(238,244,255,.45)); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.ot-info-rows dd { font-size: 13px; color: var(--text); text-align: right; }

/* Attachments grid */
.ot-attachments-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
	margin-top: 4px;
}
.ot-attachment-thumb {
	aspect-ratio: 4/3;
	background: rgba(88,166,255,.05);
	border: 1px solid rgba(88,166,255,.12);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11px;
	color: var(--muted-strong, rgba(238,244,255,.45));
	cursor: pointer;
	transition: border-color .15s, background .15s;
	text-align: center;
	padding: 8px;
	overflow: hidden;
	word-break: break-all;
}
.ot-attachment-thumb:hover { border-color: var(--primary); background: rgba(88,166,255,.1); }
.ot-attachment-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.ot-attachment-icon { font-size: 22px; line-height: 1; }

/* Maintenance console override */
.maintenance-page .maintenance-console {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
}

@media (max-width: 900px) {
	.ot-split-layout { grid-template-columns: 1fr; }
	.ot-list-panel { max-height: 280px; border-right: none; border-bottom: 1px solid rgba(88,166,255,.1); }
}

/* Checklist inside ot-card */
.ot-card .maintenance-checklist {
	margin: 0;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
}
.ot-card .maintenance-checklist li {
	background: rgba(88,166,255,.04);
	border: 1px solid rgba(88,166,255,.08);
	border-radius: 10px;
	padding: 12px 14px;
	counter-increment: checklist-counter;
	position: relative;
}
.ot-card .maintenance-checklist li::before {
	content: counter(checklist-counter);
	position: absolute;
	left: -18px;
	top: 12px;
	width: 14px;
	height: 14px;
	background: var(--primary);
	color: var(--bg);
	border-radius: 50%;
	font-size: 9px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ot-card .maintenance-checklist { counter-reset: checklist-counter; }
.ot-card .maintenance-checklist li strong {
	display: block;
	font-size: 13px;
	color: var(--text);
	margin-bottom: 4px;
}
.ot-card .maintenance-checklist li span {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--primary);
	opacity: .7;
	margin-bottom: 6px;
}
.ot-card .maintenance-checklist li small {
	display: block;
	font-size: 12px;
	color: var(--text);
	background: rgba(255,255,255,.05);
	border: 1px solid rgba(88,166,255,.1);
	border-radius: 8px;
	padding: 8px 10px;
	white-space: pre-wrap;
	max-height: 120px;
	overflow-y: auto;
	font-weight: 500;
	line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Technician PWA (tecnico.html) — mobile-first field execution
   --------------------------------------------------------------------------- */

.tecnico-body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
}

.tecnico-shell {
	max-width: 720px;
	margin: 0 auto;
	padding: max(12px, env(safe-area-inset-top))
		max(14px, env(safe-area-inset-right))
		max(16px, env(safe-area-inset-bottom))
		max(14px, env(safe-area-inset-left));
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tecnico-topbar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	padding: 8px 0 10px;
	background: var(--bg);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.tecnico-title {
	margin: 0;
	min-width: 0;
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tecnico-home-link {
	color: var(--primary);
	text-decoration: none;
	font-weight: 700;
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.tecnico-home-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.tecnico-logout {
	width: auto;
	min-width: 76px;
	min-height: 42px;
	padding: 0 14px;
	border-radius: 12px;
}

@media (max-width: 420px) {
	.tecnico-topbar {
		gap: 8px;
	}

	.tecnico-home-label {
		display: none;
	}

	.tecnico-home-link {
		width: 44px;
		justify-content: center;
	}

	.tecnico-title {
		font-size: 1.05rem;
	}

	.tecnico-logout {
		min-width: 68px;
		padding: 0 12px;
	}
}

.tecnico-banner {
	border-radius: 12px;
	padding: 12px 14px;
	font-weight: 600;
	line-height: 1.4;
	background: color-mix(in srgb, var(--danger) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent);
	color: var(--text);
}
.tecnico-banner[data-state="success"] {
	background: color-mix(in srgb, var(--success) 18%, transparent);
	border-color: color-mix(in srgb, var(--success) 40%, transparent);
}
.tecnico-banner[data-state="warning"] {
	background: color-mix(in srgb, var(--warning) 18%, transparent);
	border-color: color-mix(in srgb, var(--warning) 45%, transparent);
}

.tecnico-user {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
	border-radius: 14px;
	background: color-mix(in srgb, var(--card) 88%, transparent);
	font-size: 0.85rem;
	color: var(--muted);
}
.tecnico-user strong,
.tecnico-user span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tecnico-user strong {
	color: var(--text);
	font-size: 0.95rem;
}

.tecnico-view-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 8px;
}
.tecnico-view-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.tecnico-view-head h2 {
	margin: 0;
	font-size: 1.05rem;
}
.tecnico-coach {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--card-strong);
	color: var(--text);
	font-size: 0.92rem;
	line-height: 1.45;
}
.tecnico-coach[hidden] {
	display: none;
}
.tecnico-coach p {
	margin: 0;
}
.tecnico-list-help {
	margin: 0 0 10px;
	color: var(--muted-strong);
	font-size: 0.86rem;
	line-height: 1.4;
}
.tecnico-section-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}
.tecnico-section-head h3 {
	margin: 0;
}
.tecnico-tip {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}
.tecnico-tip-btn {
	width: 44px;
	height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--card);
	color: var(--muted-strong);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 800;
	cursor: pointer;
}
.tecnico-tip-panel {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 6;
	width: min(280px, 70vw);
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--card);
	color: var(--text);
	box-shadow: 0 10px 28px rgba(7, 17, 31, 0.18);
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.4;
}
.tecnico-tip.is-open .tecnico-tip-panel {
	display: block;
}
@media (hover: hover) and (pointer: fine) {
	.tecnico-tip:hover .tecnico-tip-panel,
	.tecnico-tip:focus-within .tecnico-tip-panel {
		display: block;
	}
}

.tecnico-search {
	margin-bottom: 12px;
}
.tecnico-search input[type="search"] {
	-webkit-appearance: none;
	appearance: none;
}
.tecnico-search-clear {
	width: 100%;
	margin-top: 8px;
}
.tecnico-search-clear[hidden] {
	display: none;
}

.tecnico-list-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 12px;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--card);
}
.tecnico-list-tabs button {
	min-height: 44px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: var(--muted-strong);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.tecnico-list-tabs button[aria-selected="true"] {
	border-color: var(--line-strong);
	background: var(--card-strong);
	color: var(--text);
}
.tecnico-list-tabs span {
	display: inline-grid;
	min-width: 24px;
	min-height: 24px;
	place-items: center;
	margin-left: 5px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.tecnico-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tecnico-empty {
	color: var(--muted);
	text-align: center;
	padding: 24px 12px;
}

.tecnico-card {
	width: 100%;
	text-align: left;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px;
	color: var(--text);
	display: flex;
	flex-direction: column;
	gap: 6px;
	cursor: pointer;
	min-height: 44px;
}
.tecnico-card:active {
	border-color: var(--primary);
}
.tecnico-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.tecnico-card-asset {
	margin: 0;
	font-size: 0.9rem;
	color: var(--muted-strong);
	display: flex;
	align-items: center;
	gap: 6px;
}
.tecnico-card-desc {
	margin: 0;
	font-size: 0.85rem;
	color: var(--muted);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.tecnico-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
	flex: none;
}
.tecnico-dot-green {
	background: var(--success);
}
.tecnico-dot-yellow {
	background: var(--warning);
}
.tecnico-dot-red {
	background: var(--danger);
}

.tecnico-status {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 3px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--primary) 18%, transparent);
	color: var(--primary);
	white-space: nowrap;
}
.tecnico-status-completed {
	background: color-mix(in srgb, var(--success) 18%, transparent);
	color: var(--success);
}
.tecnico-status-cancelled {
	background: color-mix(in srgb, var(--danger) 18%, transparent);
	color: var(--danger);
}

.tecnico-back {
	background: none;
	border: none;
	color: var(--primary);
	font-weight: 600;
	padding: 10px 0;
	min-height: 44px;
	cursor: pointer;
	align-self: flex-start;
}

.tecnico-detail-head {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tecnico-detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.tecnico-detail-asset {
	margin: 0;
	color: var(--muted-strong);
	font-weight: 600;
}
.tecnico-detail-desc {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.tecnico-completed {
	background: color-mix(in srgb, var(--success) 16%, transparent);
	border: 1px solid color-mix(in srgb, var(--success) 38%, transparent);
	border-radius: 12px;
	padding: 14px 16px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.35;
	position: sticky;
	top: 0;
	z-index: 3;
}

.tecnico-view.is-readonly .tecnico-section {
	opacity: 0.98;
}

.tecnico-view.is-readonly .tecnico-cond-btn:disabled {
	opacity: 0.85;
	cursor: not-allowed;
}

.tecnico-readonly-answer {
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--line) 55%, transparent);
	border: 1px solid var(--line);
	font-size: 0.95rem;
	line-height: 1.4;
	word-break: break-word;
}

.tecnico-check-item.is-readonly .tecnico-check-label {
	color: var(--muted);
}

@media (max-width: 640px) {
	.tecnico-completed {
		font-size: 1rem;
		padding: 16px;
		border-radius: 14px;
	}

	.tecnico-readonly-answer {
		font-size: 1rem;
		min-height: 44px;
	}

	.tecnico-view.is-readonly .tecnico-cond-btn {
		min-height: 48px;
	}
}

.tecnico-section {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tecnico-section h3 {
	margin: 0;
	font-size: 1rem;
}
.tecnico-section-hint {
	margin: 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.tecnico-checklist {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tecnico-check-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.tecnico-check-label {
	font-size: 0.9rem;
	font-weight: 600;
}
.tecnico-required {
	color: var(--danger);
	margin-left: 2px;
}

.tecnico-check-gps {
	gap: 0.65rem;
	padding: 0.85rem;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: color-mix(in srgb, var(--card-strong) 65%, transparent);
}

.tecnico-gps-status {
	display: grid;
	gap: 0.35rem;
	margin: 0;
	font-size: 0.85rem;
	color: var(--muted);
}

.tecnico-gps-status.is-captured {
	color: var(--success);
}

.tecnico-gps-map-link {
	color: var(--accent);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tecnico-gps-btn {
	min-height: 44px;
	width: 100%;
}

.tecnico-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted-strong);
}
.tecnico-field-row {
	display: flex;
	gap: 10px;
}
.tecnico-field-row .tecnico-field {
	flex: 1;
}

.tecnico-input {
	width: 100%;
	font-size: 16px; /* avoid iOS zoom */
	padding: 12px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--bg-soft);
	color: var(--text);
	font-family: inherit;
	resize: vertical;
}
.tecnico-input:focus {
	outline: none;
	border-color: var(--primary);
}

.tecnico-condition {
	display: flex;
	gap: 8px;
}
.tecnico-cond-btn {
	flex: 1;
	min-height: 48px;
	border-radius: 12px;
	border: 2px solid var(--line);
	background: var(--bg-soft);
	color: var(--text);
	font-weight: 700;
	font-size: 0.9rem;
	cursor: pointer;
}
.tecnico-cond-green.is-selected {
	border-color: var(--success);
	background: color-mix(in srgb, var(--success) 20%, transparent);
}
.tecnico-cond-yellow.is-selected {
	border-color: var(--warning);
	background: color-mix(in srgb, var(--warning) 20%, transparent);
}
.tecnico-cond-red.is-selected {
	border-color: var(--danger);
	background: color-mix(in srgb, var(--danger) 20%, transparent);
}

.tecnico-full-btn {
	width: 100%;
	min-height: 48px;
}

.tecnico-spareparts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tecnico-sparepart {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 0.9rem;
}
.tecnico-sparepart-del {
	min-height: 40px;
	min-width: 40px;
	padding: 0 10px;
}
.tecnico-sparepart-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.tecnico-signature-wrap {
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}
.tecnico-signature {
	width: 100%;
	height: 220px;
	display: block;
	touch-action: none;
}
.tecnico-sign-actions {
	display: flex;
	gap: 10px;
}
.tecnico-sign-actions button {
	flex: 1;
	min-height: 48px;
}

@media (prefers-reduced-motion: reduce) {
	.tecnico-card,
	.tecnico-cond-btn {
		transition: none;
	}
}


/* Technician photo evidence gallery (mobile-first) */
.tecnico-photos-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.tecnico-photo-thumb {
	margin: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	background: color-mix(in srgb, var(--line) 35%, transparent);
	min-height: 120px;
	display: flex;
	flex-direction: column;
}
.tecnico-photo-thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}
.tecnico-photo-open {
	border: 0;
	padding: 0;
	background: transparent;
	display: block;
	width: 100%;
}
.tecnico-doc-open {
	width: 100%;
	min-height: 140px;
	border: 0;
	padding: 16px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--card-strong);
	color: var(--text);
	cursor: pointer;
	font: inherit;
}
.tecnico-doc-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}
.tecnico-doc-action {
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text);
}
.tecnico-video-open .tecnico-doc-badge {
	background: #7c3aed;
}
.tecnico-photo-thumb figcaption {
	padding: 8px 10px;
	font-size: 0.78rem;
	color: var(--muted);
	word-break: break-word;
}
.tecnico-photo-loading,
.tecnico-photo-missing {
	min-height: 120px;
	display: grid;
	place-items: center;
	color: var(--muted);
	font-size: 0.85rem;
}
.tecnico-photo-preview {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tecnico-photo-preview img {
	width: 100%;
	max-height: 260px;
	object-fit: contain;
	border-radius: 12px;
	background: #000;
}
.tecnico-photo-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(0, 0, 0, 0.88);
	display: grid;
	place-items: center;
	padding: 16px;
}
.tecnico-photo-lightbox img,
.tecnico-video-modal video {
	max-width: min(100%, 960px);
	max-height: 85vh;
	object-fit: contain;
	border-radius: 10px;
}
.tecnico-video-modal {
	width: min(100%, 980px);
	display: grid;
	gap: 12px;
	justify-items: center;
}
.tecnico-video-modal video {
	width: 100%;
	background: #000;
}
.tecnico-video-error {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(220, 38, 38, 0.18);
	color: #fecaca;
	font-weight: 700;
}
.tecnico-photo-lightbox-close {
	position: absolute;
	top: 14px;
	right: 14px;
	min-width: 44px;
	min-height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.1rem;
}
@media (min-width: 720px) {
	.tecnico-photos-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* OneSync Core shell: STIA light operations workspace. */
.dashboard-page {
	--core-blue: #0067b2;
	--core-blue-2: #2264b4;
	--core-green: #61ce70;
	--core-ink: #101828;
	--core-muted: #475467;
	--core-line: #c8d5e3;
	--core-soft: #edf2f7;
	--core-paper: #ffffff;
	color: var(--core-ink);
	background: var(--core-soft);
	font-family: "Roboto", Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light;
}

.dashboard-page::before {
	display: none;
}

.dashboard-page .dashboard-frame {
	grid-template-areas: "sidebar main";
	grid-template-columns: 236px minmax(0, 1fr);
	gap: 24px;
}

.dashboard-page .dashboard-main {
	grid-area: main;
	gap: 14px;
	min-width: 0;
}

.dashboard-page .dashboard-main > * {
	min-width: 0;
}

.dashboard-page .dashboard-sidebar {
	grid-area: sidebar;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0;
	background: #14304f;
	box-shadow: none;
}

.dashboard-page .dashboard-ot-panel {
	grid-template-rows: none;
	grid-template-columns: minmax(0, 1fr);
	height: auto;
	min-height: 0;
	align-content: start;
	border-color: var(--core-line);
	border-radius: 0;
	background: transparent;
}

.dashboard-page .service-banner[hidden] {
	display: none !important;
}

.dashboard-page .avatar {
	border-color: #9fc4e2;
	border-radius: 10px;
	background: var(--core-blue);
	color: #ffffff;
}

.dashboard-page .sidebar-brand,
.dashboard-page .sidebar-user {
	border-color: rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
}

.dashboard-page .sidebar-brand strong,
.dashboard-page .sidebar-user strong,
.dashboard-page .sidebar-product h1 {
	color: #eaf0f6;
}

.dashboard-page .sidebar-brand span,
.dashboard-page .sidebar-user span,
.dashboard-page .sidebar-product p {
	color: #9fb2c5;
}

.dashboard-page .dashboard-ot-copy,
.dashboard-page .topbar p,
.dashboard-page .panel-card li {
	color: var(--core-muted);
}

.dashboard-page .eyebrow {
	color: #5e7085;
	letter-spacing: 0.08em;
}

.dashboard-page .sidebar-nav::before {
	color: #9fb2c5;
}

.dashboard-page .topbar,
.dashboard-page .user-panel,
.dashboard-page .status-hero,
.dashboard-page .metric-card,
.dashboard-page .panel-card,
.dashboard-page .core-page-title {
	border: 1px solid var(--core-line);
	background: var(--core-paper);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.dashboard-page .core-page-title {
	align-items: flex-end;
	padding: 18px 20px;
}

.dashboard-page .core-page-title h2 {
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	color: #061f3a;
	font-size: 30px;
	letter-spacing: -0.02em;
}

.dashboard-page .sidebar-product h1 {
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	color: #eaf0f6;
}

.dashboard-page .dashboard-main-header h2,
.dashboard-page .card-header h2,
.dashboard-page .status-hero h2,
.dashboard-page .panel-card h3 {
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	color: #061f3a;
}

.dashboard-page .data-source-mark {
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	padding: 5px 8px;
	color: #344054;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dashboard-page .primary-button,
.dashboard-page .ghost-button,
.dashboard-page .link-button,
.dashboard-page .ot-view-btn {
	border: 1px solid #9fc4e2;
	border-radius: 6px;
	box-shadow: none;
	font-weight: 900;
}

.dashboard-page .primary-button {
	border-color: var(--core-blue);
	background: var(--core-blue);
	color: #ffffff;
}

.dashboard-page .ghost-button,
.dashboard-page .link-button,
.dashboard-page .ot-view-btn {
	background: var(--core-paper);
	color: var(--core-blue-2);
}

.dashboard-page .ghost-button:hover,
.dashboard-page .link-button:hover,
.dashboard-page .ot-view-btn:hover {
	border-color: var(--core-blue);
	background: #eef6fd;
	color: var(--core-blue);
}

.dashboard-page .login-form input,
.dashboard-page .login-form select,
.dashboard-page .settings-form input,
.dashboard-page .settings-form select,
.dashboard-page .search-input,
.dashboard-page .form-grid input,
.dashboard-page .form-grid select,
.dashboard-page .user-dialog input,
.dashboard-page .user-dialog select,
.dashboard-page .user-dialog textarea {
	border-color: #b9c7d6;
	background: #ffffff;
	color: var(--core-ink);
}

.dashboard-page .status-chip,
.dashboard-page .role-pill,
.dashboard-page .status-pill {
	border: 1px solid #b7d4ec;
	background: #eef6fd;
	color: var(--core-blue-2);
}

.dashboard-page .status-chip-muted {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: var(--core-muted);
}

.dashboard-priority-panel {
	border: 1px solid var(--core-line);
	background: var(--core-paper);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.dashboard-header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dashboard-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 14px;
}

.dashboard-panel-header strong {
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	color: #101828;
	font-weight: 900;
}

.dashboard-page .ot-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 12px;
	font-weight: 900;
	text-decoration: none;
}

.dashboard-page .ot-view-btn.is-primary {
	width: 100%;
	border-color: var(--core-blue);
	background: var(--core-blue);
	color: #ffffff;
}

/* Honest compact counters: open totals per stage plus the labeled historical
   completed total. Values come only from the per-status API totals; notes
   state what each number counts. No thresholds, meters or stage actions. */
.dashboard-counters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.dashboard-counter {
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--core-line);
	border-top: 3px solid var(--core-blue);
	border-radius: 6px;
	background: var(--core-paper);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.dashboard-counter--historic {
	border-top-color: #14304f;
	background: #f7f9fb;
}

.dashboard-counter-label {
	margin: 0 0 6px;
	color: var(--core-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.dashboard-counter-value {
	margin: 0 0 6px;
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	color: #061f3a;
}

.dashboard-counter-note {
	margin: 0;
	color: var(--core-muted);
	font-size: 13px;
}

.dashboard-priority-panel {
	min-width: 0;
}

.dashboard-panel-header {
	border: 0;
	border-bottom: 1px solid #e3ebf3;
	box-shadow: none;
}

.dashboard-panel-header span {
	color: #475467;
	font-size: 12px;
	font-weight: 800;
}

.dashboard-priority-ledger {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Readable semantic open-OT table: real <table> markup rendered by app.js.
   Columns carry only what the per-status API provides for each order. */
.dashboard-page .dashboard-ot-table {
	min-width: 0;
	width: 100%;
	border-collapse: collapse;
}

.dashboard-page .dashboard-ot-table th,
.dashboard-page .dashboard-ot-table td {
	padding: 10px;
	border-top: 1px solid #e8eef5;
	text-align: left;
	vertical-align: top;
}

.dashboard-page .dashboard-ot-table thead th {
	border-top: 0;
	background: #f8fafc;
	color: #475467;
	font-size: 11px;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.dashboard-page .dashboard-ot-table tbody th {
	color: var(--core-ink);
	font-weight: 700;
}

.dashboard-page .dashboard-ot-table tbody th a {
	color: var(--core-blue);
	text-decoration: none;
}

.dashboard-page .dashboard-ot-table tbody th a:hover,
.dashboard-page .dashboard-ot-table tbody th a:focus-visible {
	text-decoration: underline;
}

.dashboard-state {
	width: max-content;
	border: 1px solid #d0d5dd;
	border-radius: 4px;
	background: #f2f4f7;
	padding: 3px 7px;
	font-size: 11px;
	font-weight: 900;
}

.dashboard-state--in_progress {
	border-color: #f0c36a;
	background: #fff7e6;
	color: #8a4b0f;
}

.dashboard-state--review {
	border-color: #93c5fd;
	background: #eaf4ff;
	color: #184b85;
}

.dashboard-state--completed {
	border-color: #86efac;
	background: #ecfdf3;
	color: #166534;
}

.dashboard-empty-state {
	margin: 0;
	padding: 18px;
	color: var(--core-muted);
}

.dashboard-page :focus-visible {
	outline: 3px solid color-mix(in srgb, var(--core-blue) 35%, white);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.dashboard-shell[data-ready="true"] {
		animation: none;
	}

	.dashboard-page .dashboard-frame {
		transition: none;
	}
}

@media (max-width: 900px) {
	.dashboard-page .dashboard-frame {
		display: flex;
		flex-direction: column;
		grid-template-areas: none;
	}

	.dashboard-page .dashboard-main {
		order: 1;
	}

	.dashboard-page .dashboard-sidebar {
		order: 2;
		position: static;
		min-height: auto;
		max-height: none;
	}
}

@media (max-width: 640px) {
	.dashboard-page {
		padding: 12px;
	}

	.dashboard-page .core-page-title,
	.dashboard-page .topbar,
	.dashboard-page .section-heading,
	.dashboard-panel-header {
		align-items: stretch;
		flex-direction: column;
	}

	.dashboard-counters {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}

	.dashboard-counter-value {
		font-size: 26px;
	}

	/* Keep the table's columns readable on narrow widths: the ledger wrapper
	   scrolls horizontally instead of crushing cells. */
	.dashboard-page .dashboard-ot-table {
		min-width: 560px;
	}
}

.dashboard-page .status-chip {
	background: #eef6fd;
	color: var(--core-blue-2);
}

/* Articles catalog: map the legacy dark components onto the Core light shell. */
.dashboard-page .articles-shell {
	border-color: var(--core-line);
	background: var(--core-paper);
	color: var(--core-ink);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.dashboard-page .minimal-home-header h2 {
	font-family: "Roboto Slab", "Roboto", Georgia, serif;
	color: #061f3a;
}

.dashboard-page .minimal-home-header p:not(.eyebrow),
.dashboard-page .muted-copy,
.dashboard-page .articles-status,
.dashboard-page .empty-state,
.dashboard-page .sales-empty {
	color: var(--core-muted);
}

.dashboard-page .articles-header-actions label,
.dashboard-page .articles-form label {
	color: #344054;
}

.dashboard-page .articles-header-actions select,
.dashboard-page .articles-form input,
.dashboard-page .articles-form select {
	border-color: #b9c7d6;
	background: #ffffff;
	color: var(--core-ink);
}

.dashboard-page .articles-form input::placeholder {
	color: #667085;
	opacity: 1;
}

.dashboard-page .articles-header-actions select:focus,
.dashboard-page .articles-form input:focus,
.dashboard-page .articles-form select:focus {
	border-color: var(--core-blue);
	box-shadow: 0 0 0 4px rgba(0, 103, 178, 0.14);
}

.dashboard-page .articles-summary-card,
.dashboard-page .company-chip-list {
	border-color: var(--core-line);
	background: #f8fafc;
	box-shadow: none;
}

.dashboard-page .articles-summary-card > div,
.dashboard-page .company-chip {
	border-color: #cbd5e1;
	background: #ffffff;
}

.dashboard-page .articles-summary-card span,
.dashboard-page .company-chip span {
	color: var(--core-muted);
}

.dashboard-page .company-chip strong {
	color: var(--core-ink);
}

.dashboard-page .articles-table {
	border-color: var(--core-line);
	background: #ffffff;
}

.dashboard-page .articles-table thead th {
	border-color: #8eb8d8;
	background: #075f9f;
	color: #ffffff;
}

.dashboard-page .articles-table tbody td {
	border-color: #d8e2ec;
	background: #ffffff;
	color: var(--core-ink);
}

.dashboard-page .articles-table tbody tr:nth-child(even) td {
	background: #f8fafc;
}

.dashboard-page .articles-table tbody tr:hover td {
	background: #eef6fd;
}

.dashboard-page .article-company-group-row td {
	/* The legacy group row sets its dark background with !important. */
	background: #e8f2fb !important;
	color: #163a5f;
}

.dashboard-page .articles-table a {
	color: #075f9f;
}

.dashboard-page .articles-table a:hover {
	color: #004d80;
}

.dashboard-page .sales-button.loading {
	color: var(--core-muted);
}

.dashboard-page .sales-button.active {
	border-color: var(--core-blue);
	background: #eef6fd;
	color: var(--core-blue-2);
}

.dashboard-page .sales-panel-row td {
	background: #f8fafc;
}

.dashboard-page .sales-panel {
	border-color: var(--core-line);
	background: #f8fafc;
	color: var(--core-ink);
}

.dashboard-page .sales-panel-title,
.dashboard-page .sales-stat-card .value {
	color: var(--core-ink);
}

.dashboard-page .sales-stat-card,
.dashboard-page .sales-chart-container,
.dashboard-page .sales-docs-wrap {
	border-color: var(--core-line);
	background: #ffffff;
}

.dashboard-page .sales-stat-card .label,
.dashboard-page .sales-stat-card .sub,
.dashboard-page .sales-tab,
.dashboard-page .sales-docs-table .doc-num {
	color: var(--core-muted);
}

.dashboard-page .sales-tabs {
	border-color: var(--core-line);
}

.dashboard-page .sales-tab.active {
	border-bottom-color: var(--core-blue);
	color: var(--core-blue-2);
}

.dashboard-page .sales-docs-table th {
	color: #344054;
}

.dashboard-page .sales-docs-table td {
	color: var(--core-ink);
}

.dashboard-page .sales-docs-table .qty-positive {
	color: #176b3a;
}

.dashboard-page .sales-docs-table .qty-negative {
	color: #b42318;
}

.dashboard-page .sales-doc-type.is-invoice {
	border-color: #9fc4e2;
	background: #eef6fd;
	color: #075f9f;
}

.dashboard-page .sales-doc-type.is-credit {
	border-color: #f1aeb5;
	background: #fff1f3;
	color: #a1102b;
}

.dashboard-page .status-pill[data-article-status="Activo"] {
	border-color: #a6d8b7;
	background: #e8f7ed;
	/* Legacy article status colors also use !important. */
	color: #176b3a !important;
}

.dashboard-page .status-pill[data-article-status="Inactivo"] {
	border-color: #f1aeb5;
	background: #fff1f3;
	color: #a1102b !important;
}

.dashboard-page .status-pill[data-article-status="Congelado"] {
	border-color: #e8c878;
	background: #fffaeb;
	color: #7a4d00 !important;
}

.dashboard-page .articles-errors p,
.dashboard-page .banner[data-state="warning"] {
	border-color: #e8c878;
	background: #fffaeb;
	color: #7a2e0e;
}

.dashboard-page .banner,
.dashboard-page .banner[data-state="error"] {
	border-color: #f1aeb5;
	background: #fff1f3;
	color: #a1102b;
}

.dashboard-page .banner[data-state="success"] {
	border-color: #a6d8b7;
	background: #e8f7ed;
	color: #176b3a;
}

.dashboard-page .banner[data-state="info"] {
	border-color: #9fc4e2;
	background: #eef6fd;
	color: #075f9f;
}

@media (max-width: 900px) {
	.dashboard-page .dashboard-frame.articles-page {
		display: grid;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		grid-template-areas: "main" "sidebar";
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page .articles-page .dashboard-main,
	.dashboard-page .articles-page .articles-shell,
	.dashboard-page .articles-page .articles-results {
		min-width: 0;
		max-width: 100%;
	}

	.dashboard-page .articles-page .dashboard-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page .articles-page .table-wrap {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Scoped legacy-module skin: inherit the Core light palette without changing dark surfaces. */
.dashboard-page.core-light-page {
	--text: var(--core-ink);
	--muted: var(--core-muted);
	--muted-strong: #344054;
	--card: var(--core-paper);
	--card-strong: var(--core-paper);
	--bg-soft: #f8fafc;
	--line: var(--core-line);
	--line-strong: #9fc4e2;
	--primary: #075f9f;
	--primary-strong: #004d80;
	--success: #176b3a;
	--danger: #b42318;
	--warning: #7a4d00;
}

.dashboard-page.core-light-page .settings-card {
	padding: 20px;
	border: 1px solid var(--core-line);
	border-radius: 12px;
	background: var(--core-paper);
	color: var(--core-ink);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.dashboard-page.core-light-page .users-table th {
	color: #344054;
}

.dashboard-page.core-light-page .status-pill.is-active {
	border: 1px solid #a6d8b7;
	background: #e8f7ed;
	color: #176b3a !important;
}

.dashboard-page.core-light-page .status-pill.is-off {
	border: 1px solid #f1aeb5;
	background: #fff1f3;
	color: #a1102b !important;
}

.dashboard-page.core-light-page .maintenance-tabs {
	border-color: var(--core-line);
	background: var(--core-paper);
}

.dashboard-page.core-light-page .maintenance-tab {
	color: #344054;
}

.dashboard-page.core-light-page .maintenance-tab:hover {
	background: #eef6fd;
	color: #075f9f;
}

.dashboard-page.core-light-page .maintenance-tab.is-active {
	background: #dbeeff;
	color: #075f9f;
}

.dashboard-page.core-light-page .service-banner {
	border-color: #a6d8b7;
	background: #e8f7ed;
	color: #176b3a;
}

.dashboard-page.core-light-page .empty-state {
	border-color: var(--core-line);
	background: #f8fafc;
	color: var(--core-muted);
}

.dashboard-page.core-light-page :is(
	.settings-summary-row,
	.settings-list li,
	.settings-test-result div,
	.permission-module,
	.permission-option
) {
	border-color: var(--core-line);
	background: #f8fafc;
}

@media (max-width: 900px) {
	.dashboard-page.core-light-page .dashboard-frame {
		display: grid;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		grid-template-areas: "main" "sidebar";
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page.core-light-page .dashboard-main {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page.core-light-page :is(
		.settings-grid,
		.settings-card,
		.panel-card,
		.maintenance-tab-panels,
		.maintenance-tab-panel
	) {
		min-width: 0;
		max-width: 100%;
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page.core-light-page .table-wrap {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 640px) {
	.settings-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.settings-tab { min-width: 0; padding: 0 8px; }

	.dashboard-page.core-light-page .form-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page.core-light-page :is(.toolbar-controls, .search-input) {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}
}

/* Dark theme must win over the late Core-light compatibility skin. */
:root[data-theme="dark"] .dashboard-page.core-light-page .users-table th {
	color: #d6e2f0;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .users-table td {
	color: var(--core-ink);
}

:root[data-theme="dark"] .dashboard-page.core-light-page .users-table td > span,
:root[data-theme="dark"] .dashboard-page.core-light-page .country-badge {
	color: var(--core-muted);
}

:root[data-theme="dark"] .dashboard-page.core-light-page .role-pill {
	border-color: #52749b;
	background: #142b45;
	color: #cfe7ff !important;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .status-pill.is-active {
	border-color: #2f7d4f;
	background: #123624;
	color: #b7f7cc !important;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .status-pill.is-off {
	border-color: #8b3a50;
	background: #3a1822;
	color: #fecdd3 !important;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .row-actions .link-button {
	margin: 0 6px 6px 0;
	padding: 5px 8px;
	border-color: #52749b;
	background: #142b45;
	color: #cfe7ff;
	line-height: 1.2;
	text-decoration: none;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .row-actions .link-button:hover {
	border-color: #8ec5ff;
	background: #1b3959;
	color: #eef7ff;
	text-decoration: none;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .status-chip {
	border-color: #2f7d4f;
	background: #123624;
	color: #b7f7cc;
}

:root[data-theme="dark"] .dashboard-page.core-light-page .status-chip-muted {
	border-color: #52749b;
	background: #142b45;
	color: #cfe7ff;
}

/* Maintenance console: keep the OT workspace aligned with Core in light theme only. */
:root[data-theme="light"] .dashboard-page.core-light-page .maintenance-page .maintenance-console {
	border-color: var(--core-line);
	background: var(--core-paper);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-search-bar {
	border-color: var(--core-line);
	background: #f8fafc;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-search-input {
	border-color: #b9c7d6;
	background: var(--core-paper);
	color: var(--core-ink);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-search-input::placeholder { color: var(--core-muted); opacity: 1; }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-search-input:focus { border-color: var(--core-blue); box-shadow: 0 0 0 3px rgba(0, 103, 178, 0.14); }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-list-panel {
	border-color: var(--core-line);
	background: var(--core-paper);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-list-header {
	border-color: var(--core-line);
	background: #f8fafc;
	color: var(--core-muted);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-list-count,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-card-title,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-hero-eyebrow {
	color: var(--core-blue-2);
}

:root[data-theme="light"] .dashboard-page.core-light-page .maintenance-ot-list .ot-list-card {
	border-color: #d8e2ec;
}

:root[data-theme="light"] .dashboard-page.core-light-page .maintenance-ot-list .ot-list-card:hover { background: #f8fafc; }

:root[data-theme="light"] .dashboard-page.core-light-page .maintenance-ot-list .ot-list-card.is-active {
	border-left-color: var(--core-blue);
	background: #eef6fd;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-list-card-number,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-hero-title,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-info-rows dd,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-card .maintenance-checklist li strong,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-card .maintenance-checklist li small {
	color: var(--core-ink);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-list-card-desc,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-empty-hint,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-hero-desc,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-info-rows dt,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-attachment-thumb {
	color: var(--core-muted);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-status-DRAFT { background: #fffaeb; color: #7a4d00; }
:root[data-theme="light"] .dashboard-page.core-light-page .ot-status-IN_PROGRESS { background: #eef6fd; color: #075f9f; }
:root[data-theme="light"] .dashboard-page.core-light-page .ot-status-REVIEW { background: #f4ebff; color: #6941c6; }
:root[data-theme="light"] .dashboard-page.core-light-page .ot-status-COMPLETED { background: #e8f7ed; color: #176b3a; }
:root[data-theme="light"] .dashboard-page.core-light-page .ot-status-CANCELLED { background: #fff1f3; color: #a1102b; }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-detail-panel {
	background: var(--core-paper);
}

:root[data-theme="light"] .dashboard-page.core-light-page .maintenance-detail-panel {
	border-color: var(--core-line);
	background: var(--core-paper);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-hero {
	border-color: var(--core-line);
	background: linear-gradient(135deg, #ffffff 0%, #eef6fd 100%);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-hero-glow { background: radial-gradient(circle, rgba(0, 103, 178, 0.1) 0%, transparent 70%); }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-sap-badge {
	border-color: #9fc4e2;
	background: #eef6fd;
	color: #075f9f;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-sap-badge::before { background: var(--core-blue); }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-action-bar {
	border-color: var(--core-line);
	background: #f8fafc;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-ghost {
	border-color: #9fc4e2;
	background: var(--core-paper);
	color: var(--core-blue-2);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-ghost:hover {
	border-color: var(--core-blue);
	background: #eef6fd;
	color: var(--core-blue);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-success {
	border-color: #a6d8b7;
	background: #e8f7ed;
	color: #176b3a;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-success:hover { background: #d8f0e0; }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-danger {
	border-color: #f1aeb5;
	background: var(--core-paper);
	color: #a1102b;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-danger:hover { background: #fff1f3; }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-report {
	border-color: #9fc4e2;
	background: #eef6fd;
	color: #075f9f;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-btn-report:hover {
	background: #dbeeff;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-tabs {
	border-color: var(--core-line);
	background: var(--core-paper);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-tab {
	color: #344054;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-tab:hover,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-tab.is-active {
	color: #075f9f;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-tab.is-active { border-bottom-color: var(--core-blue); }

:root[data-theme="light"] .dashboard-page.core-light-page .ot-tab-body {
	background: var(--core-paper);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-card {
	border-color: var(--core-line);
	background: #f8fafc;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-info-rows > div {
	border-color: #d8e2ec;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-attachment-thumb,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-card .maintenance-checklist li,
:root[data-theme="light"] .dashboard-page.core-light-page .ot-card .maintenance-checklist li small {
	border-color: #d8e2ec;
	background: var(--core-paper);
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-attachment-thumb:hover {
	border-color: var(--core-blue);
	background: #eef6fd;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-card .maintenance-checklist li::before {
	background: var(--core-blue);
	color: #ffffff;
}

:root[data-theme="light"] .dashboard-page.core-light-page .ot-card .maintenance-checklist li span {
	color: #075f9f;
	opacity: 1;
}

/* Technician PWA: bridge its legacy tokens to the Core palette in light theme only. */
:root[data-theme="light"] .tecnico-body {
	--bg: #edf2f7;
	--bg-soft: #f8fafc;
	--card: #ffffff;
	--card-strong: #eef6fd;
	--line: #c8d5e3;
	--line-strong: #9fc4e2;
	--text: #101828;
	--muted: #475467;
	--muted-strong: #344054;
	--primary: #0067b2;
	--primary-strong: #004d80;
	--accent: #075f9f;
	--success: #176b3a;
	--danger: #b42318;
	--warning: #7a4d00;
	color-scheme: light;
}

:root[data-theme="light"] .tecnico-body .ghost-button {
	background: #ffffff;
	color: var(--text);
}

:root[data-theme="light"] .tecnico-body .tecnico-photo-thumb {
	background: var(--bg-soft);
}

:root[data-theme="light"] .tecnico-body .tecnico-status { background: #eef6fd; color: #075f9f; }
:root[data-theme="light"] .tecnico-body .tecnico-status-completed { background: #e8f7ed; color: #176b3a; }
:root[data-theme="light"] .tecnico-body .tecnico-status-cancelled { background: #fff1f3; color: #a1102b; }

/* Technician dashboard — Continuity view. */
.technician-dashboard-controls {
	display: flex; align-items: center; justify-content: flex-end; gap: 12px;
	padding: 14px 8px 0; color: var(--core-ink);
}
.technician-dashboard-controls[hidden] { display: none; }
.technician-dashboard-controls label { font-size: 14px; font-weight: 800; }
.technician-dashboard-controls select {
	min-width: 220px; padding: 10px 36px 10px 12px; border: 1px solid var(--core-line);
	border-radius: 10px; background: var(--core-paper); color: var(--core-ink); font: inherit;
}
.technician-dashboard-controls span { min-width: 210px; color: var(--core-muted); font-size: 13px; }

.technician-continuity { display: grid; gap: 34px; padding: 18px 8px 40px; color: var(--core-ink); }

.technician-continuity[hidden] { display: none; }

.continuity-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

.continuity-heading p { margin: 0 0 6px; font: 900 30px/1.2 "Roboto Slab", "Roboto", Georgia, serif; }

.continuity-heading h1,
.continuity-heading time { margin: 0; color: var(--core-muted); font-size: 16px; font-weight: 400; }

.technician-continuity .eyebrow { margin-bottom: 12px; }

.continuity-current { display: grid; grid-template-columns: minmax(170px, .9fr) repeat(3, minmax(170px, 1fr)); gap: 0; padding: 26px 24px 20px; border: 1px solid var(--core-line); border-left: 4px solid var(--core-blue); background: var(--core-paper); box-shadow: 0 10px 24px rgba(16, 24, 40, .06); }

.continuity-current > div { min-width: 0; padding: 0 24px; border-left: 1px solid var(--core-line); }

.continuity-current > div:first-child { padding-left: 0; border-left: 0; }
.continuity-current span, .continuity-current small, .continuity-row small { display: block; color: var(--core-muted); }
.continuity-current strong { display: block; margin: 16px 0 6px; }
.continuity-current h2 { margin: 12px 0 6px; color: var(--core-blue-2); font-size: 18px; }
.continuity-current .continuity-status { display: inline-block; padding: 4px 8px; background: #eef6fd; color: var(--core-blue-2); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.continuity-current > .primary-button { grid-column: -2 / -1; margin-top: 22px; text-decoration: none; }

.continuity-progress { height: 7px; margin: 16px 42px 0 0; overflow: hidden; border-radius: 99px; background: var(--core-soft); }
.continuity-progress span { height: 100%; background: var(--core-blue); }
.continuity-current b { float: right; margin-top: -14px; color: var(--core-blue-2); }

.continuity-list { border-top: 1px solid var(--core-line); background: var(--core-paper); }
.continuity-row { display: grid; grid-template-columns: .8fr 1fr 1.25fr .9fr; gap: 24px; padding: 18px; border-bottom: 1px solid var(--core-line); color: var(--core-ink); text-decoration: none; }
.continuity-row:hover { background: color-mix(in srgb, var(--core-blue) 5%, var(--core-paper)); } .continuity-row > span { min-width: 0; }
.continuity-row strong { display: block; margin-bottom: 5px; }
.continuity-row > span:first-child strong { color: var(--core-blue-2); }
.continuity-all { display: inline-block; margin: 20px 14px 0; color: var(--core-blue-2); font-weight: 700; text-decoration: none; }

.technician-continuity-state { padding: 28px; border: 1px dashed var(--core-line); background: var(--core-paper); color: var(--core-muted); text-align: center; }
.technician-continuity-state.is-error { border-color: #f0b4ae; color: #b42318; }

@media (max-width: 900px) { .continuity-current { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } .continuity-current > div:nth-child(3) { border-left: 0; padding-left: 0; } .continuity-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 640px) {
	.technician-dashboard-controls { align-items: stretch; flex-direction: column; }
	.technician-dashboard-controls select { width: 100%; min-width: 0; }
	.technician-dashboard-controls span { min-width: 0; }
	.continuity-heading { flex-direction: column; gap: 8px; }
	.continuity-current, .continuity-row { grid-template-columns: minmax(0, 1fr); }
	.continuity-current > div { padding: 16px 0; border-top: 1px solid var(--core-line); border-left: 0; }
	.continuity-current > div:first-child { padding-top: 0; border-top: 0; }
	.continuity-current > .primary-button { grid-column: auto; }
}

/* Technician dashboard — Priority queue and day timeline. */
.technician-priority-list { border: 1px solid var(--core-line); background: var(--core-paper); }
.technician-priority-row { display: grid; grid-template-columns: .8fr 1.1fr 1.2fr .75fr auto; gap: 20px; align-items: center; padding: 20px; border-bottom: 1px solid var(--core-line); color: var(--core-ink); text-decoration: none; }
.technician-priority-row:last-child { border-bottom: 0; }
.technician-priority-row:hover, .technician-priority-row.is-first { background: color-mix(in srgb, var(--core-blue) 6%, var(--core-paper)); }
.technician-priority-row span { min-width: 0; }
.technician-priority-row strong, .technician-priority-row small { display: block; }
.technician-priority-row small { margin-top: 5px; color: var(--core-muted); }
.technician-priority-row b { padding: 10px 14px; border: 1px solid var(--core-blue); color: var(--core-blue-2); text-align: center; }

.technician-timeline { position: relative; padding: 20px 24px; border: 1px solid var(--core-line); background: var(--core-paper); }
.technician-timeline-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 92px; margin-left: 12px; padding: 14px 12px 14px 28px; border-left: 2px solid var(--core-line); border-bottom: 1px solid var(--core-line); color: var(--core-ink); text-decoration: none; }
.technician-timeline-row:last-child { border-bottom: 0; }
.technician-timeline-row:hover { background: color-mix(in srgb, var(--core-blue) 5%, var(--core-paper)); }
.technician-timeline-row time, .technician-timeline-row b { color: var(--core-blue-2); }
.technician-timeline-row strong, .technician-timeline-row small { display: block; }
.technician-timeline-row small { margin-top: 7px; color: var(--core-muted); }

@media (max-width: 900px) { .technician-priority-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.technician-priority-row, .technician-timeline-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.technician-timeline-row { padding-left: 28px; }
}

/* ---------------------------------------------------------------------- */
/* Sidebar rail (T1): approved navy skin for the shared staff sidebar.     */
/* The navy surface is theme-independent; the main content keeps its own   */
/* Core light/dark theme. Later position wins same-specificity theme       */
/* rules on purpose, so hover/current affordances stay visible on navy.    */
/* ---------------------------------------------------------------------- */

.dashboard-page .dashboard-sidebar .sidebar-nav a {
	border-radius: 7px;
	color: #dbe5ee;
}

.dashboard-page .dashboard-sidebar .sidebar-nav a::before {
	background: rgba(255, 255, 255, 0.1);
	color: #cfe3f7;
}

.dashboard-page .dashboard-sidebar .sidebar-nav a:hover,
.dashboard-page .dashboard-sidebar .sidebar-nav a[aria-current="page"] {
	border-color: rgba(255, 255, 255, 0.24);
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.dashboard-page .dashboard-sidebar .sidebar-nav a[aria-current="page"] {
	box-shadow: inset 3px 0 0 0 var(--core-blue-2);
}

.dashboard-page .dashboard-sidebar .sidebar-brand,
.dashboard-page .dashboard-sidebar .sidebar-user {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
}

/* Account controls: light chips on navy keep >=4.5:1 contrast in both themes. */
.dashboard-page .dashboard-sidebar .sidebar-account-link,
.dashboard-page .dashboard-sidebar .sidebar-user .ghost-button {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.92);
	color: #14304f;
}

.dashboard-page .dashboard-sidebar .sidebar-account-link:hover,
.dashboard-page .dashboard-sidebar .sidebar-account-link[aria-current="page"],
.dashboard-page .dashboard-sidebar .sidebar-user .ghost-button:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: #ffffff;
	color: #14304f;
}

.dashboard-page .dashboard-sidebar .sidebar-toggle {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.08);
	color: #eaf0f6;
}

.dashboard-page .dashboard-sidebar .sidebar-toggle:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

/* Interaction targets stay >=44px on every staff sidebar, including the
   compact maintenance overrides. */
.dashboard-page .dashboard-sidebar .sidebar-nav a {
	min-height: 44px;
}

.dashboard-page .dashboard-sidebar .sidebar-account-link,
.dashboard-page .dashboard-sidebar .sidebar-user .ghost-button {
	min-height: 44px;
}

/* Permission-gated links must never be revived by the rail overrides. */
.dashboard-page .dashboard-sidebar .sidebar-nav a[hidden],
.dashboard-shell[data-ready="false"] .dashboard-sidebar .sidebar-nav a[data-permission] {
	display: none;
}

/* Desktop collapsed rail: 72px icon rail that keeps navigation, account and
   logout usable. Labels stay in the accessibility tree; only their rendering
   collapses (font-size: 0). Mobile <=900px keeps its pre-T2 behavior. */
@media (min-width: 901px) {
	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .dashboard-sidebar {
		align-items: center;
		padding-right: 10px;
		padding-left: 10px;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-brand {
		flex-direction: column;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-nav {
		display: grid;
		justify-items: center;
		padding-right: 0;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-nav::before {
		display: none;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-nav a {
		justify-content: center;
		gap: 0;
		width: 44px;
		min-width: 44px;
		padding: 10px 0;
		overflow: hidden;
		white-space: nowrap;
		font-size: 0;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-nav a::before {
		width: 26px;
		height: 26px;
		font-size: 15px;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 10px 0;
		border-color: transparent;
		background: transparent;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user > div {
		display: none;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-account-link,
	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user .ghost-button {
		justify-content: center;
		width: 44px;
		min-width: 44px;
		padding: 8px 0;
		font-size: 0;
	}

	/* Decorative glyphs contribute no accessible name (content alt ""). */
	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-account-link::before {
		content: "👤" / "";
		font-size: 18px;
	}

	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] .sidebar-user .ghost-button::before {
		content: "🚪" / "";
		font-size: 18px;
	}
}

/* --- Mobile modal drawer (<=900px) ---------------------------------------
   Appended last on purpose: the drawer rules must win the cascade over the
   shared shell rules and the T1 desktop rail block without touching any
   >900px behavior. The drawer state attribute (`data-sidebar-drawer`) is
   independent from the desktop collapsed-rail preference
   (`data-sidebar-collapsed`). ---------------------------------------------------------------- */

.sidebar-menu-toggle,
.sidebar-backdrop {
	display: none;
}

body[data-sidebar-drawer-open="true"] {
	overflow: hidden;
}

@media (max-width: 900px) {
	/* The page-enter keyframe animates transform, which would make the shell
	   the containing block for the fixed drawer; disable it on mobile. */
	.dashboard-page .dashboard-shell[data-ready="true"] {
		animation: none;
	}

	/* The drawer overlays the page, so the frame is single-column regardless
	   of the desktop collapsed-rail preference. */
	.dashboard-page .dashboard-frame,
	.dashboard-page .dashboard-frame[data-sidebar-collapsed="true"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page .sidebar-menu-toggle {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: 12px;
		background: rgba(255, 255, 255, 0.06);
		color: var(--text);
		font-size: 20px;
		cursor: pointer;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer] .dashboard-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 70;
		width: min(320px, 88vw);
		max-height: none;
		min-height: 0;
		overflow-y: auto;
		border-top: 0;
		border-right: 0;
		border-bottom: 0;
		border-radius: 0 24px 24px 0;
		transform: translateX(-105%);
		visibility: hidden;
		transition:
			transform 200ms ease,
			visibility 0s linear 200ms;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer="open"] .dashboard-sidebar {
		transform: translateX(0);
		visibility: visible;
		box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
		transition: transform 200ms ease;
	}

	/* The drawer always shows the full navigation: the collapsed-rail state is
	   a desktop preference and must never empty the modal drawer. */
	.dashboard-page .dashboard-frame[data-sidebar-drawer] .sidebar-brand-copy {
		display: block;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer] .sidebar-product {
		display: block;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer] .sidebar-nav {
		display: grid;
		grid-template-columns: 1fr;
		max-height: none;
		overflow: visible;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer] .sidebar-user {
		display: flex;
		align-items: center;
		flex-direction: row;
		justify-content: space-between;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer] .sidebar-toggle {
		margin-left: 0;
		transform: none;
	}

	.dashboard-page .sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 60;
		background: rgba(4, 12, 24, 0.55);
		opacity: 0;
		pointer-events: none;
		transition: opacity 200ms ease;
	}

	.dashboard-page .dashboard-frame[data-sidebar-drawer="open"] .sidebar-backdrop {
		opacity: 1;
		pointer-events: auto;
	}
}

/* --- Sidebar tooltips (desktop) ------------------------------------------
   Clamped hover/focus tooltips for the sidebar navigation (T3). The single
   tooltip element lives on document.body, is fixed-positioned by the binder
   through inline left/top, and must never intercept pointers or focus. The
   navy surface matches the approved sidebar skin and stays readable over
   both Core themes. ---------------------------------------------------------------- */

.sidebar-tooltip {
	position: fixed;
	z-index: 90;
	max-width: min(260px, calc(100vw - 16px));
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 10px;
	background: #14304f;
	color: #eaf0f6;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 120ms ease,
		visibility 0s linear 120ms;
}

.sidebar-tooltip.is-visible {
	visibility: visible;
	opacity: 1;
	transition: opacity 120ms ease;
}

/* ---------------------------------------------------------------------------
 * Asset report page (reporte-activos.html) — light shell integration
 * ------------------------------------------------------------------------- */

.dashboard-page .column-picker {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1.1rem;
	background: var(--core-paper);
	border: 1px solid var(--core-line);
	border-radius: 14px;
	padding: 0.65rem 1rem;
	margin: 14px 0 20px;
}

.dashboard-page .column-picker legend {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--core-muted);
	padding-right: 0.5rem;
}

.dashboard-page .column-picker label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.82rem;
	color: var(--core-ink);
	cursor: pointer;
	user-select: none;
}

.dashboard-page .report-header {
	border-bottom: 2px solid var(--core-line);
	padding-bottom: 1.1rem;
	margin: 4px 0 1.4rem;
}

.dashboard-page .report-header h2 {
	margin: 0;
	font-size: clamp(19px, 2vw, 24px);
	letter-spacing: -0.03em;
}

.dashboard-page .report-meta {
	display: flex;
	gap: 1.25rem;
	margin-top: 0.5rem;
	color: var(--core-muted);
	font-size: 0.82rem;
}

.dashboard-page .summary-bar {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1.4rem;
}

.dashboard-page .summary-bar > div {
	background: var(--core-paper);
	border: 1px solid var(--core-line);
	border-radius: 14px;
	padding: 0.6rem 1rem;
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.dashboard-page .summary-bar span {
	font-size: 0.75rem;
	color: var(--core-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.dashboard-page .summary-bar strong {
	font-size: 1.1rem;
	color: var(--core-ink);
}

.dashboard-page .country-group {
	margin-bottom: 1.6rem;
}

.dashboard-page .country-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0.9rem;
	border-radius: 12px 12px 0 0;
	background: #dbeeff;
	color: #075f9f;
}

.dashboard-page .country-name {
	font-weight: 700;
}

.dashboard-page .country-count {
	font-size: 0.8rem;
}

.dashboard-page .customer-group {
	margin: 0.9rem 1rem 1.4rem;
}

.dashboard-page .customer-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--core-line);
	margin-bottom: 0.5rem;
}

.dashboard-page .customer-count {
	font-size: 0.8rem;
	color: var(--core-muted);
}

.dashboard-page .assets-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.85rem;
}

.dashboard-page .assets-table th {
	text-align: left;
	padding: 0.45rem 0.6rem;
	background: #eef2f7;
	color: #344054;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-bottom: 1px solid var(--core-line);
}

.dashboard-page .assets-table td {
	padding: 0.42rem 0.6rem;
	border-bottom: 1px solid var(--core-line);
	color: var(--core-ink);
	overflow-wrap: break-word;
}

.dashboard-page .assets-table .asset-code {
	font-weight: 600;
}

.dashboard-page .report-loading,
.dashboard-page .report-empty {
	background: var(--core-paper);
	border: 1px solid var(--core-line);
	border-radius: 14px;
	padding: 1.4rem;
	color: var(--core-muted);
}

@media print {
	.dashboard-page .dashboard-sidebar,
	.dashboard-page .page-topbar,
	.dashboard-page .dashboard-main-header .dashboard-header-actions,
	.dashboard-page .column-picker,
	.dashboard-page .banner {
		display: none !important;
	}

	.dashboard-page .dashboard-frame {
		grid-template-columns: minmax(0, 1fr);
	}

	.dashboard-page {
		background: #fff;
	}

	.dashboard-page .country-group,
	.dashboard-page .customer-group {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}
