/* Tabela de Vendas 3D - visual do 3D House Planner (mesmos tokens de assets/css/hp-ui.css) */
@font-face { font-family: 'Roboto'; src: url(../../assets/bootstrap/css/Roboto-Regular.ttf) format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
	--hp-topbar-h: 54px;
	--hp-status-h: 30px;
	--hp-surface: #ffffff;
	--hp-surface-2: #f4f6fa;
	--hp-surface-3: #eaeef5;
	--hp-border: #e2e7ef;
	--hp-text: #172033;
	--hp-muted: #64748b;
	--hp-accent: #0f9488;
	--hp-accent-2: #0d7a70;
	--hp-accent-soft: #e0f4f1;
	--hp-ai: #7c3aed;
	--hp-danger: #dc2626;
	--hp-warn: #d97706;
	--hp-ok: #16a34a;
	--hp-radius: 12px;
	--hp-shadow: 0 12px 32px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
	--hp-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--st-disponivel: #22c55e; --st-reservado: #f59e0b; --st-vendido: #ef4444; --st-bloqueado: #94a3b8;
	--brand: var(--hp-accent);
	font-family: var(--hp-font);
	font-size: 14px; color: var(--hp-text); background: var(--hp-surface-2);
	color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--hp-surface-2); overflow: hidden; -webkit-font-smoothing: antialiased; }
#app { height: 100%; display: flex; flex-direction: column; }
a { color: var(--hp-accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--hp-surface-3); padding: 1px 5px; border-radius: 5px; font-size: 12px; color: var(--hp-text); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--hp-border); margin: 14px 0; }
.muted { color: var(--hp-muted); }
.small, small { font-size: 12px; }
.red { color: var(--hp-danger); font-weight: 600; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.center { justify-content: center; }
.grow { flex: 1; }
.full { width: 100%; }
.empty { color: var(--hp-muted); padding: 18px; text-align: center; }
[hidden] { display: none !important; }
.material-icons { font-family: 'Material Icons'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; vertical-align: middle; }

/* botoes (hp-btn) */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 34px; padding: 0 12px; border: 1px solid var(--hp-border); border-radius: 9px;
	background: var(--hp-surface); color: var(--hp-text);
	font: 600 13px var(--hp-font); cursor: pointer; white-space: nowrap; line-height: 1;
	transition: background .15s, border-color .15s, box-shadow .15s; text-decoration: none !important;
}
.btn:hover { background: var(--hp-surface-2); }
.btn:focus-visible, .icon-btn:focus-visible, .chip:focus-visible, .seg button:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .material-icons { font-size: 18px; }
.btn.primary { background: var(--hp-accent); border-color: var(--hp-accent); color: #fff; }
.btn.primary:hover { background: var(--hp-accent-2); border-color: var(--hp-accent-2); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hp-surface-2); }
.btn.danger { color: var(--hp-danger); }
.btn.danger:not(.ghost):hover { background: #fef2f2; border-color: #fecaca; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn.sm .material-icons { font-size: 16px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 28px; }
.btn.block { width: 100%; justify-content: flex-start; margin-bottom: 8px; }
.btn.glass { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.btn.glass:hover { background: #fff; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--hp-muted); cursor: pointer; font-size: 15px; width: 30px; height: 30px; border-radius: 8px; padding: 0; }
.icon-btn:hover { background: var(--hp-surface-2); color: var(--hp-text); }
.icon-btn .material-icons { font-size: 19px; }
.link { border: 0; background: none; color: var(--hp-accent-2); cursor: pointer; padding: 0; font: inherit; font-weight: 600; text-align: left; }

/* campos (hp-input) */
input, select, textarea {
	font: 13px var(--hp-font); color: var(--hp-text); background: #fff; border: 1px solid var(--hp-border); border-radius: 8px;
	height: 34px; padding: 0 10px; min-width: 0; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; line-height: 1.4; }
select { padding-right: 28px; -webkit-appearance: none; appearance: none; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%2364748b' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center; }
input:focus, select:focus, textarea:focus { border-color: var(--hp-accent); box-shadow: 0 0 0 3px var(--hp-accent-soft); }
input:disabled { background: var(--hp-surface-2); color: var(--hp-muted); }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--hp-accent); cursor: pointer; }
input[type=color] { padding: 3px; width: 100%; cursor: pointer; }
input[type=range] { accent-color: var(--hp-accent); padding: 0; height: auto; border: 0; background: none; box-shadow: none !important; }
input[type=date], input[type=time] { padding-right: 6px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld > span { font-size: 12px; font-weight: 600; color: var(--hp-muted); }
.fld input, .fld select, .fld textarea { width: 100%; }
.fld .row { flex-wrap: nowrap; }
.fld.check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.fld.check input { width: auto; flex: none; margin: 0; }
.fld.check > span { color: var(--hp-text); font-size: 13px; font-weight: 500; }
.fld.inline { flex-direction: row; align-items: center; gap: 10px; }
.fld.inline input { width: 260px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; gap: 8px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.form-grid.three .fld > span { font-size: 11px; }
.form-grid.three input { height: 30px; padding: 0 6px; }
.span-all { grid-column: 1 / -1; }
.search { width: 240px; padding-left: 32px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") no-repeat 9px center; }

/* status */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.st-disponivel { background: #dcfce7; color: #15803d; }
.badge.st-reservado { background: #fef3c7; color: #b45309; }
.badge.st-vendido { background: #fee2e2; color: #b91c1c; }
.badge.st-bloqueado { background: #e2e8f0; color: #475569; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-disponivel.dot, .pbar i.st-disponivel, .bar-status i.st-disponivel, .legend .st-disponivel i { background: var(--st-disponivel); }
.st-reservado.dot, .pbar i.st-reservado, .bar-status i.st-reservado, .legend .st-reservado i { background: var(--st-reservado); }
.st-vendido.dot, .pbar i.st-vendido, .bar-status i.st-vendido, .legend .st-vendido i { background: var(--st-vendido); }
.st-bloqueado.dot, .pbar i.st-bloqueado, .bar-status i.st-bloqueado, .legend .st-bloqueado i { background: var(--st-bloqueado); }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--hp-surface-2); color: var(--hp-muted); margin: 2px 2px 2px 0; }
.pill.ok { background: var(--hp-accent-soft); color: var(--hp-accent-2); }
.pill.ls-novo { background: #e0f2fe; color: #0369a1; }
.pill.ls-atendimento { background: #f1eafe; color: #6d28d9; }
.pill.ls-proposta { background: #fef3c7; color: #b45309; }
.pill.ls-venda { background: #dcfce7; color: #15803d; }
.pill.ls-perdido { background: #e2e8f0; color: #475569; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--hp-border); cursor: pointer; user-select: none; color: var(--hp-text); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.legend .lg:hover { border-color: #cbd5e1; }
.legend .lg i { width: 10px; height: 10px; border-radius: 3px; }
.legend .lg b { font-weight: 800; }

/* carregando, avisos, modais (hp-dialog / hp-toast) */
.boot, .busy-box { display: flex; align-items: center; gap: 12px; color: var(--hp-muted); font-weight: 600; }
.boot { margin: auto; flex-direction: column; }
.boot img { width: 64px; height: 64px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--hp-accent-soft); border-top-color: var(--hp-accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 23, 42, .35); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
.busy-box { background: #fff; padding: 18px 24px; border-radius: 16px; box-shadow: var(--hp-shadow); color: var(--hp-text); }
#toasts { position: fixed; bottom: 44px; left: 50%; transform: translateX(-50%); z-index: 1300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--hp-shadow); max-width: min(520px, calc(100vw - 32px)); font-size: 13.5px; animation: tin .2s ease-out; transition: opacity .4s, transform .4s; }
.toast.error { background: #b91c1c; }
.toast.warn { background: #b45309; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.modal-bg { position: fixed; inset: 0; z-index: 1100; background: rgba(15, 23, 42, .45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; box-shadow: 0 24px 64px rgba(15, 23, 42, .35); width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; animation: pop .2s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); } }
.modal.wide { width: min(880px, 100%); }
.modal.unit-modal { width: min(440px, 100%); }
.modal header { display: flex; align-items: center; gap: 12px; padding: 18px 16px 12px 20px; }
.modal header h3 { flex: 1; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hp-accent-soft); color: var(--hp-accent); flex-shrink: 0; }
.modal-body { padding: 4px 20px 18px; overflow: auto; }
.modal-body p { margin: 0 0 10px; line-height: 1.5; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--hp-border); background: var(--hp-surface-2); }
.modal footer .left { margin-right: auto; }
.modal.zoom { width: min(1100px, 100%); }
.zoomimg { background: #fff; border-radius: 10px; text-align: center; border: 1px solid var(--hp-border); }
.zoomimg img { max-width: 100%; max-height: calc(100vh - 170px); }
.menu-list .btn { height: 42px; }
.fatal { margin: auto; text-align: center; max-width: 520px; padding: 30px; }
.fatal p { color: var(--hp-muted); }

/* barra superior (hp-topbar) */
.topbar { position: relative; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 0 10px; height: var(--hp-topbar-h); border-bottom: 1px solid var(--hp-border); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); flex: none; }
.hp-brand { display: flex; align-items: center; gap: 8px; color: var(--hp-text) !important; text-decoration: none !important; font-weight: 700; font-size: 15px; white-space: nowrap; flex: none; }
.hp-brand img { height: 30px; width: auto; aspect-ratio: 142 / 75; display: block; }
.page-title { padding-left: 10px; border-left: 1px solid var(--hp-border); font-weight: 700; font-size: 14.5px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.page-title .material-icons { color: var(--hp-accent); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ptitle { display: flex; flex-direction: column; min-width: 0; max-width: 240px; padding-left: 10px; border-left: 1px solid var(--hp-border); }
.ptitle b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.savestate { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--hp-muted); white-space: nowrap; }
.savestate::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hp-ok); }
html.saving .savestate::before { background: var(--hp-accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.savestate .s-busy { display: none; }
html.saving .savestate .s-ok { display: none; }
html.saving .savestate .s-busy { display: inline; }
.tabs { display: flex; gap: 2px; margin-left: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; background: var(--hp-surface-2); border: 1px solid var(--hp-border); border-radius: 10px; padding: 3px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; color: var(--hp-muted); white-space: nowrap; font-weight: 600; font-size: 13px; text-decoration: none !important; }
.tabs a .material-icons { font-size: 18px; }
.tabs a:hover { color: var(--hp-text); background: rgba(255, 255, 255, .7); }
.tabs a.on { background: #fff; color: var(--hp-accent-2); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.tabbody { flex: 1; min-height: 0; overflow: auto; }
.tabbody.tab-3d { overflow: hidden; }
/* barra de status (hp-statusbar) */
.statusbar { flex: none; height: var(--hp-status-h); display: flex; align-items: center; gap: 14px; padding: 0 12px; background: rgba(255, 255, 255, .94); border-top: 1px solid var(--hp-border); color: var(--hp-muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.statusbar .material-icons { font-size: 16px; margin-right: 4px; }
.statusbar span { display: inline-flex; align-items: center; }
.statusbar .grow { flex: 1; }

/* inicio */
.home { flex: 1; overflow: auto; padding: 26px 28px; display: flex; flex-direction: column; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.home-head h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.home-head p { margin: 4px 0 0; color: var(--hp-muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--hp-shadow); transform: translateY(-2px); }
.pthumb { border: 0; padding: 0; height: 168px; background: linear-gradient(160deg, #e7eef6, #f4f6fa); cursor: pointer; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--hp-border); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.pthumb .ph-empty { width: 64px; height: 64px; opacity: .5; }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; }
.pbody h3 { font-size: 16px; }
.pbody p { margin: 0; }
.pbar { display: flex; height: 6px; border-radius: 4px; overflow: hidden; background: var(--hp-surface-3); }
.pstats { display: flex; gap: 14px; color: var(--hp-muted); font-size: 12.5px; }
.pstats b { color: var(--hp-text); }
.pbody .row .icon { margin-left: auto; }
.hero { max-width: 940px; margin: 10px auto 0; text-align: center; }
.hero-logo { width: 120px; margin: 0 auto 14px; display: block; }
.hero h1 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.02em; }
.hero > p { color: var(--hp-muted); font-size: 16px; line-height: 1.6; margin: 0 auto 24px; max-width: 760px; }
.hero-shot { position: relative; display: block; width: 100%; max-width: 820px; margin: 26px auto 6px; padding: 0; border: 1px solid var(--hp-border); border-radius: 18px; overflow: hidden; background: #1b2550; cursor: pointer; box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .45); }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.hero-shot:hover img { transform: scale(1.02); }
.hero-legend { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12.5px; font-weight: 600; color: var(--hp-text); }
.hero-legend i { width: 10px; height: 10px; border-radius: 50%; margin-left: 6px; }
.hero-legend i:first-child { margin-left: 0; }
.hero-legend .st-disponivel { background: var(--st-disponivel); } .hero-legend .st-reservado { background: var(--st-reservado); } .hero-legend .st-vendido { background: var(--st-vendido); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.steps li { background: #fff; border: 1px solid var(--hp-border); border-radius: 14px; padding: 16px; }
.steps li > .material-icons { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--hp-accent-soft); color: var(--hp-accent); margin-bottom: 10px; font-size: 22px; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--hp-muted); font-size: 13px; line-height: 1.45; }
.home-foot { margin-top: auto; padding-top: 26px; display: flex; gap: 20px; justify-content: space-between; align-items: center; color: var(--hp-muted); line-height: 1.5; flex-wrap: wrap; }
.home-foot .note-box { display: flex; gap: 10px; align-items: flex-start; max-width: 720px; }
.home-foot .note-box .material-icons { color: var(--hp-accent); }

/* paginas */
.page { padding: 20px; max-width: 1280px; margin: 0 auto; }
.page.wide { max-width: none; }
.panel { background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; padding: 16px; margin-bottom: 16px; min-width: 0; }
.panel h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel h3 .material-icons { color: var(--hp-accent); }
.panel h3 + p { margin-top: -6px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols2 > .panel { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.kpi span { color: var(--hp-muted); font-size: 12.5px; font-weight: 600; }
.kpi b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kpi small { color: var(--hp-muted); }
.kpi > .material-icons { position: absolute; top: 14px; right: 14px; color: var(--hp-accent); background: var(--hp-accent-soft); border-radius: 10px; padding: 6px; font-size: 18px; }
.kpi.k-sold b { color: #dc2626; }
.kpi.k-sold > .material-icons { background: #fee2e2; color: #dc2626; }
.kpi.k-res b { color: #d97706; }
.kpi.k-res > .material-icons { background: #fef3c7; color: #d97706; }
.kpi.k-avail b { color: #16a34a; }
.kpi.k-avail > .material-icons { background: #dcfce7; color: #16a34a; }
.bar-status { display: flex; height: 26px; border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: #fff; border: 1px solid var(--hp-border); }
.bar-status i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; color: rgba(0, 0, 0, .65); min-width: 18px; }
.todo { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; background: var(--hp-accent-soft); color: var(--hp-accent-2); padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.todo .material-icons { font-size: 19px; }
.todo a { font-weight: 600; }
.mchart { display: flex; gap: 6px; align-items: flex-end; height: 160px; padding-top: 14px; }
.mchart > div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.mchart i { width: 100%; background: linear-gradient(#2dd4bf, var(--hp-accent)); border-radius: 6px 6px 0 0; position: relative; min-height: 2px; }
.mchart i b { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; color: var(--hp-text); }
.mchart span { font-size: 11px; color: var(--hp-muted); }
.feed { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--hp-border); line-height: 1.4; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--hp-muted); font-size: 12px; margin-right: 8px; }

/* tabelas */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--hp-muted); font-weight: 700; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; padding: 9px 8px; border-bottom: 1px solid var(--hp-border); white-space: nowrap; }
.tbl td { padding: 8px; border-bottom: 1px solid var(--hp-border); vertical-align: middle; }
.tbl tbody tr:hover { background: #f8fafc; }
.tbl td.actions { white-space: nowrap; text-align: right; }
.tbl .num { text-align: right; }
.tablewrap { overflow: auto; border: 1px solid var(--hp-border); border-radius: 16px; background: #fff; max-height: calc(100vh - 330px); }
.tbl.edit thead th { position: sticky; top: 0; background: var(--hp-surface-2); z-index: 1; cursor: pointer; user-select: none; }
.tbl.edit th.sorted { color: var(--hp-accent-2); }
.tbl.edit th.sorted::after { content: " ▲"; font-size: 9px; }
.tbl.edit th.sorted.desc::after { content: " ▼"; }
.tbl.edit td { padding: 2px 3px; }
.tbl.edit thead th { padding: 8px 4px; white-space: normal; line-height: 1.2; vertical-align: bottom; }
.tbl.edit td.ck, .tbl.edit th.ck { width: 34px; text-align: center; }
.tbl.edit input, .tbl.edit select { background-color: transparent; border-color: transparent; height: 30px; padding: 0 7px; width: 100%; border-radius: 6px; }
.tbl.edit select { padding-right: 24px; background-position: right 4px center; }
.tbl.edit input:hover, .tbl.edit select:hover { border-color: var(--hp-border); background-color: #fff; }
.tbl.edit input:focus, .tbl.edit select:focus { background-color: #fff; border-color: var(--hp-accent); }
.tbl.edit td.num input { text-align: right; }
.tbl.edit select { min-width: 96px; }
.tbl.edit select[data-f=status] { min-width: 122px; font-weight: 700; }
.tbl.edit select[data-f=face] { min-width: 100px; }
.tbl.edit td.num input { min-width: 58px; }
.tbl.edit td.num input[data-type="money"] { min-width: 90px; }
.tbl.edit td.num input[data-type="int"] { min-width: 40px; width: 46px; }
/* paineis que recolhem (tipologias, versoes de precos) */
.panel.fold > .panel-head h3 { cursor: pointer; user-select: none; }
.panel.fold > .panel-head h3::after { content: 'expand_less'; font-family: 'Material Icons'; font-size: 20px; color: var(--hp-muted); margin-left: 4px; transition: transform .15s; }
.panel.fold.folded > .panel-head h3::after { transform: rotate(180deg); }
.panel.fold.folded > :not(.panel-head) { display: none; }
.panel.fold.folded { padding-bottom: 10px; }
.panel-head .fold-sum { font-size: 12.5px; font-weight: 500; color: var(--hp-muted); margin-left: 8px; }
.tbl.edit input[data-type=money] { min-width: 108px; }
.tbl.edit input[data-type=dec] { min-width: 72px; }
.tbl.edit td:nth-child(2) input { font-weight: 800; min-width: 70px; }
.tbl.edit tr.sel { background: var(--hp-accent-soft); }
.st-sel.st-disponivel { color: #15803d; }
.st-sel.st-reservado { color: #b45309; }
.st-sel.st-vendido { color: #b91c1c; }
.st-sel.st-bloqueado { color: #475569; }
.tbl.edit td.muted { padding-right: 10px; white-space: nowrap; }
.c3d { text-align: center; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--hp-accent-soft); color: var(--hp-accent-2); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; }
.bulk select { height: 28px; font-size: 12px; }
.typs { padding-bottom: 12px; }
.typ-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.typ-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--hp-border); border-radius: 12px; padding: 8px; }
.typ-card img, .typ-card .noimg { width: 66px; height: 50px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--hp-border); }
.typ-card .noimg { background: var(--hp-surface-2); color: var(--hp-muted); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.typ-card b { display: block; }
.typ-card small { display: block; color: var(--hp-muted); }
.wa { display: inline-flex; font-size: 11px; font-weight: 700; margin-left: 6px; color: #15803d; background: #dcfce7; padding: 2px 7px; border-radius: 999px; }

/* 3D: painel lateral (hp-panel) e area de visualizacao */
.split { display: flex; height: 100%; position: relative; }
.side { width: 380px; flex: none; overflow: auto; border-right: 1px solid var(--hp-border); background: #fff; }
.acc { border-bottom: 1px solid var(--hp-border); }
.acc h4 { display: flex; align-items: center; gap: 8px; padding: 13px 16px; cursor: pointer; font-size: 14px; font-weight: 700; user-select: none; }
.acc h4 > .material-icons:first-child { color: var(--hp-accent); }
.acc h4 i.chev { margin-left: auto; font-style: normal; color: var(--hp-muted); transition: transform .2s; }
.acc:not(.open) h4 i.chev { transform: rotate(-90deg); }
.acc h4:hover { background: var(--hp-surface-2); }
.acc-body { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.acc:not(.open) .acc-body { display: none; }
.acc-body p { margin: 0; line-height: 1.45; }
.dropzone { border: 2px dashed #cfd8e3; border-radius: 14px; padding: 26px 14px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--hp-surface-2); transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--hp-accent); background: var(--hp-accent-soft); }
.dropzone > .material-icons { font-size: 36px; color: var(--hp-accent); margin-bottom: 4px; }
.dropzone b { font-size: 15px; }
.dropzone span, .dropzone small { color: var(--hp-muted); }
.tip summary { cursor: pointer; color: var(--hp-accent-2); font-size: 13px; font-weight: 600; }
.tip ul { padding-left: 18px; margin: 8px 0 0; color: var(--hp-muted); font-size: 12.5px; line-height: 1.5; }
.file-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hp-border); border-radius: 12px; background: var(--hp-surface-2); }
.file-line > .material-icons { color: var(--hp-accent); }
.file-line div { min-width: 0; }
.file-line b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-line small { color: var(--hp-muted); }
.seg { display: inline-flex; background: var(--hp-surface-2); border: 1px solid var(--hp-border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg.full { display: flex; }
.seg.full button { flex: 1; justify-content: center; }
.seg button { display: inline-flex; align-items: center; gap: 6px; height: 30px; border: 0; background: transparent; color: var(--hp-muted); padding: 0 11px; border-radius: 8px; cursor: pointer; font: 600 12.5px var(--hp-font); white-space: nowrap; }
.seg button .material-icons { font-size: 17px; }
.seg button:hover { color: var(--hp-text); background: rgba(255, 255, 255, .7); }
.seg button.on { background: #fff; color: var(--hp-accent-2); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.seg button:disabled { opacity: .4; cursor: default; }
.box { background: #fff; border: 1px solid var(--hp-border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.box > b { display: flex; align-items: center; gap: 6px; }
.box > b .material-icons { color: var(--hp-accent); font-size: 18px; }
.ulist { max-height: 300px; overflow: auto; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--hp-border); border-radius: 10px; padding: 4px; background: var(--hp-surface-2); }
.uitem { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--hp-text); text-align: left; padding: 7px 8px; border-radius: 8px; cursor: pointer; font: inherit; }
.uitem:hover { background: #fff; }
.uitem.on { background: #fff; box-shadow: inset 0 0 0 2px var(--hp-accent); }
.uitem small { color: var(--hp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uitem .cnt { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--hp-muted); background: var(--hp-surface-3); padding: 1px 8px; border-radius: 99px; }
.uitem .cnt.ok { color: var(--hp-accent-2); background: var(--hp-accent-soft); }
.views { list-style: none; margin: 0; padding: 0; }
.views li { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 8px; }
.views li:hover { background: var(--hp-surface-2); }
.views li span { margin-left: auto; display: flex; }
.viewport { flex: 1; position: relative; min-width: 0; background: #dfe7ef; }
#stage, #c3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.vp-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 8px; row-gap: 6px; align-items: center; pointer-events: none; }
.vp-top .glass-sel { flex: none; max-width: 200px; }
.vp-top > * { pointer-events: auto; }
.vp-top .seg { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.vp-top .seg button.on { background: var(--hp-accent-soft); box-shadow: none; }
.vp-top .btn { margin-left: auto; }
.vp-hint { position: absolute; top: 58px; left: 12px; background: rgba(255, 255, 255, .96); border: 1px solid var(--hp-border); padding: 7px 11px; border-radius: 10px; font-size: 12.5px; pointer-events: none; max-width: 60%; box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
.vp-hint:empty { display: none; }
.vp-card { position: absolute; top: 58px; right: 12px; width: 350px; max-height: calc(100% - 130px); overflow: auto; background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; padding: 16px; box-shadow: var(--hp-shadow); animation: slin .22s ease-out; }
.vp-card > .x, .pr-card > .x { position: absolute; top: 10px; right: 10px; }
.vp-bottom { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; pointer-events: none; }
.vp-bottom > * { pointer-events: auto; }
.timebar { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--hp-border); padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.timebar .material-icons { color: var(--hp-warn); }
.timebar input { width: 220px; }
.timebar b { font-variant-numeric: tabular-nums; min-width: 42px; }
.drop-overlay { position: absolute; inset: 0; background: rgba(15, 148, 136, .12); border: 3px dashed var(--hp-accent); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--hp-accent-2); z-index: 5; }

/* ficha da unidade */
.ucard { display: flex; flex-direction: column; gap: 12px; }
.ucard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-right: 30px; }
.ucode { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.usub { color: var(--hp-muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.ucard-head .badge { margin-top: 5px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv > div { background: var(--hp-surface-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.kv span { color: var(--hp-muted); font-size: 11.5px; font-weight: 600; }
.kv b { font-size: 14.5px; }
.kv .span2 { grid-column: span 2; }
.kv .price { background: var(--hp-accent-soft); }
.kv .price span { color: var(--hp-accent-2); }
.kv .price b { font-size: 21px; color: var(--hp-accent-2); }
.note { font-size: 12.5px; background: var(--hp-surface-2); border-radius: 10px; padding: 8px 10px; line-height: 1.45; }
.warn-note { background: #fef3c7; color: #78350f; }
.plan { background: #fff; border: 1px solid var(--hp-border); border-radius: 12px; padding: 6px; cursor: zoom-in; }
.plan img { width: 100%; display: block; border-radius: 8px; }
.flowbox summary { cursor: pointer; font-weight: 700; padding: 4px 0; color: var(--hp-text); }
.uactions { display: flex; gap: 6px; flex-wrap: wrap; }
.uactions .btn { flex: 1 1 auto; }
table.flow { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
table.flow th { text-align: left; color: var(--hp-muted); font-weight: 700; padding: 6px 4px; border-bottom: 1px solid var(--hp-border); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
table.flow td { padding: 6px 4px; border-bottom: 1px solid var(--hp-border); }
table.flow td small { color: var(--hp-muted); }
table.flow tfoot td { font-weight: 800; border-bottom: 0; }
table.flow.sched { margin-top: 8px; }
table.flow.compact td { padding: 7px 4px; vertical-align: top; }
table.flow.compact td small { display: block; font-size: 11px; }
table.flow.compact td.num { text-align: right; font-weight: 700; white-space: nowrap; }
.warn { background: #fef3c7; color: #78350f; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; margin-top: 8px; }
.plan-edit { display: grid; grid-template-columns: 1fr 180px auto; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--hp-border); border-radius: 14px; }
.plan-edit small { display: block; color: var(--hp-muted); }
.plan-thumb { height: 110px; background: var(--hp-surface-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.plan-thumb img { max-width: 100%; max-height: 100%; background: #fff; }
.hist { margin-top: 14px; }
.hist summary { cursor: pointer; color: var(--hp-accent-2); font-weight: 600; }
.hist ul { list-style: none; padding: 0; margin: 8px 0 0; max-height: 180px; overflow: auto; font-size: 12.5px; }
.hist li { padding: 5px 0; border-bottom: 1px solid var(--hp-border); }
.hist time { color: var(--hp-muted); margin-right: 6px; }

/* simulacao */
.sim { display: grid; grid-template-columns: 330px 1fr; gap: 20px; }
.sim-form { grid-template-columns: 1fr 1fr; align-content: start; }
.sim-total { display: flex; flex-direction: column; background: var(--hp-accent-soft); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.sim-total span { color: var(--hp-accent-2); font-size: 12px; font-weight: 600; }
.sim-total b { font-size: 24px; color: var(--hp-accent-2); font-weight: 800; }
.sim-total small { color: #15803d; font-weight: 600; }
.sim-out details { margin-top: 10px; }
.sim-out summary { cursor: pointer; color: var(--hp-accent-2); font-weight: 600; }
.sim-out .sched { max-height: 260px; display: block; overflow: auto; }

/* espelho */
.mirror { margin-bottom: 20px; background: #fff; border: 1px solid var(--hp-border); border-radius: 16px; padding: 14px; }
.mirror h4 { margin-bottom: 10px; }
.mirror-grid { display: grid; grid-template-columns: 64px repeat(var(--cols), minmax(80px, 1fr)); gap: 5px; }
.mfloor { display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: var(--hp-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mcell { border: 1px solid transparent; border-radius: 10px; padding: 7px 9px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 1px; min-height: 54px; font: inherit; transition: transform .1s, opacity .15s, box-shadow .15s; border-left-width: 4px; }
.mcell:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .12); }
.mcell b { font-size: 14px; font-weight: 800; }
.mcell small { font-size: 10.5px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcell i { font-style: normal; font-size: 11px; font-weight: 700; }
.mcell.st-disponivel { background: #dcfce7; border-color: #bbf7d0; border-left-color: #22c55e; color: #14532d; }
.mcell.st-reservado { background: #fef3c7; border-color: #fde68a; border-left-color: #f59e0b; color: #78350f; }
.mcell.st-vendido { background: #fee2e2; border-color: #fecaca; border-left-color: #ef4444; color: #7f1d1d; }
.mcell.st-bloqueado { background: #e2e8f0; border-color: #cbd5e1; border-left-color: #64748b; color: #334155; }
.mcell.dim { opacity: .22; }
.mcell.sel { box-shadow: 0 0 0 3px var(--hp-accent); }
.mempty { min-height: 54px; }

/* logo do empreendimento */
.logo-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.logo-box { width: 140px; height: 80px; background: var(--hp-surface-2); border: 1px solid var(--hp-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.logo-box img { max-width: 100%; max-height: 100%; }
.panel > h3:not(:first-child) { margin-top: 18px; }

/* apresentacao */
.present { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #dfe7ef; }
.pv { position: absolute; inset: 0; }
.pr-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border: 1px solid var(--hp-border); border-radius: 16px; box-shadow: var(--hp-shadow); flex-wrap: wrap; }
.pr-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-brand .hp-brand img { height: 34px; }
.pr-brand > div { padding-left: 10px; border-left: 1px solid var(--hp-border); min-width: 0; }
.pr-brand b { font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-brand small { color: var(--hp-muted); }
.pr-logo img { height: 38px; max-width: 130px; object-fit: contain; display: block; border-radius: 6px; }
.pr-filters { display: flex; gap: 6px; align-items: center; margin-left: 12px; flex-wrap: wrap; }
.pr-filters select { height: 34px; border-radius: 999px; font-weight: 600; background-color: var(--hp-surface-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; border: 1px solid var(--hp-border); background: var(--hp-surface-2); color: var(--hp-text); padding: 0 14px; border-radius: 999px; cursor: pointer; font: 600 13px var(--hp-font); white-space: nowrap; }
.chip .material-icons { font-size: 17px; }
.chip:hover { background: #fff; border-color: #cbd5e1; }
.chip.on { background: var(--brand); color: #fff; border-color: transparent; }
.pr-views .chip { background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.pr-actions { margin-left: auto; display: flex; gap: 6px; }
.pr-card { position: absolute; top: var(--prtop, 82px); right: 10px; bottom: 82px; width: 380px; overflow: auto; background: #fff; border: 1px solid var(--hp-border); border-radius: 18px; padding: 18px; box-shadow: var(--hp-shadow); animation: slin .25s ease-out; }
@keyframes slin { from { opacity: 0; transform: translateX(20px); } }
.pr-card .btn.primary { background: var(--brand); border-color: var(--brand); }
.pr-card .kv .price { background: color-mix(in srgb, var(--brand) 12%, #fff); }
.pr-card .kv .price b, .pr-card .kv .price span { color: color-mix(in srgb, var(--brand) 80%, #000); }
.pr-mirror { position: absolute; top: var(--prtop, 82px); left: 10px; bottom: 82px; width: min(580px, calc(100% - 420px)); overflow: auto; background: #fff; border: 1px solid var(--hp-border); border-radius: 18px; padding: 14px; box-shadow: var(--hp-shadow); }
.pr-mirror .mirror { border: 0; padding: 0; }
.pm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pm-head b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.pm-head b .material-icons { color: var(--hp-accent); }
.pr-ftoggle { display: none !important; }
.pr-fcount { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pr-fcount[hidden] { display: none; }
.pr-tip { position: absolute; left: 0; right: 0; margin: 0 auto; width: fit-content; bottom: 96px; z-index: 15; display: flex; gap: 8px; align-items: center; max-width: min(520px, calc(100% - 24px)); padding: 10px 14px; border-radius: 14px; background: rgba(15, 23, 42, .86); color: #fff; font-size: 13.5px; box-shadow: var(--hp-shadow); pointer-events: none; animation: tipin .4s ease-out; }
.pr-tip .material-icons { color: #fde68a; }
@keyframes tipin { from { opacity: 0; transform: translateY(8px); } }
@keyframes slup { from { transform: translateY(30px); opacity: 0; } }
.pr-hint { position: fixed; z-index: 20; background: #fff; border: 1px solid var(--hp-border); padding: 7px 11px; border-radius: 10px; font-size: 13px; pointer-events: none; display: flex; gap: 8px; align-items: center; white-space: nowrap; box-shadow: var(--hp-shadow); }
.pr-hint span { color: var(--hp-muted); }
.pr-bottom { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; pointer-events: none; }
.pr-bottom > * { pointer-events: auto; }
.pr-time { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border: 1px solid var(--hp-border); padding: 7px 14px 7px 8px; border-radius: 16px; box-shadow: var(--hp-shadow); }
.pr-time .play { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; }
.pr-time .play:hover { background: var(--brand); filter: brightness(.92); color: #fff; }
.trk { display: flex; flex-direction: column; }
.trk input { width: 260px; }
.ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--hp-muted); padding: 0 2px; }
.pr-time b { font-variant-numeric: tabular-nums; min-width: 62px; font-size: 15px; }
.pr-time input[type=date] { height: 30px; }
.pr-views { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-legend { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pr-count { color: var(--hp-text); background: rgba(255, 255, 255, .9); padding: 2px 9px; border-radius: 99px; font-weight: 600; }
.pr-desc { position: absolute; left: 10px; top: var(--prtop, 82px); max-width: 340px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border: 1px solid var(--hp-border); border-radius: 14px; padding: 10px 14px; color: var(--hp-text); font-size: 13px; line-height: 1.5; pointer-events: none; }
.pr-mirror:not([hidden]) ~ .pr-desc { display: none; }

/* desfazer / refazer */
.hp-history { display: inline-flex; align-items: center; gap: 2px; padding-left: 6px; border-left: 1px solid var(--hp-border); }
.hp-history .icon-btn { color: var(--hp-text); }
.hp-history .icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.statusbar .warn-txt { color: var(--hp-warn); font-weight: 600; }

/* pendencias do dia */
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--hp-border); border-left: 4px solid var(--hp-warn); font-weight: 600; }
.alert > .material-icons { color: var(--hp-warn); }
.alert > span { flex: 1; }
.alert.al-backup { border-left-color: var(--hp-accent); }
.alert.al-backup > .material-icons { color: var(--hp-accent); }
.pill.warn-pill { background: #fef3c7; color: #b45309; }
.pill .material-icons { font-size: 14px; margin-right: 3px; }
td.up { color: #15803d; font-weight: 700; }
td.down { color: #b91c1c; font-weight: 700; }
.corr-note { margin-top: 6px; }

/* comparar */
#comparebar { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; background: #fff; border: 1px solid var(--hp-border); border-radius: 999px; box-shadow: var(--hp-shadow); }
#comparebar > .material-icons { color: var(--hp-accent); }
.cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--hp-surface-2); font-weight: 700; font-size: 13px; }
.cmp-chip .icon-btn { width: 22px; height: 22px; }
.cmp-chip .icon-btn .material-icons { font-size: 15px; }
.cmp-table { display: grid; grid-template-columns: 140px repeat(var(--n), 1fr); border: 1px solid var(--hp-border); border-radius: 12px; overflow: hidden; }
.cmp-table > div { padding: 9px 12px; border-bottom: 1px solid var(--hp-border); }
.cmp-h { background: var(--hp-surface-2); font-size: 16px; }
.cmp-h small { display: block; color: var(--hp-muted); font-size: 12px; }
.cmp-l { color: var(--hp-muted); font-size: 12.5px; font-weight: 600; background: #fafbfd; }
.cmp-v { font-weight: 600; }
.cmp-v.best { background: var(--hp-accent-soft); color: var(--hp-accent-2); }
.cmp-v .plan { padding: 3px; }

/* bussola, corte, vista da janela */
.compass { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .94); border: 1px solid var(--hp-border); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); display: flex; align-items: center; justify-content: center; pointer-events: auto; flex: none; }
.compass i { color: #dc2626; font-size: 26px; transition: transform .1s linear; }
.compass b { position: absolute; top: -2px; font-size: 9px; color: var(--hp-muted); }
.vp-top .compass { margin-left: 4px; }
.pr-bottom .compass { align-self: flex-end; }
.glass-sel { height: 30px; font-weight: 600; font-size: 12.5px; background-color: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
#winbar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; background: rgba(255, 255, 255, .96); border: 1px solid var(--hp-border); border-radius: 999px; box-shadow: var(--hp-shadow); white-space: nowrap; font-size: 13px; }
#winbar > .material-icons { color: var(--hp-accent); }
body.in-window .vp-card, body.in-window .pr-card, body.in-window .pr-mirror, body.in-window .vp-top, body.in-window .pr-desc, body.in-window #comparebar { display: none !important; }

/* quiosque */
.present.kiosk [data-exit], .present.kiosk [data-full] { display: none; }
.present.kiosk [data-kiosk] { background: var(--brand); color: #fff; border-color: transparent; }
.pr-actions .btn.on { background: var(--brand); color: #fff; border-color: transparent; }

/* idiomas (como o menu da barra de status do planner) */
.lang-menu { position: relative; display: inline-flex; }
.lang-btn { gap: 4px; font-weight: 700; }
.lang-btn .material-icons { font-size: 17px; }
.statusbar .lang-btn { height: 24px; padding: 0 6px; font-size: 11.5px; color: var(--hp-muted); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--hp-border); border-radius: 12px; box-shadow: var(--hp-shadow); display: flex; flex-direction: column; }
.lang-menu.up .lang-list { top: auto; bottom: calc(100% + 6px); }
.lang-list button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: 500 13.5px var(--hp-font); color: var(--hp-text); text-align: left; }
.lang-list button:hover { background: var(--hp-surface-2); }
.lang-list button.on { color: var(--hp-accent-2); font-weight: 700; }
.lang-list button .material-icons { width: 18px; font-size: 18px; color: var(--hp-accent); }
.lang-list button span { flex: 1; }
.lang-list button small { font-size: 10px; font-weight: 700; color: var(--hp-muted); letter-spacing: .04em; }
.statusbar { overflow: visible; }
/* textos da barra de status encolhem com "…"; o menu de idioma nunca sai da tela */
.statusbar > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.statusbar > span.grow { flex: 1 1 0; }
.statusbar .lang-menu { flex: none; margin-left: auto; }

/* responsivo */
/* menu de abas numa linha propria, inteiro e com os nomes, quando nao cabe ao lado do titulo (editor.js: fitTopbar) */
.page-editor .topbar.tabs-row { flex-wrap: wrap; height: auto; min-height: var(--hp-topbar-h); padding: 6px 10px; row-gap: 6px; }
.page-editor .topbar.tabs-row .tabs { order: 3; flex: 1 1 100%; width: 100%; margin: 0; flex-wrap: wrap; overflow: visible; }
.page-editor .topbar.tabs-row .tabs a { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
@media (max-width: 1180px) {
	.page-editor .topbar { flex-wrap: wrap; height: auto; min-height: var(--hp-topbar-h); padding: 6px 10px; row-gap: 6px; }
	.page-editor .tabs { order: 3; flex: 1 1 100%; width: 100%; margin: 0; flex-wrap: wrap; overflow: visible; }
	.page-editor .tabs a { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
	.page-editor .top-actions .btn span { display: none; }
	.pr-actions .btn span { display: none; }
	.statusbar .sb-brand { display: none; }
	.vp-top .btn span { display: none; }
	.vp-top .seg button { padding: 0 8px; }
}
@media (max-width: 1000px) {
	.home-top .top-actions .btn:not(.primary) span { display: none; }
}
@media (max-width: 820px) {
	.home-top .page-title { display: none; }
}
@media (max-width: 1100px) {
	.cols2 { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.side { width: 330px; }
	.ptitle { max-width: 160px; }
	.page-editor .hp-brand .hp-brand-name { display: none; }
}
@media (max-width: 760px) {
	body { overflow: auto; }
	.topbar { flex-wrap: wrap; height: auto; padding: 8px 10px; }
	.tabs { order: 3; width: 100%; margin: 0; }
	.page-editor .tabs a span { display: none; }
	.page-editor .tabs a.on span { display: inline; }
	.page-editor .tabs a.on { flex-grow: 3; }
	.split { flex-direction: column; }
	.side { width: 100%; height: 45%; border-right: 0; border-bottom: 1px solid var(--hp-border); }
	.sim { grid-template-columns: 1fr; }
	/* apresentacao no celular: filtros atras do botao, barra do horario inteira, ficha como folha inferior */
	.pr-top { gap: 8px; padding: 8px; }
	.pr-brand .hp-brand { display: none; }
	.pr-brand > div { padding-left: 0; border-left: 0; }
	.pr-filters { margin-left: 0; display: none; width: 100%; }
	.pr-top.filters-open .pr-filters { display: flex; }
	.pr-ftoggle { display: inline-flex !important; }
	.pr-ftoggle span { display: inline !important; }
	.pr-kiosk { display: none !important; }
	.pr-actions { width: 100%; margin-left: 0; justify-content: space-between; }
	.pr-bottom { gap: 6px; }
	.pr-time { flex: 1 1 100%; padding: 6px 10px 6px 6px; gap: 8px; }
	.pr-time .trk { flex: 1; min-width: 0; }
	.trk input { width: 100%; }
	.pr-time input[type=date] { display: none; }
	.pr-time b { min-width: 0; }
	.pr-legend { margin-left: 0; flex: 1; align-items: flex-start; }
	.pr-card { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 64vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 16px 16px 22px; box-shadow: 0 -12px 40px rgba(15, 23, 42, .22); animation: slup .25s ease-out; }
	.present.card-open .pr-bottom { display: none; }
	.pr-tip { bottom: 150px; font-size: 12.5px; }
	.pr-mirror { width: auto; right: 10px; left: 10px; }
	.pr-desc { display: none; }
	.steps { grid-template-columns: 1fr; }
	.plan-edit { grid-template-columns: 1fr; }
	.statusbar { display: none; }
}

/* impressao */
#print { display: none; }
@media print {
	@page { size: A4; margin: 12mm; }
	html, body { background: #fff !important; color: #111 !important; overflow: visible !important; height: auto; }
	body > *:not(#print) { display: none !important; }
	#print { display: block !important; font-size: 11px; color: #111; }
	#print * { color: #111; }
	.ph { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #0f9488; padding-bottom: 10px; margin-bottom: 14px; }
	.ph h1 { font-size: 20px; }
	.ph p { margin: 2px 0 0; color: #555 !important; }
	.ph-logo img { height: 44px; max-width: 140px; object-fit: contain; }
	.ph-title { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
	.ph-title b { font-size: 14px; }
	.pf-brand { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
	.pf-brand img { height: 16px; width: auto; }
	#print h2 { font-size: 22px; }
	#print h3 { font-size: 13px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
	.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
	.pplan img { width: 100%; border: 1px solid #ddd; }
	.kvt { border-collapse: collapse; margin: 8px 0; }
	.kvt th { text-align: left; padding: 3px 14px 3px 0; color: #555 !important; font-weight: 500; }
	.kvt td { padding: 3px 0; }
	#print table.flow, .ptable { width: 100%; border-collapse: collapse; }
	#print table.flow th, #print table.flow td, .ptable th, .ptable td { border-bottom: 1px solid #ccc; padding: 4px 6px; text-align: left; }
	#print table.flow.sched { display: table; max-height: none; }
	.ptable tr.st-vendido td { color: #999 !important; }
	.ptable tr.st-reservado td:last-child { font-weight: 700; }
	.pf { margin-top: 18px; border-top: 1px solid #999; padding-top: 8px; font-size: 9.5px; color: #555 !important; }
	.pf p { margin: 2px 0; }
	#print .legend .lg { background: #fff; border-color: #bbb; box-shadow: none; }
	#print .mirror { border: 0; padding: 0; }
	#print .mcell { min-height: 40px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#print .legend i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#print .mirror-grid { grid-template-columns: 50px repeat(var(--cols), 1fr); }
	#print .mfloor { color: #333 !important; }
}

/* realidade aumentada */
.ar-result { display: flex; gap: 16px; align-items: flex-start; margin-top: 10px; }
.ar-qr { width: 180px; flex: none; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line, #e3e7ee); }
.ar-qr svg { width: 100%; height: auto; display: block; }
.ar-link { width: 100%; margin: 6px 0; font-size: 12px; }
@media (max-width: 560px) { .ar-result { flex-direction: column; align-items: center; } }
/* horas de sol na ficha */
.note.sunnote { display: flex; align-items: center; gap: 6px; }
.note.sunnote .material-icons { font-size: 18px; color: #e6a700; }
/* receber modelo do planner */
.panel.receive { max-width: 560px; margin: 40px auto; }
.panel.receive .rc-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.panel.receive .rc-body h2 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 20px; }

/* assistente de IA (Puter.js) */
.ai-btn { color: var(--hp-ai); }
.ai-btn .material-icons { color: var(--hp-ai); }
.ai-panel { position: fixed; top: var(--hp-topbar-h); right: 0; bottom: var(--hp-status-h); width: min(420px, 100vw); z-index: 60; background: var(--hp-surface); border-left: 1px solid var(--hp-border); box-shadow: var(--hp-shadow); display: flex; flex-direction: column; }
.ai-panel[hidden] { display: none; }
.ai-panel.drop { outline: 3px dashed var(--hp-ai); outline-offset: -8px; }
.ai-panel > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--hp-border); }
.ai-panel > header .material-icons:first-child { color: var(--hp-ai); }
.ai-panel > header b { flex: none; }
.ai-model { flex: 1; min-width: 0; font-size: 12px; padding: 4px 6px; border: 1px solid var(--hp-border); border-radius: 8px; background: var(--hp-surface-2); }
.ai-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.ai-msg { padding: 9px 12px; border-radius: 12px; line-height: 1.45; max-width: 92%; word-wrap: break-word; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin: 0; }
.ai-msg ul { margin: 4px 0; padding-left: 18px; }
.ai-msg .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre-wrap; }
.ai-user { align-self: flex-end; background: var(--hp-accent-soft); }
.ai-assistant { align-self: flex-start; background: var(--hp-surface-2); }
.ai-msg.interim { opacity: .75; font-size: 13px; }
.ai-msg.error { background: #fee2e2; color: #7f1d1d; }
.ai-atts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ai-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--hp-muted); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--hp-border); }
.ai-chip .material-icons { font-size: 13px; }
.ai-chip.ok { border-color: #bbf7d0; color: #166534; } .ai-chip.fail { border-color: #fecaca; color: #991b1b; }
.ai-empty { display: flex; flex-direction: column; gap: 8px; align-items: stretch; color: var(--hp-muted); }
.ai-empty > .material-icons { font-size: 34px; color: var(--hp-ai); align-self: center; }
.ai-empty p { text-align: center; margin: 0 0 4px; }
.ai-sug { text-align: left; border: 1px solid var(--hp-border); background: var(--hp-surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--hp-text); font: inherit; }
.ai-sug:hover { border-color: var(--hp-ai); }
.ai-status { min-height: 18px; padding: 0 14px; font-size: 12px; color: var(--hp-ai); }
.ai-attach { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 12px; }
.ai-panel > footer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--hp-border); }
.ai-panel textarea { flex: 1; resize: none; border: 1px solid var(--hp-border); border-radius: 10px; padding: 8px 10px; font: inherit; max-height: 160px; }
.ai-foot { display: block; padding: 0 12px 8px; color: var(--hp-muted); font-size: 11px; }
.ai-panel.busy [data-aisend] { background: var(--hp-danger); border-color: var(--hp-danger); }
@media (max-width: 720px) { .ai-panel { top: 0; bottom: 0; } }

/* anuncios (AdSense) so no editor: nunca na apresentacao, no quiosque ou na tela inicial */
body:not(.page-editor) ins.adsbygoogle, body:not(.page-editor) .google-auto-placed, body:not(.page-editor) .adsbygoogle { display: none !important; }

/* exportar 3D */
.exp-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.exp-fmt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--hp-border); border-radius: 12px; cursor: pointer; }
.exp-fmt:has(input:checked) { border-color: var(--hp-accent); background: var(--hp-accent-soft); }
.exp-fmt input { margin-top: 3px; }
.exp-fmt b { display: block; font-size: 15px; }
.exp-fmt small { color: var(--hp-muted); line-height: 1.4; }
.exp-opts { display: grid; gap: 6px; }
@media (max-width: 560px) { .exp-formats { grid-template-columns: 1fr; } }

/* guia rapido (primeira visita) */
.tour { position: fixed; inset: 0; z-index: 200; }
.tour-mask { position: fixed; inset: 0; width: 100%; height: 100%; }
.tour-mask path { fill: rgba(15, 23, 42, .58); }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 3px var(--hp-accent), 0 0 24px rgba(15, 148, 136, .5); transition: all .25s ease; pointer-events: none; }
.tour.centered .tour-spot { display: none; }
.tour-card { position: fixed; background: #fff; border-radius: 16px; padding: 14px 16px 12px; box-shadow: 0 20px 50px -12px rgba(2, 6, 23, .5); transition: top .25s ease, left .25s ease; }
.tour-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -6px 2px 0; }
.tour-step { font-size: 12px; font-weight: 600; color: var(--hp-accent-2); }
.tour-card h3 { font-size: 16px; margin: 2px 0 6px; }
.tour-card p { color: var(--hp-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 10px; }
.tour-dots { display: flex; gap: 5px; margin-bottom: 10px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hp-border); }
.tour-dots i.on { background: var(--hp-accent); width: 16px; border-radius: 3px; }
.tour-btns { display: flex; align-items: center; gap: 6px; }
.tour-btns .grow { flex: 1; }

/* ---- galeria de lazer e interiores + material de vendas --------------------------------------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.gal-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 2px dashed var(--hp-border); border-radius: 14px; text-align: center; }
.gal-empty .material-icons { font-size: 38px; color: var(--hp-accent); }
.panel.drop { outline: 2px dashed var(--hp-accent); outline-offset: -6px; background: var(--hp-accent-soft); }
.gcard { border: 1px solid var(--hp-border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.gthumb { position: relative; display: block; border: 0; padding: 0; margin: 0; cursor: zoom-in; aspect-ratio: 16 / 10; background: var(--hp-surface-3); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g360, .gal-th i { position: absolute; left: 8px; top: 8px; background: rgba(15, 23, 42, .78); color: #fff; font: 700 11px/1 var(--hp-font); font-style: normal; padding: 4px 6px; border-radius: 6px; }
.gcard .gname, .gcard select { margin: 8px 8px 0; height: 32px; border: 1px solid var(--hp-border); border-radius: 8px; padding: 0 8px; font: inherit; min-width: 0; background: #fff; color: var(--hp-text); }
.gcard .gname { font-weight: 600; }
.gbtns { display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 10px; }
.gbtns .grow, .mrow .grow { flex: 1; }
.gchk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--hp-muted); cursor: pointer; }
.gchk input { width: auto; margin: 0; }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.mat-edit { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid var(--hp-border); border-radius: 10px; }
.mrow > .material-icons { color: var(--hp-accent); }
.mrow input { flex: 1; min-width: 0; height: 30px; border: 1px solid transparent; border-radius: 7px; padding: 0 8px; font: inherit; font-weight: 600; background: transparent; color: var(--hp-text); }
.mrow input:hover, .mrow input:focus { border-color: var(--hp-border); background: #fff; }
.mrow small { white-space: nowrap; }
.mat-list { display: flex; flex-direction: column; gap: 8px; min-width: min(420px, 80vw); }
.mat-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hp-border); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--hp-text); }
.mat-item:hover { border-color: var(--brand); background: var(--hp-surface-2); }
.mat-item > .material-icons:first-child { color: var(--brand); font-size: 26px; }
.mat-item span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mat-item small { color: var(--hp-muted); }
.mat-item > .material-icons:last-child { color: var(--hp-muted); }
.present.kiosk .pr-mat { display: none; }

.gal { position: fixed; inset: 0; z-index: 900; background: #0b0d12; color: #fff; display: flex; flex-direction: column; }
.gal-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; flex-wrap: wrap; }
.gal-title { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.gal-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-title small { color: rgba(255, 255, 255, .62); }
.gal-groups { display: flex; gap: 6px; flex-wrap: wrap; }
.gal-groups .chip { background: rgba(255, 255, 255, .1); border-color: transparent; color: #fff; height: 32px; }
.gal-groups .chip.on { background: var(--brand); }
.gal .gal-x { color: #fff; width: 40px; height: 40px; background: rgba(255, 255, 255, .1); border-radius: 50%; }
.gal .gal-x:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.gal-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.gal-c { position: absolute; inset: 0; width: 100%; height: 100%; outline: none; touch-action: none; cursor: grab; }
.gal-c:active { cursor: grabbing; }
.gal-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.gal-load { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; }
.gal-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(15, 23, 42, .78); padding: 9px 14px; border-radius: 999px; font-size: 13px; pointer-events: none; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-nav:hover { background: rgba(15, 23, 42, .8); }
.gal-nav .material-icons { font-size: 30px; }
.gal-nav.prev { left: 14px; }
.gal-nav.next { right: 14px; }
.gal-strip { display: flex; gap: 8px; padding: 10px 14px 14px; overflow-x: auto; scrollbar-width: thin; }
.gal-th { position: relative; flex: 0 0 auto; width: 132px; border: 2px solid transparent; border-radius: 10px; padding: 0; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; overflow: hidden; text-align: left; font: inherit; }
.gal-th img { width: 100%; height: 76px; object-fit: cover; display: block; }
.gal-th span { display: block; font-size: 11.5px; padding: 5px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-th.on { border-color: var(--brand); }
.gal-th i { left: 5px; top: 5px; }
@media (max-width: 640px) {
	.gal-top { padding: 8px 8px 8px 12px; }
	.gal-groups { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
	.gal-nav { width: 38px; height: 38px; }
	.gal-th { width: 104px; }
	.gal-th img { height: 60px; }
}

/* ---- busca na apresentacao, miniaturas da ficha, proposta do cliente, atualizacao da tabela ---- */
.pr-search { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 4px 0 10px; border: 1px solid var(--hp-border); border-radius: 999px; background: var(--hp-surface-2); }
.pr-search .material-icons { font-size: 18px; color: var(--hp-muted); }
.pr-search input { border: 0; background: transparent; width: 92px; height: 30px; font: inherit; font-weight: 600; color: var(--hp-text); outline: none; padding: 0; }
.pr-search:focus-within { border-color: var(--brand); background: #fff; }
.uthumbs { margin-top: 10px; }
.uthumbs-t { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--hp-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.uthumbs-t .material-icons { font-size: 16px; color: var(--brand); }
.uthumbs > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.uthumb { position: relative; padding: 0; border: 1px solid var(--hp-border); border-radius: 9px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--hp-surface-3); }
.uthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uthumb:hover { border-color: var(--brand); }
.uthumb i { position: absolute; left: 4px; top: 4px; background: rgba(15, 23, 42, .78); color: #fff; font: 700 9.5px/1 var(--hp-font); font-style: normal; padding: 3px 4px; border-radius: 4px; }
.uthumb b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .55); color: #fff; font-size: 16px; }
.sim-offer { border: 1px dashed var(--hp-border); border-radius: 10px; padding: 8px 10px; }
.sim-offer summary { cursor: pointer; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--hp-accent-2); }
.sim-offer summary .material-icons { font-size: 18px; }
.sim-offer[open] summary { margin-bottom: 8px; }
.sim-swap { display: flex; align-items: center; gap: 8px; background: #fff7ed; color: #9a3412; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.alert.al-tabela { border-left-color: var(--hp-danger); }
.alert.al-tabela > .material-icons { color: var(--hp-danger); }
.sync-sum { margin: 0; padding-left: 18px; line-height: 1.7; }
.warn-txt { color: var(--hp-warn); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.warn-txt .material-icons { font-size: 16px; }
.gal-usage { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin: 0 4px; }
.gal-usage .material-icons { font-size: 16px; vertical-align: -3px; }
.gcard .gcap { margin: 6px 8px 0; height: 30px; border: 1px solid var(--hp-border); border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12.5px; min-width: 0; color: var(--hp-text); }
.gcard[draggable="true"], .mrow[draggable="true"] { cursor: grab; }
.gcard.dragging, .mrow.dragging { opacity: .45; }
.gcard.drop-before { box-shadow: -4px 0 0 var(--hp-accent); }
.gcard.drop-after { box-shadow: 4px 0 0 var(--hp-accent); }
.mrow.drop-before { box-shadow: 0 -3px 0 var(--hp-accent); }
.mrow.drop-after { box-shadow: 0 3px 0 var(--hp-accent); }
.mrow .grip { color: var(--hp-muted) !important; font-size: 18px; cursor: grab; }
.gal-cap { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: min(720px, calc(100% - 120px)); background: rgba(15, 23, 42, .78); color: #fff; padding: 9px 16px; border-radius: 12px; font-size: 14px; text-align: center; pointer-events: none; }
.gal-cap:not([hidden]) ~ .gal-hint { bottom: 64px; }
@media (max-width: 640px) { .pr-search input { width: 74px; } .gal-cap { max-width: calc(100% - 24px); bottom: 10px; font-size: 13px; } }

/* ---- volumes: gerador inteligente e edicao de formato ---- */
.vgen-h { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 0; font: inherit; color: var(--hp-text); cursor: pointer; text-align: left; }
.vgen-h b { flex: 1; }
.vgen-h .material-icons { color: var(--hp-accent); font-size: 18px; }
.vgen-h .material-icons:last-child { color: var(--hp-muted); }
.vgen .row { margin: 8px 0; }
.vgen .btn.on { background: #fff7ed; border-color: #f59e0b; color: #b45309; }
.vgen-more { margin: 6px 0; }
.vgen-more summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--hp-accent-2); padding: 4px 0; }
.vgen-sum { background: var(--hp-surface-2); border-radius: 8px; padding: 7px 9px; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.vgen-sum > .material-icons { font-size: 16px; color: var(--hp-accent); }
.vscope { display: block; margin: 6px 0 8px; }
.vscope select { width: 100%; }
.vshape, .vl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.vshape .seg button, .vl-row .seg button { display: inline-flex; align-items: center; gap: 4px; }
.vshape .seg .material-icons, .vl-row .seg .material-icons { font-size: 16px; }
.vl-row .fld { flex: 1 1 120px; }
.vkeys { display: flex; gap: 6px; align-items: flex-start; }
.vkeys .material-icons { font-size: 16px; }
.draw-help { display: flex; gap: 8px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 9px 10px; margin: 8px 0; font-size: 12.5px; line-height: 1.45; }
.draw-help > .material-icons { color: #ea580c; }
