* {cursor: none;}

.painel {
 line-height: 1 !important;
}

.splash-overlay {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.splash-overlay.splash-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

body {
    cursor: none;
}

label {
    margin-bottom: 3px;
}

.jumbotron {
    width: 100%;
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    background-color: transparent;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

.gridster {
    border: none;
}

.container .jumbotron, .container-fluid .jumbotron {
    padding-right: 0px !important;
    padding-left: 0px !important;
    border-radius: 0px !important;
}

.box {
    height: 100%;
    border: 1px solid #ccc;
    background-color: transparent;
}

.box-header {
    background-color: transparent;
    padding: 0 30px 0 10px;
    cursor: move;
    position: relative;
}

.box-header h3 {
    margin-top: 10px;
    display: inline-block;
}

.navbar {
    border-radius: 0px;
    background: black;
    height: 100px;
}

.footer {
    position: fixed;
    height: 100px;
    bottom: 0;
    width: 100%;
    background-color: black;
}

.controls {
    margin-bottom: 20px;
}

.page-header {
    margin-top: 20px;
}

ul {
    list-style: none;
}

.box-content {
    padding: 10px;
    color: transparent;
}

.box-header-btns {
    top: 15px;
    right: 10px;
    cursor: pointer;
    position: absolute;
}

a {
    color: #ccc;
}

form {
    margin-bottom: 0;
}

.navbar {
    padding: 0 20px;
}

a:hover {
    cursor: pointer;
}

input {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    padding: 4px;
}

.container {
    margin: auto;
    max-width: 1000px;
}

.code-coverage {
    color: #fff;
    font-weight: bold;
    float: right;
    padding: 10px;
}

div#painel {
    background: transparent;
}

.test-center {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100% !important;
    background-color: transparent;
    border-radius: 3px;
}

.center-splash-test {
    margin-top: 7%;
}

.row-centered {
    text-align:center;
}
.col-centered {
    display:inline-block;
    float:none;
    text-align:left;
    margin-right:-4px;
}

.bubble {
    background-color: #6fc300;
    color: #fff;
    border-radius: 5px;
    padding: 15px;
}

.bubble-dot {
    padding: 0 5px;
    position: relative;
    top: -4px;
    cursor: pointer;
}

.bubble-controlls {
    font-size: 15px;
    color: #F98C0E;
}

.impar {
    background-color: #d8d8d8 !important;
}

.bold {
    font-weight: bold;
}

.noprint-lista-espera {
    padding: 7px;
}

.noprint-ultimas-chamadas-tabela {
    padding: 12px !important;
}

.rss {
    overflow: hidden;
}

/* =========================================================
   Contrato de renderização compartilhado com o Gestor.
   O grid e os componentes usam pixels lógicos. Somente o
   canvas raiz recebe transform: scale(...).
   ========================================================= */
html,
body {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: #000;
}

body > .container-fluid,
.qpsec-app-container,
.qpsec-app-view,
.qpsec-app-view > [ui-view],
.qpsec-app-view [ui-view] {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.qpsec-runtime-viewport {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.qpsec-runtime-stage {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.qpsec-render-canvas {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

.qpsec-render-canvas,
.qpsec-render-canvas * {
    box-sizing: border-box;
}

.qpsec-runtime-canvas-inner,
.qpsec-render-canvas .painel,
.qpsec-render-canvas .test-center,
.qpsec-render-canvas .gridster,
.qpsec-render-canvas .gridster > ul {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.qpsec-render-canvas .painel {
    position: relative;
    overflow: hidden;
}

.qpsec-render-canvas .gridster > ul {
    position: relative;
    list-style: none;
}

.qpsec-render-canvas .box,
.qpsec-render-canvas .box-content,
.qpsec-render-canvas render-template {
    min-width: 0;
    min-height: 0;
}

.qpsec-render-canvas render-template {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== BACK MENU (menu por controle remoto — ver docs/streamlinea.md) ===== */
.back-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100000;
    display: none;
    font-family: Arial, Helvetica, sans-serif;
}

.back-menu.back-menu--open {
    display: block;
}

.back-menu__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.back-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 26rem;
    max-width: 40vw;
    background: #1d2733;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    padding: 3rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
}

.back-menu--open .back-menu__panel {
    transform: translateX(0);
}

.back-menu__title {
    color: #8fa3b8;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.back-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.1rem 1.2rem;
    box-sizing: border-box;
    border-radius: 10px;
    color: #e6ecf2;
    font-size: 1.6rem;
    background: transparent;
    border: 0.15rem solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.back-menu__item--focused {
    background: #ffffff;
    color: #1d2733;
    border-color: #2f8fd6;
}

.back-menu__icon {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.back-menu__icon svg,
.back-menu__icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.back-menu__label {
    flex: 1;
}

/* ----- Modal de confirmação de saída ----- */
.back-menu__exit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.back-menu__exit-box {
    background: #1d2733;
    border: 0.1rem solid #33465a;
    border-radius: 14px;
    padding: 2.5rem 2.5rem 2rem;
    min-width: 24rem;
    max-width: 80vw;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.back-menu__exit-msg {
    color: #e6ecf2;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.back-menu__exit-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.back-menu__exit-btn {
    min-width: 7rem;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-size: 1.5rem;
    color: #e6ecf2;
    background: #333333;
    border: 0.15rem solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.back-menu__exit-btn--focused {
    background: #084794;
    color: #ffffff;
    border-color: #ffffff;
}

/* ----- Telas cheias (Privacidade / Configurações) ----- */
.back-menu__page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    /* Mesmo fundo da tela de registro (assets/ui/fundo.png). O caminho é relativo
       a este CSS (app/stylesheets/), por isso o ../../ até a raiz do projeto. */
    background-color: #12181f; /* fallback caso a imagem não carregue */
    background-image: url('../../assets/ui/fundo.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 3rem;
    color: #e6ecf2;
}

.back-menu__page-title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    flex: 0 0 auto;
}

.back-menu__config-subtitle {
    font-size: 1.2rem;
    opacity: 0.75;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    flex: 0 0 auto;
}

/* Privacidade: logo do ProxPlay + 2 QR Codes (Política e Termos) centralizados.
   NOTA: sem `gap` de flexbox — algumas engines de TV (ex.: WebKit da Tizen) não
   suportam. O espaçamento é feito com `margin`. */
.back-menu__page--privacy {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-menu__privacy-logo {
    width: 16rem;
    max-width: 30%;
    height: auto;
    display: block;
    margin-bottom: 2.5rem;
}

.back-menu__privacy-cards {
    display: flex;
    flex-direction: row;
    margin-bottom: 2.5rem;
}

/* Mesmo estilo do card de QR da tela de registro (moldura azul com brilho) */
.back-menu__qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 20, 50, 0.25);
    border-radius: 30px;
    padding: 15px 20px;
    margin: 0 1.75rem; /* 3.5rem de espaçamento entre os cards */
}

.back-menu__qr-label {
    font-size: 1.4rem;
    font-weight: bold;
    color: #e6ecf2;
    text-align: center;
    max-width: 15rem;
    margin-bottom: 1.2rem; /* substitui o gap interno do card */
}

.back-menu__qr-frame {
    padding: 10px;
    background: rgba(5, 1, 122, 0.86);
    border-radius: 20px;
    border: 1px solid #0238db;
    box-shadow:
        0 0 2px #0238db,
        0 0 2px #0238db,
        0 0 2px #0238db,
        0 0 12px rgba(7, 1, 168, 0.86);
}

.back-menu__qr-img {
    width: 14rem;
    height: 14rem;
    display: block;
    background: #ffffff;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
}

.back-menu__privacy-hint {
    font-size: 1.3rem;
    text-align: center;
    color: #e6ecf2;
    opacity: 0.85;
}

/* ----- Tela de Registro: botão de idioma (register.html/RegisterController.js) -----
   Estado selecionado usa a mesma cor de destaque dos botões do menu
   (.back-menu__item--focused / .back-menu__logout-btn--focused: fundo azul #084794,
   borda e texto brancos). O destaque vem da classe --focused: a TV NÃO foca o
   <button> sozinha (LG/Samsung não fazem navegação espacial automática, e sem
   ponteiro nunca há :focus/:hover) — como esse é o único controle da tela, o
   RegisterController mantém o próprio estado de foco (vm.langBtnFocused, ligado
   pela seta ⬇ e desligado pela ⬆) e o CSS só reflete isso. :focus/:active/:hover
   ficam como reforço pro modo Web (mouse/teclado). */
.register-language-btn {
    background-color: transparent;
    border: 2px solid #0238db;
    border-radius: 10px;
    color: #ffffff;
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    outline: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.register-language-btn--focused,
.register-language-btn:hover,
.register-language-btn:focus,
.register-language-btn:active {
    background: #084794;
    border-color: #ffffff;
    color: #ffffff;
}

/* Configurações: lista de itens do localStorage + rodapé com logout */
.back-menu__settings-list {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    min-height: 0;
}

.back-menu__setting-row {
    width: 100%;
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #1d2733;
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    box-sizing: border-box;
}

.back-menu__setting-key {
    font-size: 1.15rem;
    font-weight: bold;
    color: #8fb3d6;
}

.back-menu__setting-val {
    font-size: 1.1rem;
    color: #e6ecf2;
    word-break: break-all;
    opacity: 0.9;
}

.back-menu__settings-empty {
    font-size: 1.3rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Configuração: linha focada (Inicial/Final) enquanto digitando/navegando */
.back-menu__config-row--focused {
    background: #ffffff;
    border: 0.15rem solid #2f8fd6;
}

.back-menu__config-row--focused .back-menu__setting-key,
.back-menu__config-row--focused .back-menu__setting-val {
    color: #1d2733;
}

.back-menu__config-hint {
    font-size: 1.2rem;
    opacity: 0.75;
    text-align: center;
    margin-top: 1rem;
}

.back-menu__settings-footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 1.5rem;
}

.back-menu__logout-btn {
    min-width: 12rem;
    text-align: center;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-size: 1.5rem;
    color: #e6ecf2;
    background: #333333;
    border: 0.15rem solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.back-menu__logout-btn--focused {
    background: #084794;
    color: #ffffff;
    border-color: #ffffff;
}


