.disabled-link { opacity: .6; cursor: default; }
.viewer-card { position: relative; height: calc(100vh - 150px); min-height: 520px; overflow: hidden; background: #0b1030; border: 0; }
.stage { position: absolute; inset: 0; }
.viewer-card:fullscreen { height: 100vh; }
.ov { position: absolute; z-index: 5; }
.ov-tl { top: 14px; left: 14px; backdrop-filter: blur(8px); }
.ov-tl .btn:not(.active) { background: rgba(20,26,60,.7); color: #cfd6ff; border-color: transparent; }
.ov-tr { top: 14px; right: 14px; min-width: 190px; }
.ov-tr select { background-color: rgba(20,26,60,.8); color: #fff; border-color: rgba(255,255,255,.18); }
.ov-r { right: 14px; top: 62px; display: flex; flex-direction: column; gap: 8px; }
.ov-r .btn { background: rgba(20,26,60,.78); color: #fff; backdrop-filter: blur(8px); }
.ov-r .btn.active { background: var(--bs-primary); }
.ov-bl { left: 14px; bottom: 14px; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; background: rgba(20,26,60,.8); padding: 5px 10px; border-radius: 99px; backdrop-filter: blur(8px); }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.cut { right: 14px; bottom: 14px; width: 190px; padding: 8px 12px; color: #fff; background: rgba(20,26,60,.8); border-radius: 10px; backdrop-filter: blur(8px); }
.cut .form-range { margin: 2px 0 0; }
.ov-hint { left: 50%; bottom: 62px; transform: translateX(-50%); color: rgba(255,255,255,.55); pointer-events: none; text-align: center; width: 70%; }
.tip { position: absolute; z-index: 9; pointer-events: none; background: rgba(8,12,34,.94); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 12px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.15); }
.tip b { font-size: 13px; }
.st { font-weight: 600; }
.st-disponivel { color: #34d27b; } .st-reservada { color: #ffc94a; } .st-vendida { color: #ff5b63; } .st-bloqueada { color: #9aa3b3; }
.mirror { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 3px; font-size: 11px; }
.mirror .hd { color: var(--bs-secondary-color); text-align: center; align-self: center; }
.mirror button { border: 0; border-radius: 4px; padding: 4px 0; color: #fff; font-weight: 600; font-size: 10.5px; cursor: pointer; }
.mirror button.disponivel { background: linear-gradient(180deg,#14c95a,#5fe39a); color:#04361a; } .mirror button.reservada { background: linear-gradient(180deg,#f5a90a,#ffd66e); color: #3b2a00; } .mirror button.vendida { background: linear-gradient(180deg,#f0283e,#ff808a); color:#fff; } .mirror button.bloqueada { background: linear-gradient(180deg,#5d6a88,#9aa6bf); color:#fff; }
.mirror button.sel { outline: 2px solid var(--bs-body-color); outline-offset: 1px; }
.mirror button.dim { opacity: .22; }
.mirror .empty { background: var(--bs-gray-100); border-radius: 4px; }
.kpi { background: var(--bs-gray-100); border-radius: 10px; padding: 8px 4px; }
.kpi .v { font-weight: 700; font-size: 15px; } .kpi .l { font-size: 10.5px; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: .03em; }
.plan-img { cursor: zoom-in; }
.login-body { background: linear-gradient(135deg, #0b1030, #2a2f63); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-card { width: 100%; max-width: 420px; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; max-height: 560px; overflow: auto; padding: 2px; }
.gal-item { border: 1px solid var(--bs-border-color); border-radius: 8px; padding: 8px; background: var(--bs-body-bg); }
.gal-item.sel { border-color: var(--bs-primary); box-shadow: 0 0 0 1px var(--bs-primary); }
.gal-item img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; display: block; background: #eee; margin-bottom: 4px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-h { text-align: center; font-size: 12px; font-weight: 600; color: var(--bs-secondary-color); padding: 4px 0; }
.cal-d { min-height: 86px; border: 1px solid var(--bs-border-color); border-radius: 6px; padding: 4px; cursor: pointer; overflow: hidden; background: var(--bs-body-bg); }
.cal-d:hover { border-color: var(--bs-primary); }
.cal-d.hoje .cal-n { background: var(--bs-primary); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cal-d.passado { opacity: .6; } .cal-d.sel { box-shadow: 0 0 0 2px var(--bs-primary); }
.cal-n { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.cal-ev { font-size: 10.5px; padding: 1px 4px; border-radius: 4px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.cal-ev.confirmada, .cal-dot.confirmada { background: #4f6df5; } .cal-ev.pendente, .cal-dot.pendente { background: #f5a524; } .cal-ev.concluida, .cal-dot.concluida { background: #8a93a3; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.sino-pulso { animation: sinoPulso .5s ease 3; } @keyframes sinoPulso { 50% { transform: scale(1.5); } }
#sinoN { font-size: 10px; padding: 3px 5px; line-height: 1; min-width: 16px; top: 3px !important; right: 1px !important; }

/* abas (nav-pills) dentro de card: respiro entre as abas e o conteúdo/busca */
.card-header.pb-0 + .card-body { padding-top: 1.25rem; }
.card-header > .nav-pills { padding-bottom: .25rem; }

/* Espelho 3D: em telas largas o 3D fica fixo e só a coluna da direita rola */
@media (min-width: 1400px) {
  .espelho-row { height: calc(100vh - 150px); min-height: 520px; flex-wrap: nowrap; }
  .espelho-row .viewer-card { height: 100%; }
  .espelho-side { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; scrollbar-width: thin; }
}

/* fotos de rosto */
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.foto-box { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--bs-gray-200, #e9ecef); display: flex; align-items: center; justify-content: center; flex: none; border: 2px solid var(--bs-border-color); }
.foto-box img { width: 100%; height: 100%; object-fit: cover; }
.foto-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.cam-wrap { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1/1; margin: 0 auto; background: #0b1030; border-radius: 12px; overflow: hidden; }
.cam-wrap video, .cam-wrap canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-wrap video { transform: scaleX(-1); }
.cam-guia { position: absolute; inset: 12% 22%; border: 2px dashed rgba(255,255,255,.55); border-radius: 50%; pointer-events: none; }

/* galeria de imagens do Book (modal) */
.gal-stage { position: relative; background: #05081c; border-radius: 10px; height: min(68vh, 640px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gal-stage > img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); font-size: 22px; display: flex; align-items: center; justify-content: center; }
.gal-nav:hover { background: rgba(255,255,255,.3); } .gal-prev { left: 12px; } .gal-next { right: 12px; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs button { flex: none; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #05081c; opacity: .6; }
.gal-thumbs button.on { border-color: var(--bs-primary); opacity: 1; } .gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.img-zoom { cursor: zoom-in; position: relative; display: block; }
.img-zoom .zoom-badge { position: absolute; right: 8px; bottom: 8px; background: rgba(11,16,48,.78); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.modal-content.bg-dark .nav-pills .nav-link { text-transform: none; color: #cfd6ff; }
.modal-content.bg-dark .nav-pills .nav-link.active { color: #fff; }
.modal-content.bg-dark .nav-pills .badge { background: rgba(255,255,255,.18) !important; color: #fff !important; }

/* camadas / sol / vista */
.ov-sol { top: 58px; left: 14px; width: 210px; background: rgba(14,18,48,.78); backdrop-filter: blur(8px); border-radius: 10px; padding: 10px; color: #fff; }
.ov-sol .sol-lbl, .sol-lbl { font-size: 11px; color: #b9c2ee; }
.ov-sol select { background-color: rgba(20,26,60,.9); color: #fff; border-color: rgba(255,255,255,.18); }
.ov-sol .form-check-input { cursor: pointer; } .ov-sol .btn-label-secondary { background: rgba(255,255,255,.14); color: #fff; }
.ov-compass { right: 70px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(14,18,48,.78); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); }
#compassNeedle { position: absolute; inset: 0; transition: transform .08s linear; } #compassNeedle span { position: absolute; left: 50%; top: 1px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: #ff6b6b; }
#compassNeedle::after { content: ''; position: absolute; left: 50%; top: 14px; width: 2px; height: 12px; margin-left: -1px; background: linear-gradient(#ff6b6b 50%, #fff 50%); border-radius: 2px; }
.ov-vista { left: 50%; top: 14px; transform: translateX(-50%); background: rgba(14,18,48,.85); color: #fff; padding: 6px 8px 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); font-size: 13px; white-space: nowrap; z-index: 6; }
.leg-escala { height: 10px; border-radius: 5px; min-width: 150px; }
.viewer-card.em-vista .ov-sol .sol-lbl[for=camadaSel], .viewer-card.em-vista #modeTabs, .viewer-card.em-vista .ov-r button:not(#btnDay):not(#btnFull) { opacity: .5; }
@media (max-width: 767px) { .ov-sol { width: 168px; top: 52px; } .ov-compass { display: none; } }
.ov-sol .form-check-label { color: #fff; cursor: pointer; } .ov-sol .form-check-input:not(:checked) { background-color: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); }

/* operação ao vivo */
.op-pop { position: absolute; z-index: 8; width: 270px; max-height: 70%; overflow: auto; background: rgba(14,18,48,.94); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px 12px; backdrop-filter: blur(8px); font-size: 12.5px; }
.op-pop h6 { color: #fff; margin: 0 0 6px; font-size: 13px; } .op-pop .op-x { position: absolute; right: 8px; top: 6px; background: none; border: 0; color: #cfd6ff; font-size: 18px; line-height: 1; }
.op-pop .op-area { border-top: 1px solid rgba(255,255,255,.12); padding: 6px 0; } .op-pop a { color: #9db7ff; }

/* realidade aumentada (overlay DOM dentro da sessão WebXR) */
.ar-overlay { position: fixed; inset: 0; z-index: 30; pointer-events: none; color: #fff; }
.ar-overlay[hidden] { display: none; }
.ar-dica { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(14,18,48,.82); padding: 8px 14px; border-radius: 999px; font-size: 13px; max-width: 90vw; text-align: center; }
.ar-bar { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: rgba(14,18,48,.82); border-radius: 16px; padding: 10px 14px; pointer-events: auto; }
.ar-bar label { font-size: 12px; display: flex; align-items: center; gap: 6px; } .ar-bar input[type=range] { width: 110px; }
.ar-bar button { border: 0; border-radius: 999px; background: #ff5b63; color: #fff; padding: 7px 14px; font-weight: 600; }

/* câmeras */
.cam-video { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.cam-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.cam-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: #cfd6ff; background: rgba(5,8,28,.82); font-size: 14px; }
.cam-status[hidden] { display: none; } .cam-status.erro { color: #ffb3b8; }
.cam-live { position: absolute; left: 12px; top: 12px; }
