.sb-portal-root {
	font-family: 'Montserrat', sans-serif;
	color: #2d2d2d;
	width: 100%;
	box-sizing: border-box;
}

.sb-portal-root *,
.sb-portal-root *::before,
.sb-portal-root *::after {
	box-sizing: border-box;
}

.sb-portal-container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.sb-portal-root .is-hidden {
	display: none !important;
}

/* =========================================================
   1. TELA DE LOGIN / APRESENTAÇÃO DA ÁREA DO CLIENTE
   ========================================================= */
.sb-portal-auth-band {
	background-color: #faf8f5;
	border-top: 1px solid #efeae2;
	padding: 72px 0 84px;
}

.sb-portal-auth-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
}

.sb-portal-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: #b48a6b;
	margin-bottom: 10px;
}

.sb-portal-info-col h1 {
	font-family: 'Montserrat', sans-serif;
	font-size: 38px;
	font-weight: 500;
	line-height: 1.18;
	color: #1b1b1b;
	margin: 0 0 14px;
}

.sb-portal-lead {
	font-size: 15.5px;
	line-height: 1.65;
	color: #555;
	margin: 0 0 28px;
	max-width: 520px;
}

.sb-portal-highlights {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 26px;
}

.sb-portal-hl-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: #ffffff;
	border: 1px solid #ece6dc;
	border-radius: 6px;
	padding: 16px 18px;
}

.sb-hl-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #faf5ee;
	color: #b48a6b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sb-hl-icon svg {
	width: 19px;
	height: 19px;
}

.sb-portal-hl-item h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #1b1b1b;
	margin: 0 0 4px;
}

.sb-portal-hl-item p {
	font-size: 13.5px;
	line-height: 1.5;
	color: #666;
	margin: 0;
}

.sb-portal-help-note {
	font-size: 13.5px;
	color: #555;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sb-portal-help-note a {
	color: #9e7355;
	font-weight: 600;
	text-decoration: none;
}

.sb-portal-help-note a:hover {
	text-decoration: underline;
}

.sb-portal-login-card {
	background: #ffffff;
	border: 1px solid #e9e2d8;
	border-top: 3px solid #debca3;
	border-radius: 8px;
	padding: 36px 34px;
	box-shadow: 0 18px 42px rgba(27, 27, 27, 0.06);
}

.sb-card-kicker {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #b48a6b;
	margin-bottom: 6px;
}

.sb-login-card-head h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 25px;
	font-weight: 600;
	color: #1b1b1b;
	margin: 0 0 6px;
}

.sb-login-card-head p {
	font-size: 13.5px;
	color: #666;
	margin: 0 0 22px;
	line-height: 1.5;
}

.sb-portal-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sb-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.sb-p-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #2d2d2d;
	margin-bottom: 6px;
}

.sb-p-field input[type="text"],
.sb-p-field input[type="email"],
.sb-p-field input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	color: #1b1b1b;
	background: #fcfbfa;
	border: 1px solid #dcd3c7;
	border-radius: 4px;
	outline: none;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.sb-p-field input:focus {
	border-color: #debca3;
	background: #ffffff;
}

.sb-p-pass-wrap {
	position: relative;
}

.sb-p-pass-wrap input {
	padding-right: 76px !important;
}

.sb-toggle-pass {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	font-size: 12px;
	font-weight: 600;
	color: #8b6246;
	cursor: pointer;
	padding: 4px 6px;
}

.sb-p-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}

.sb-p-check {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #555;
	cursor: pointer;
}

.sb-link-btn {
	background: transparent;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #8b6246;
	cursor: pointer;
	text-decoration: underline;
}

.sb-p-submit-btn {
	width: 100%;
	height: 48px;
	background: #1b1b1b;
	color: #ffffff;
	border: 0;
	border-radius: 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.sb-p-submit-btn:hover {
	background: #333333;
}

.sb-p-back-login {
	text-align: center;
}

.sb-portal-alert {
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 13.5px;
	line-height: 1.5;
	margin-bottom: 18px;
}

.sb-portal-alert-error {
	background: #fdf1f1;
	border: 1px solid #f0c5c5;
	color: #9e2a2b;
}

.sb-portal-alert-ok {
	background: #eef8f0;
	border: 1px solid #bde0c4;
	color: #1f6b33;
}

/* =========================================================
   2. ÁREA RESTRITA DO CLIENTE LOGADO
   ========================================================= */
.sb-portal-dashboard {
	background: #faf8f5;
	min-height: 70vh;
	padding-bottom: 72px;
}

.sb-dash-topbar {
	background: #1b1b1b;
	color: #ffffff;
	padding: 28px 0;
}

.sb-dash-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.sb-dash-kicker {
	display: block;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #debca3;
	font-weight: 600;
	margin-bottom: 4px;
}

.sb-dash-identity h1 {
	font-family: 'Montserrat', sans-serif;
	font-size: 28px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 8px;
}

.sb-project-pill {
	display: inline-block;
	font-size: 12.5px;
	color: #f3eae0;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(222, 188, 163, 0.35);
	padding: 4px 12px;
	border-radius: 99px;
}

.sb-dash-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.sb-nav-tab {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	color: #e8e2da !important;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sb-nav-tab:hover {
	background: rgba(222, 188, 163, 0.2);
	border-color: #debca3;
	color: #ffffff !important;
}

.sb-nav-tab.is-active {
	background: #debca3;
	border-color: #debca3;
	color: #1b1b1b !important;
	font-weight: 600;
}

.sb-nav-wa {
	border-color: rgba(37, 211, 102, 0.45);
}

.sb-nav-logout {
	color: #f3c4c4 !important;
	border-color: rgba(243, 196, 196, 0.25);
}

.sb-dash-body {
	padding-top: 32px;
}

.sb-dash-card {
	background: #ffffff;
	border: 1px solid #ece6dc;
	border-radius: 8px;
	padding: 24px 26px;
	margin-bottom: 22px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.025);
}

/* Etapa do Projeto */
.sb-note-only-card {
	padding: 18px 22px;
}

.sb-architect-note {
	margin-top: 20px;
	padding: 16px 18px;
	background: #faf8f5;
	border-left: 3px solid #debca3;
	border-radius: 4px;
}

.sb-note-only-card .sb-architect-note {
	margin-top: 0;
}

.sb-note-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #9e7355;
	margin-bottom: 5px;
}

.sb-architect-note p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
}

/* Barra de Filtros */
.sb-filter-card {
	padding: 20px 24px;
}

.sb-cat-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.sb-filter-pill {
	background: #faf8f5;
	border: 1px solid #e4dcd0;
	color: #444;
	font-family: 'Montserrat', sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 99px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sb-filter-pill:hover {
	border-color: #debca3;
	color: #1b1b1b;
}

.sb-filter-pill.is-active {
	background: #1b1b1b;
	border-color: #1b1b1b;
	color: #ffffff;
	font-weight: 600;
}

.sb-filter-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.sb-control-search {
	flex: 1;
	min-width: 240px;
}

.sb-control-search input {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #dcd3c7;
	border-radius: 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13.5px;
	background: #fcfbfa;
}

.sb-control-selects {
	display: flex;
	gap: 10px;
	flex-wrap: nowrap;
	flex-shrink: 0;
}

.sb-control-selects select {
	width: auto !important;
	min-width: 175px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid #dcd3c7;
	border-radius: 4px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	background: #fcfbfa;
	color: #2d2d2d;
}

/* Grade de Arquivos */
.sb-files-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.sb-file-card {
	background: #ffffff;
	border: 1px solid #ece6dc;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sb-file-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

.sb-file-media {
	position: relative;
	aspect-ratio: 16 / 10;
	background: #f5f1ea;
	overflow: hidden;
}

.sb-media-trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.sb-media-trigger img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.sb-file-card:hover .sb-media-trigger img {
	transform: scale(1.03);
}

.sb-media-doc {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, #242424 0%, #151515 100%);
	color: #ffffff;
	border: 0;
	cursor: pointer;
	text-decoration: none !important;
	padding: 16px;
}

.sb-doc-badge {
	display: inline-block;
	background: #debca3;
	color: #1b1b1b;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 6px 14px;
	border-radius: 4px;
}

.sb-doc-hint {
	font-size: 12px;
	color: #d6cfc5;
}

.sb-new-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #debca3;
	color: #1b1b1b;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	padding: 4px 9px;
	border-radius: 3px;
}

.sb-file-body {
	padding: 18px 20px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sb-file-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.sb-file-cat {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: #f7f1e8;
	color: #8b6246;
	padding: 3px 9px;
	border-radius: 3px;
}

.sb-file-date {
	font-size: 12px;
	color: #888;
}

.sb-file-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 16.5px;
	font-weight: 600;
	color: #1b1b1b;
	line-height: 1.35;
	margin: 0 0 8px;
}

.sb-file-desc {
	font-size: 13.5px;
	line-height: 1.55;
	color: #666;
	margin: 0 0 14px;
}

.sb-file-footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f2ede6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.sb-file-size {
	font-size: 12px;
	color: #888;
}

.sb-file-actions {
	display: flex;
	gap: 8px;
}

.sb-btn-view,
.sb-btn-dl {
	font-family: 'Montserrat', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	padding: 8px 13px;
	border-radius: 4px;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.sb-btn-view {
	background: #1b1b1b;
	color: #ffffff !important;
	border: 1px solid #1b1b1b;
}

.sb-btn-view:hover {
	background: #333;
}

.sb-btn-dl {
	background: #ffffff;
	color: #1b1b1b !important;
	border: 1px solid #d7c7b5;
}

.sb-btn-dl:hover {
	background: #faf5ee;
	border-color: #debca3;
}

.sb-empty-portal {
	text-align: center;
	padding: 46px 24px;
}

.sb-empty-portal h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	color: #1b1b1b;
	margin: 0 0 8px;
}

.sb-empty-portal p {
	margin: 0 auto;
	max-width: 520px;
	color: #666;
	font-size: 14px;
}

/* Minha Conta */
.sb-account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.sb-account-grid h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	margin: 0 0 18px;
}

.sb-account-dl {
	margin: 0;
}

.sb-account-dl dt {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #888;
	margin-bottom: 3px;
}

.sb-account-dl dd {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 500;
	color: #1b1b1b;
}

/* Modal Visualizador (Imagem & PDF) */
.sb-portal-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483640 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sb-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 18, 0.86);
}

.sb-modal-dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1040px;
	height: 88vh;
	background: #181818;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.sb-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	background: #111111;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sb-modal-meta {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #debca3;
}

.sb-modal-header h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #ffffff;
	margin: 2px 0 0;
}

.sb-modal-head-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.sb-modal-btn-sec,
.sb-modal-btn-pri {
	font-size: 12.5px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none !important;
}

.sb-modal-btn-sec {
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.sb-modal-btn-pri {
	background: #debca3;
	color: #1b1b1b !important;
}

.sb-modal-close {
	background: transparent;
	border: 0;
	color: #ffffff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px;
}

.sb-modal-stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: auto;
	background: #141414;
	padding: 12px;
}

.sb-modal-stage img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.sb-modal-stage iframe {
	width: 100%;
	height: 100%;
	border: 0;
	background: #ffffff;
	border-radius: 4px;
}

@media (max-width: 1024px) {
	.sb-files-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.sb-portal-auth-grid,
	.sb-account-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.sb-portal-info-col h1 {
		font-size: 30px;
	}
}

@media (max-width: 640px) {
	.sb-portal-container {
		padding: 0 16px;
	}
	.sb-portal-auth-band {
		padding: 40px 0 54px;
	}
	.sb-portal-login-card {
		padding: 24px 20px;
	}
	.sb-control-selects {
		width: 100%;
		flex-wrap: wrap;
	}
	.sb-control-selects select {
		width: 100% !important;
	}
	.sb-files-grid {
		grid-template-columns: 1fr;
	}
	.sb-modal-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.sb-modal-btn-sec {
		display: none;
	}
}
