/* Portal do prestador SESMT Santa Casa
   Paleta inspirada na sinalização de segurança (ISO 7010):
   verde = condição segura, âmbar = cautela, vermelho = bloqueio, azul = ação obrigatória.
   Sem fotos de perfil e sem faixas/bordas laterais coloridas nos cards. */

@font-face {
	font-family: "Atkinson Hyperlegible Next";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("/assets/scv_prestadores/fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Semi Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/assets/scv_prestadores/fonts/barlow-semi-condensed-600-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Barlow Semi Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/scv_prestadores/fonts/barlow-semi-condensed-700-latin.woff2") format("woff2");
}

:root {
	--st-paper: #edf1f0;
	--st-white: #ffffff;
	--st-ink: #162532;
	--st-ink-2: #53616b;
	--st-ink-3: #77848c;
	--st-line: #d2dad8;
	--st-line-soft: #e3e8e7;
	--st-hover: #f4f7f6;

	--st-blue: #1c4e8f;
	--st-blue-dark: #143b6d;
	--st-blue-soft: #e6eef8;

	--st-green: #0d7a4e;
	--st-green-dark: #0a6340;
	--st-green-soft: #e3f2ea;

	--st-amber: #a86a0b;
	--st-amber-key: #e9a426;
	--st-amber-soft: #fbf0d9;

	--st-red: #b3261e;
	--st-red-dark: #8f1d17;
	--st-red-soft: #fbe8e6;

	--st-font-body: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;
	--st-font-display: "Barlow Semi Condensed", "Arial Narrow", "Segoe UI", system-ui, sans-serif;

	--st-r-sm: 4px;
	--st-r-md: 6px;
	--st-r-lg: 10px;
}

/* ---------- Página e reset do tema Frappe ---------- */

body.scv-portal-page {
	margin: 0;
	background: var(--st-paper);
	color: var(--st-ink);
	font-family: var(--st-font-body);
	-webkit-font-smoothing: antialiased;
}

body.scv-portal-page .navbar,
body.scv-portal-page .web-footer,
body.scv-portal-page .page-breadcrumbs,
body.scv-portal-page .page-header-wrapper,
body.scv-portal-page .page-footer {
	display: none !important;
}

body.scv-portal-page .page-content-wrapper,
body.scv-portal-page .page_content,
body.scv-portal-page main.container-fluid,
body.scv-portal-page main.container {
	margin: 0;
	padding: 0;
	max-width: none;
	width: 100%;
}

.scv-app,
.scv-app *,
.scv-dialog,
.scv-dialog * {
	box-sizing: border-box;
}

.scv-app [hidden] {
	display: none !important;
}

.scv-app :focus-visible,
.scv-dialog :focus-visible {
	outline: 3px solid var(--st-blue);
	outline-offset: 2px;
	border-radius: var(--st-r-sm);
}

.scv-app h1,
.scv-app h2,
.scv-app h3,
.scv-app p,
.scv-dialog h2,
.scv-dialog p {
	margin: 0;
}

.scv-app button,
.scv-dialog button {
	font: inherit;
	color: inherit;
}

.st-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;
}

.scv-ico {
	width: 18px;
	height: 18px;
	flex: none;
}

.scv-ico-sm {
	width: 16px;
	height: 16px;
	flex: none;
}

.scv-ico-xs {
	width: 14px;
	height: 14px;
	flex: none;
}

.scv-app {
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--st-paper);
	color: var(--st-ink);
	font-family: var(--st-font-body);
	font-size: 15px;
	line-height: 1.5;
}

.st-muted {
	color: var(--st-ink-2);
	font-size: 13.5px;
}

/* ---------- Cabeçalho ---------- */

.st-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--st-white);
	border-bottom: 1px solid var(--st-line);
}

.st-header-inner {
	max-width: 1180px;
	margin: 0 auto;
	height: 64px;
	padding: 0 24px;
	display: flex;
	align-items: stretch;
	gap: 32px;
}

.st-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: none;
}

.st-brand-mark {
	width: 36px;
	height: 36px;
	padding: 3px;
	border: 0;
	border-radius: var(--st-r-md);
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
	transition: background 120ms ease;
}

.st-brand-mark:hover {
	background: var(--st-hover);
}

.st-brand-mark img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	display: block;
}

/* Login / auth pages logo sizing (Frappe web_include_css) */
.page-card-head img.app-logo {
	max-height: 44px;
	width: auto;
	object-fit: contain;
}

.scv-notif-menu {
	position: relative;
}

.scv-notif-menu summary {
	position: relative;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-md);
	background: var(--st-white);
	color: var(--st-ink);
	list-style: none;
	cursor: pointer;
}

.scv-notif-menu summary::-webkit-details-marker {
	display: none;
}

.scv-notif-menu summary:hover,
.scv-notif-menu[open] summary {
	background: var(--st-hover);
	border-color: var(--st-ink-3);
}

.st-notif-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	border: 2px solid var(--st-white);
	background: var(--st-ink);
	color: var(--st-white);
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	text-align: center;
}

.st-notif-badge.is-alert {
	background: var(--st-red);
}

.scv-notif-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	width: min(360px, calc(100vw - 28px));
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-lg);
	box-shadow: 0 18px 40px -12px rgba(22, 37, 50, 0.28);
	overflow: hidden;
}

.scv-notif-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--st-line-soft);
}

.scv-notif-head strong {
	font-size: 14.5px;
	color: var(--st-ink);
}

.scv-notif-head span {
	font-size: 12.5px;
	color: var(--st-ink-2);
}

.scv-notif-list {
	display: flex;
	flex-direction: column;
	max-height: 360px;
	overflow-y: auto;
	padding: 6px;
	gap: 2px;
}

.scv-notif-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: var(--st-r-md);
	background: transparent;
	text-align: left;
	cursor: pointer;
}

.scv-notif-item:hover {
	background: var(--st-hover);
}

.scv-notif-mark {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex: none;
	margin-top: 1px;
	color: var(--st-white);
}

.scv-notif-mark.is-ready {
	background: var(--st-green);
}

.scv-notif-mark.is-amber {
	background: var(--st-amber-key);
	color: var(--st-ink);
}

.scv-notif-mark.is-error {
	background: var(--st-red);
}

.scv-notif-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.scv-notif-body strong {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--st-ink);
	line-height: 1.3;
}

.scv-notif-body span {
	font-size: 12.5px;
	color: var(--st-ink-2);
	line-height: 1.35;
}

.scv-notif-empty {
	padding: 16px 12px;
	font-size: 13.5px;
	color: var(--st-ink-2);
	text-align: center;
}

/* Título da seção: só aparece no celular, onde as abas somem */
.st-brand-page {
	display: none;
	font-family: var(--st-font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--st-ink);
}

.st-top-tabs {
	display: flex;
	align-items: stretch;
	gap: 4px;
	flex: 1;
}

.st-top-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 14px;
	border: 0;
	background: transparent;
	color: var(--st-ink-2);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.st-top-tab::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: transparent;
}

.st-top-tab:hover {
	color: var(--st-ink);
}

.st-top-tab.is-active {
	color: var(--st-ink);
	font-weight: 700;
}

.st-top-tab.is-active::after {
	background: var(--st-blue);
}

.st-tab-count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--st-paper);
	color: var(--st-ink-2);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	line-height: 1.5;
}

.st-tab-count.is-alert {
	background: var(--st-red);
	color: var(--st-white);
}

.st-header-right {
	display: flex;
	align-items: center;
	flex: none;
	margin-left: auto;
}

.scv-company-menu {
	position: relative;
}

.scv-company-menu summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 12px;
	border: 1px solid var(--st-line);
	border-radius: 999px;
	list-style: none;
	cursor: pointer;
}

.scv-company-menu summary::-webkit-details-marker {
	display: none;
}

.scv-company-menu summary:hover,
.scv-company-menu[open] summary {
	background: var(--st-hover);
}

.st-account-name {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 500;
}

.st-user-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--st-ink);
	color: var(--st-white);
	display: grid;
	place-items: center;
}

.scv-company-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 60;
	width: 280px;
	padding: 6px;
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-lg);
	box-shadow: 0 18px 40px -12px rgba(22, 37, 50, 0.28);
}

.scv-dropdown-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 10px 12px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--st-line-soft);
}

.scv-dropdown-head strong {
	font-size: 14px;
}

.scv-dropdown-head span {
	font-size: 12.5px;
	color: var(--st-ink-2);
	overflow-wrap: anywhere;
}

.scv-company-dropdown button {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border: 0;
	border-radius: var(--st-r-md);
	background: transparent;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.scv-company-dropdown button:hover {
	background: var(--st-hover);
}

.scv-company-dropdown .scv-logout-action {
	color: var(--st-red);
}

/* ---------- Estrutura das telas ---------- */

.st-main {
	width: 100%;
	max-width: 1180px;
	min-width: 0;
	margin: 0 auto;
	padding: 28px 24px 72px;
}

.st-view {
	display: none;
	min-width: 0;
	max-width: 100%;
}

.scv-app[data-active-view="inicio"] [data-view-panel="inicio"],
.scv-app[data-active-view="equipe"] [data-view-panel="equipe"],
.scv-app[data-active-view="documentos"] [data-view-panel="documentos"],
.scv-app[data-active-view="responsavel"] [data-view-panel="responsavel"] {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.st-page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 4px;
}

.st-page-head h1 {
	font-family: var(--st-font-display);
	font-size: 40px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.01em;
}

.st-page-sub {
	margin-top: 8px !important;
	max-width: 66ch;
	color: var(--st-ink-2);
}

.st-panel {
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-lg);
	padding: 20px 22px;
}

.st-panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 14px;
}

.st-panel-head h2 {
	font-family: var(--st-font-body);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.25;
}

.st-panel-quiet {
	background: transparent;
	border-style: dashed;
}

.st-quiet-title {
	font-size: 15px !important;
	font-weight: 700;
	margin-bottom: 2px !important;
}

/* ---------- Botões ---------- */

.st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--st-r-md);
	background: transparent;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 120ms ease, border-color 120ms ease;
}

.st-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

.st-btn-sm {
	min-height: 36px;
	padding: 0 14px;
	font-size: 14px;
}

.st-btn-primary {
	background: var(--st-blue);
	color: var(--st-white) !important;
}

.st-btn-primary:hover {
	background: var(--st-blue-dark);
}

.st-btn-outline {
	background: var(--st-white);
	border-color: var(--st-line);
	color: var(--st-ink) !important;
}

.st-btn-outline:hover {
	border-color: var(--st-ink-3);
}

.st-btn-quiet {
	color: var(--st-ink-2) !important;
}

.st-btn-quiet:hover {
	background: var(--st-hover);
	color: var(--st-ink) !important;
}

.st-btn-error {
	background: var(--st-red);
	color: var(--st-white) !important;
}

.st-btn-error:hover {
	background: var(--st-red-dark);
}

.st-btn-danger-outline {
	background: var(--st-white);
	border-color: #e6b4b0;
	color: var(--st-red) !important;
}

.st-btn-danger-outline:hover {
	background: var(--st-red-soft);
}

.st-link-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--st-blue) !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.st-link-btn:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Visão geral: resumo discreto com etiqueta ---------- */

.st-verdict {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	padding: 20px 22px;
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-lg);
	color: var(--st-ink);
}

.st-verdict-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.st-verdict-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.scv-app .st-verdict-company-name {
	margin: 0 !important;
	color: var(--st-ink);
	font-family: var(--st-font-body);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
}

.st-verdict-tag {
	font-size: 13px;
	padding: 3px 10px 3px 8px;
}

.st-verdict-sub {
	margin-top: 4px !important;
	font-size: 13.5px;
	color: var(--st-ink-2);
}

.st-verdict-text {
	margin-top: 8px !important;
	max-width: 58ch;
	font-size: 14px;
	line-height: 1.45;
	color: var(--st-ink-2);
}

.st-verdict-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.st-verdict-side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding-left: 24px;
	border-left: 1px solid var(--st-line-soft);
}

.st-verdict-count {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.st-verdict-count strong {
	font-family: var(--st-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--st-ink);
}

.st-verdict-count span {
	font-size: 13.5px;
	color: var(--st-ink-2);
}

/* Cada bloco é uma exigência: verde = aprovado, âmbar = em análise, contorno vermelho = falta */
.st-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.st-tile {
	width: 22px;
	height: 10px;
	border-radius: 2px;
	flex: none;
	animation: st-tile-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(80ms + var(--i, 0) * 40ms);
}

.st-tile.is-approved {
	background: var(--st-green);
}

.st-tile.is-review {
	background: var(--st-amber-key);
}

.st-tile.is-attention {
	background: var(--st-red-soft);
	box-shadow: inset 0 0 0 1.5px var(--st-red);
}

@keyframes st-tile-in {
	from {
		opacity: 0;
		transform: translateY(3px) scale(0.9);
	}
}

.st-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.st-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--st-ink-2) !important;
	font-size: 13px;
	cursor: pointer;
}

.st-legend-item:hover span:last-child {
	color: var(--st-ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.st-legend-item b {
	font-weight: 700;
	color: var(--st-ink);
}

.st-legend-key {
	width: 10px;
	height: 10px;
	border-radius: 2px;
	flex: none;
}

.st-legend-key.is-approved {
	background: var(--st-green);
}

.st-legend-key.is-review {
	background: var(--st-amber-key);
}

.st-legend-key.is-attention {
	background: var(--st-red-soft);
	box-shadow: inset 0 0 0 1.5px var(--st-red);
}

/* ---------- Visão geral: movimentações e lateral ---------- */

.st-overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
	align-items: start;
}

.st-side-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.st-side-stack .st-panel {
	padding: 18px 20px;
}

.st-side-stack .st-panel-head {
	margin-bottom: 8px;
}

.st-side-stack .st-panel-head h2 {
	font-family: var(--st-font-body);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.25;
}

.st-feed-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-feed-item {
	position: relative;
	display: grid;
	grid-template-columns: 84px 22px minmax(0, 1fr);
	gap: 0 14px;
	padding-bottom: 14px;
}

.st-feed-item:last-child {
	padding-bottom: 0;
}

/* Linha do tempo: as movimentações são uma sequência por data */
.st-feed-item:not(:last-child)::before {
	content: "";
	position: absolute;
	left: calc(84px + 14px + 10px);
	top: 24px;
	bottom: 2px;
	width: 2px;
	background: var(--st-line-soft);
}

.st-feed-date {
	padding-top: 2px;
	font-size: 13px;
	color: var(--st-ink-2);
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.st-feed-mark {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--st-white);
}

.st-feed-mark.is-ready {
	background: var(--st-green);
}

.st-feed-mark.is-amber {
	background: var(--st-amber-key);
	color: var(--st-ink);
}

.st-feed-mark.is-error {
	background: var(--st-red);
}

.st-feed-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.st-feed-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.st-feed-tag {
	font-size: 13px;
	font-weight: 700;
}

.st-feed-tag.is-ready {
	color: var(--st-green);
}

.st-feed-tag.is-amber {
	color: var(--st-amber);
}

.st-feed-tag.is-error {
	color: var(--st-red);
}

.st-feed-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.st-feed-holder {
	font-size: 14px;
	color: var(--st-ink-2);
}

.st-feed-note,
.st-feed-opinion {
	margin-top: 2px !important;
	font-size: 13.5px;
	color: var(--st-ink-2);
}

.st-feed-opinion {
	color: var(--st-red);
}

.st-resp-name {
	font-size: 16px;
	font-weight: 700;
}

.st-status-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 2px !important;
	font-size: 13.5px;
	font-weight: 700;
}

.st-status-line.is-ready {
	color: var(--st-green);
}

.st-status-line.is-amber {
	color: var(--st-amber);
}

.st-status-line.is-error {
	color: var(--st-red);
}

.st-contact-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--st-line-soft);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.st-contact-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	min-width: 0;
}

.st-contact-list li .scv-ico-sm {
	color: var(--st-ink-3);
}

.st-contact-list li span {
	overflow-wrap: anywhere;
}

.st-side-figure {
	font-size: 15px;
	color: var(--st-ink-2);
}

.st-side-figure strong {
	font-family: var(--st-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	color: var(--st-ink);
	margin-right: 2px;
}

.st-panel-quiet .st-link-btn {
	margin-top: 6px;
}

.st-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	color: var(--st-ink-2);
}

/* ---------- Busca, filtros e chips ---------- */

.st-toolbar-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	max-width: 100%;
}

.st-search-row {
	display: flex;
	gap: 10px;
	min-width: 0;
}

.st-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	max-width: 100%;
}

.st-input-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	margin: 0;
}

.st-input-icon-wrap > .scv-ico {
	position: absolute;
	left: 14px;
	color: var(--st-ink-3);
	pointer-events: none;
}

.st-input-icon-wrap input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-md);
	background: var(--st-white);
	color: var(--st-ink);
	font: inherit;
	font-size: 15px;
}

.st-input-icon-wrap input::placeholder {
	color: var(--st-ink-3);
}

.st-input-icon-wrap input:focus,
.st-person-select:focus,
.st-field input:focus,
.scv-field-grid input:focus {
	outline: none;
	border-color: var(--st-blue);
	box-shadow: 0 0 0 3px rgba(28, 78, 143, 0.18);
}

.st-person-select {
	width: 260px;
	height: 46px;
	padding: 0 12px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-md);
	background: var(--st-white);
	color: var(--st-ink);
	font: inherit;
	font-size: 15px;
}

.st-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
}

.st-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 13px;
	border: 1px solid var(--st-line);
	border-radius: 999px;
	background: var(--st-white);
	color: var(--st-ink-2) !important;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.st-chip b {
	font-weight: 700;
	color: var(--st-ink);
	font-variant-numeric: tabular-nums;
}

.st-chip:hover {
	border-color: var(--st-ink-3);
}

.st-chip.is-active {
	background: var(--st-ink);
	border-color: var(--st-ink);
	color: var(--st-white) !important;
}

.st-chip.is-active b {
	color: var(--st-white);
}

.st-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
}

.st-dot.is-ready {
	background: var(--st-green);
}

.st-dot.is-amber {
	background: var(--st-amber-key);
}

.st-dot.is-error {
	background: var(--st-red);
}

.st-dot.is-error-ring {
	background: transparent;
	box-shadow: inset 0 0 0 2px var(--st-red);
}

.st-dot.is-neutral {
	background: var(--st-ink-3);
}

.st-seg-tabs {
	display: inline-flex;
	padding: 3px;
	border-radius: var(--st-r-md);
	background: #e0e6e5;
	min-width: 0;
	max-width: 100%;
}

.st-seg-btn {
	height: 32px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--st-r-sm);
	background: transparent;
	color: var(--st-ink-2) !important;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.st-seg-btn:hover {
	color: var(--st-ink) !important;
}

.st-seg-btn.is-active {
	background: var(--st-white);
	color: var(--st-ink) !important;
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(22, 37, 50, 0.12);
}

/* ---------- Status ---------- */

.st-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px 3px 8px;
	border-radius: var(--st-r-sm);
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
}

.st-status.is-ready {
	background: var(--st-green-soft);
	color: var(--st-green-dark);
}

.st-status.is-amber {
	background: var(--st-amber-soft);
	color: #7a4c06;
}

.st-status.is-error {
	background: var(--st-red-soft);
	color: var(--st-red-dark);
}

.st-status.is-neutral {
	background: var(--st-paper);
	color: var(--st-ink-2);
	padding-left: 10px;
}

/* ---------- Listas em linhas (equipe e documentos) ---------- */

.st-list {
	background: var(--st-white);
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-lg);
	overflow: hidden;
}

.st-row {
	display: grid;
	gap: 8px 24px;
	padding: 18px 22px;
	border-top: 1px solid var(--st-line-soft);
}

.st-list > .st-row:first-child,
.st-list > .st-row[hidden] + .st-row:not([hidden]):first-of-type {
	border-top: 0;
}

/* Equipe */
.st-emp-card {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, 1.4fr) auto;
	align-items: start;
}

.st-emp-id h3 {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.st-emp-fn {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	color: var(--st-ink-2);
}

.st-emp-act {
	color: var(--st-ink-3);
}

.st-emp-state {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.st-emp-note {
	font-size: 13.5px;
	color: var(--st-ink-2);
}

.st-req-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.st-req-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 9px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-sm);
	font-size: 12.5px;
	color: var(--st-ink);
	line-height: 1.35;
}

.st-req-tag::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: none;
}

.st-req-tag.is-ready::before {
	background: var(--st-green);
}

.st-req-tag.is-amber::before {
	background: var(--st-amber-key);
}

.st-req-tag.is-error::before {
	background: var(--st-red);
}

.st-emp-foot {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.st-empty-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--st-ink-2);
}

/* Documentos */
.st-seg-bar {
	display: flex;
	gap: 3px;
	width: 320px;
	height: 10px;
	flex: none;
	margin-bottom: 6px;
}

.st-seg-bar > div {
	height: 100%;
	border-radius: 2px;
}

.st-seg-bar > div[style*="width: 0%"] {
	display: none;
}

.st-seg-bar .is-ready {
	background: var(--st-green);
}

.st-seg-bar .is-amber {
	background: var(--st-amber-key);
}

.st-seg-bar .is-error {
	background: var(--st-red);
}

.st-demand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 10px;
	min-width: 0;
	max-width: 100%;
}

.scv-demand-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	min-width: 0;
	padding: 14px 16px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-lg);
	background: var(--st-white);
	text-align: left;
	cursor: pointer;
}

.scv-demand-card:hover {
	border-color: var(--st-ink-3);
}

.scv-demand-card.is-active {
	border-color: var(--st-blue);
	box-shadow: inset 0 0 0 1px var(--st-blue);
	background: var(--st-blue-soft);
}

.scv-demand-code {
	font-size: 12.5px;
	color: var(--st-ink-2);
	font-variant-numeric: tabular-nums;
}

.scv-demand-card strong {
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.scv-demand-stage {
	font-size: 13px;
	color: var(--st-ink-2);
}

.scv-demand-card b {
	margin-top: auto;
	padding-top: 6px;
	font-size: 13.5px;
	color: var(--st-red);
}

.scv-demand-card b.is-done {
	color: var(--st-green);
}

.st-upload-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13.5px;
	color: var(--st-ink-2);
}

.st-upload-note .scv-ico-sm {
	margin-top: 2px;
	color: var(--st-blue);
}

.st-doc-card {
	grid-template-columns: 128px minmax(0, 1.25fr) minmax(0, 1fr) 210px;
	align-items: start;
}

.st-doc-main h3 {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.st-doc-holder {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin-top: 2px !important;
	font-size: 14px;
}

.st-doc-holder strong {
	font-weight: 500;
}

.st-doc-holder span {
	color: var(--st-ink-2);
}

.st-doc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 14px;
	margin-top: 4px !important;
	font-size: 12.5px;
	color: var(--st-ink-3);
}

.st-doc-detail {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
	color: var(--st-ink);
}

.st-doc-opinion {
	color: var(--st-red-dark);
}

.st-days {
	display: inline-block;
	margin-left: 8px;
	padding: 0 7px;
	border-radius: var(--st-r-sm);
	background: var(--st-green-soft);
	color: var(--st-green-dark);
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.st-days.is-soon {
	background: var(--st-amber-soft);
	color: #7a4c06;
}

.st-doc-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
}

.st-doc-actions .st-muted {
	font-size: 13px;
}

.scv-upload-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.scv-upload-form .st-btn {
	width: 100%;
}

.scv-file-input-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.st-view-file-link {
	justify-content: center;
	padding: 6px 0;
}

.scv-form-feedback {
	display: none;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--st-green-dark);
}

.scv-form-feedback.is-visible {
	display: block;
}

.scv-form-feedback.is-error {
	padding: 8px 10px;
	border-radius: var(--st-r-md);
	background: var(--st-red-soft);
	color: var(--st-red-dark);
}

/* ---------- Responsável ---------- */

.st-resp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 20px;
	align-items: start;
}

.st-form-card {
	margin: 0;
}

.st-form-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.st-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.st-field label {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--st-ink);
}

.st-field input,
.scv-field-grid input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--st-line);
	border-radius: var(--st-r-md);
	background: var(--st-white);
	color: var(--st-ink);
	font: inherit;
	font-size: 15px;
}

.st-hint {
	font-size: 13px;
	color: var(--st-ink-2);
}

.st-form-note {
	margin-top: 16px !important;
	font-size: 13.5px;
	color: var(--st-ink-2);
}

.st-resp-grid .scv-form-feedback {
	margin-top: 12px;
}

.st-form-actions {
	display: flex;
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--st-line-soft);
}

.st-kv-grid {
	display: grid;
	grid-template-columns: 1fr;
	margin: 0;
}

.st-kv-grid > div {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 12px;
	padding: 11px 0;
	border-top: 1px solid var(--st-line-soft);
}

.st-kv-grid > div:first-child {
	border-top: 0;
	padding-top: 0;
}

.st-kv-grid dt {
	font-size: 14px;
	font-weight: 400;
	color: var(--st-ink-2);
}

.st-kv-grid dd {
	margin: 0;
	font-size: 14.5px;
	font-weight: 500;
	overflow-wrap: anywhere;
}

.st-kv-grid dd.is-ready-text {
	color: var(--st-green);
	font-weight: 700;
}

.st-kv-grid dd.is-error-text {
	color: var(--st-red);
	font-weight: 700;
}

/* ---------- Diálogos ---------- */

dialog.scv-dialog {
	width: min(560px, calc(100% - 28px));
	max-height: calc(100dvh - 40px);
	margin: auto;
	padding: 24px;
	border: 0;
	border-radius: var(--st-r-lg);
	background: var(--st-white);
	color: var(--st-ink);
	font-family: var(--st-font-body);
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 30px 60px -20px rgba(22, 37, 50, 0.45);
}

dialog.scv-dialog::backdrop {
	background: rgba(22, 37, 50, 0.5);
}

.scv-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.scv-dialog-head h2 {
	font-family: var(--st-font-body);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

.scv-dialog-close {
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: var(--st-r-md);
	background: transparent;
	color: var(--st-ink-2) !important;
	cursor: pointer;
}

.scv-dialog-close:hover {
	background: var(--st-hover);
	color: var(--st-ink) !important;
}

.scv-dialog-sub {
	margin-bottom: 18px !important;
	font-size: 14px;
	color: var(--st-ink-2);
}

.scv-dialog form {
	margin: 0;
}

.scv-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.scv-dialog-head + form .scv-field-grid {
	margin-top: 14px;
}

.scv-field-grid label {
	display: block;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--st-ink);
}

.scv-field-grid label.is-wide {
	grid-column: 1 / -1;
}

.scv-field-grid label span {
	font-weight: 400;
	color: var(--st-ink-2);
}

.scv-field-grid input {
	display: block;
	margin-top: 6px;
	font-weight: 400;
}

.scv-field-hint {
	margin-top: 14px !important;
	font-size: 13px;
	color: var(--st-ink-2);
}

.scv-dialog .scv-form-feedback {
	margin-top: 12px;
}

.scv-dialog-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.scv-dialog-actions.is-split {
	justify-content: space-between;
}

.scv-dialog-actions-right {
	display: flex;
	gap: 8px;
}

/* Passo a passo: é uma sequência, por isso usa números */
.st-howto-list {
	counter-reset: st-step;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.st-howto-list li {
	counter-increment: st-step;
	position: relative;
	display: flex;
	flex-direction: column;
	padding-left: 44px;
}

.st-howto-list li::before {
	content: counter(st-step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--st-blue);
	color: var(--st-white);
	font-family: var(--st-font-display);
	font-size: 17px;
	font-weight: 700;
}

.st-howto-list strong {
	font-size: 15.5px;
}

.st-howto-list span {
	font-size: 14px;
	color: var(--st-ink-2);
}

/* ---------- Navegação inferior (celular) ---------- */

.scv-bottom-nav {
	display: none;
}

/* ---------- Telas médias ---------- */

@media (max-width: 1100px) {
	.st-header-inner {
		gap: 20px;
	}

	.st-account-name {
		display: none;
	}

	.scv-company-menu summary {
		padding: 4px;
	}

	.st-emp-card {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
	}

	.st-emp-card .st-req-tags,
	.st-emp-card .st-req-tags-empty {
		grid-column: 1 / 3;
		grid-row: 2;
	}

	.st-emp-card .st-emp-foot {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.st-doc-card {
		grid-template-columns: 120px minmax(0, 1fr) 200px;
	}

	.st-doc-card .st-doc-detail {
		grid-column: 2;
		grid-row: 2;
	}

	.st-doc-card .st-doc-actions {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
}

/* ---------- Celular e tablet ---------- */

@media (max-width: 860px) {
	.st-header-inner {
		height: 60px;
		padding: 0 16px;
	}

	.st-top-tabs {
		display: none;
	}

	.st-brand-mark {
		width: 32px;
		height: 32px;
		padding: 2px;
	}

	.st-brand-mark img {
		width: 26px;
		height: 26px;
	}

	.st-brand-page {
		display: block;
	}

	.st-main {
		padding: 18px 14px calc(96px + env(safe-area-inset-bottom, 0px));
	}

	.st-page-head {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.st-page-head h1 {
		font-size: 34px;
	}

	.st-page-head > .st-btn {
		align-self: flex-start;
	}

	.st-seg-bar {
		width: 100%;
	}

	.st-verdict {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 18px 16px;
	}

	.st-verdict-side {
		padding-left: 0;
		padding-top: 14px;
		border-left: 0;
		border-top: 1px solid var(--st-line-soft);
	}

	.st-verdict-actions .st-btn {
		flex: 1 1 100%;
	}

	.st-overview-grid,
	.st-resp-grid {
		grid-template-columns: 1fr;
	}

	.st-feed-item {
		grid-template-columns: 22px minmax(0, 1fr);
	}

	.st-feed-date {
		grid-column: 2;
		grid-row: 1;
		text-align: left;
		padding-top: 0;
		font-size: 12.5px;
	}

	.st-feed-mark {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.st-feed-body {
		grid-column: 2;
	}

	.st-feed-item:not(:last-child)::before {
		left: 10px;
	}

	.st-search-row {
		flex-direction: column;
	}

	.st-person-select {
		width: 100%;
	}

	.st-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.st-demand-grid {
		display: flex;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}

	.scv-demand-card {
		flex: 0 0 236px;
	}

	.st-seg-tabs {
		width: 100%;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.st-seg-btn {
		flex: 1 0 auto;
		padding: 0 10px;
		font-size: 13px;
	}

	.st-chip-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.st-chip {
		flex: none;
	}

	.st-row {
		padding: 16px;
	}

	.st-emp-card,
	.st-doc-card {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.st-emp-card .st-req-tags,
	.st-emp-card .st-req-tags-empty,
	.st-emp-card .st-emp-foot,
	.st-doc-card .st-doc-detail,
	.st-doc-card .st-doc-actions {
		grid-column: auto;
		grid-row: auto;
	}

	.st-req-tags-empty {
		display: none;
	}

	.st-emp-foot {
		flex-direction: row;
	}

	.st-emp-foot .st-btn {
		flex: 1;
	}

	.st-doc-state {
		order: -1;
	}

	.st-kv-grid > div {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.st-form-actions {
		flex-direction: column;
	}

	.scv-field-grid {
		grid-template-columns: 1fr;
	}

	.scv-dialog-actions.is-split {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.scv-dialog-actions-right {
		justify-content: flex-end;
	}

	.scv-bottom-nav {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		background: var(--st-white);
		border-top: 1px solid var(--st-line);
		padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
	}

	.scv-bottom-btn {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: 54px;
		padding: 6px 2px;
		border: 0;
		background: transparent;
		color: var(--st-ink-2) !important;
		font-size: 12px;
		font-weight: 500;
		cursor: pointer;
	}

	.scv-bottom-btn .scv-ico {
		width: 22px;
		height: 22px;
	}

	.scv-bottom-btn.is-active {
		color: var(--st-blue) !important;
		font-weight: 700;
	}

	.scv-bottom-btn.is-active::before {
		content: "";
		position: absolute;
		top: -5px;
		left: 28%;
		right: 28%;
		height: 3px;
		border-radius: 0 0 3px 3px;
		background: var(--st-blue);
	}

	.scv-bottom-dot {
		position: absolute;
		top: 3px;
		left: calc(50% + 6px);
		min-width: 18px;
		height: 18px;
		padding: 0 5px;
		border-radius: 999px;
		background: var(--st-red);
		color: var(--st-white);
		font-size: 11px;
		font-weight: 700;
		line-height: 18px;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scv-app *,
	.scv-app *::before,
	.scv-app *::after {
		animation: none !important;
		transition-duration: 0ms !important;
	}
}
