@charset "utf-8";
/* CSS Document */
body{
    margin:0;
   /* background:#000;*/
    min-height:100vh;
	font-family:Verdana;
	
}

/* Slider */
#bg-slider{
    position:fixed;
    inset:0;
    z-index:0;
}

#layout,
#topbar{
    position:relative;
    z-index:1;
}
.bg-slide{
    position:absolute;
    width:100%;
    height:100%;

    background-position:center;
    background-repeat:no-repeat;
    background-size:cover;

    opacity:0;
    transition:opacity 2s ease-in-out;
}

.bg-slide.ativo{
    opacity:1;
}

#bg-slider::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

/* slide*/


/* ===== TOPO ===== */
#topbar {
    /*height: 60px;*/
    /*background:#FF0; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* Botões Topo */
#top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ico {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.btn-ico img {
    width: 32px;
    height: 32px;
}

.btn-ico:hover:not(:disabled) {
    transform: scale(1.15);
    opacity: 0.8;
}
/*
.btn-ico:disabled {
    opacity: 0.3;
    cursor: default;
}*/

/* ===== LAYOUT ===== */
#layout {
    flex: 1;
    display: flex;
    height: calc(100vh - 60px);
}

#painel_esquerdo, #painel_direito {
    width: 15%;
    /*background: #e5e7eb;*/
    padding: 10px;
    border-color: #d1d5db;
    box-sizing: border-box;
    overflow-y: auto;
}

#painel_esquerdo {
    border-right: 1px solid #d1d5db;
}

#painel_direito {
    border-left: 1px solid #d1d5db;
}

#painel_central {
 width: 70%;
    display: flex;
    flex-direction: column; /* 🔥 AQUI */
    height: 100%;
    margin: 0 auto;


/*    width: 70%;
    display: flex;
    flex-wrap: wrap;           /* permite quebrar linha */
/*    justify-content: center;   /* centraliza horizontal */
/*    align-content: flex-start; /* mantém tudo no topo */
/*    gap: 5px;                 /* espaço entre campos */
/*    height: 100%;
    margin: 0 auto;            /* centraliza o painel */
}

.cabecalho{ 
    display:flex;
    flex-wrap:wrap; /* 🔥 agora sim aqui */
    justify-content:center;
    align-content:flex-start;
    gap:5px;
}

.resultado{ 
    flex:1;
    width:100%;
    overflow:auto;
}

/*não usado*/
#painel_central2 {
    width: 70%;
	flex-wrap: wrap;
	display: flex;
    flex-direction: column;    /* empilha verticalmente */
    justify-content: flex-start; /* começa do topo */
    align-items: center;       /* centraliza horizontalmente */
    height: 100%;              /* ocupa todo o painel */
    text-align: center;        /* centraliza o texto dentro de cada item */
   /* background: #fff;
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;*/
   /* gap: 20px;*/                 /* espaço entre elementos */
   /* padding-top: 20px; */        /* espaço do topo opcional */

}


.tools {
    width: 100%;
    display: flex;
    flex-wrap: wrap;           /* permite quebrar linha */
    justify-content: center;   /* centraliza horizontal */
    align-content: flex-start; /* mantém tudo no topo */
    gap: 5px;                 /* espaço entre campos */
    height: 30px;
    margin: 0 auto;            /* centraliza o painel */
}

/* MOBILE */
@media (max-width: 900px) {

    #layout {
        flex-direction: column;
    }

    #painel_esquerdo, #painel_direito {
        display: none;
		 min-height: 400px;
    }

    #painel_central {
        width: 100%;
        height: calc(100vh - 60px);
		 min-height: 400px;
    }
}

/******************/
:root{
  --mi-width: 160px;
  --mi-height: 120px;
  --mi-radius: 14px;
  --mi-gap: 20px;
  --mi-bg-start: white;
  --mi-bg-end: white;
  --mi-text: #039;
  --mi-shadow: 0 8px 20px rgba(2,6,23,0.18);
  --mi-rim: 0 1px 0 rgba(255,255,255,0.06) inset;
}

/* Container */
.menu-ios{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mi-gap);
  padding: 20px;
  align-items: center;
  max-width: 100%; /* responsivo */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: transparent;
}

/* Item (link) - use <a> para acessibilidade/keyboard */
.menu-item{
  width: var(--mi-width);
  height: var(--mi-height);
  border-radius: var(--mi-radius);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--mi-text);
  text-align: center;
  padding: 12px;
  box-sizing: border-box;

  /* visual */
 /*	 background: linear-gradient(180deg, var(--mi-bg-start), var(--mi-bg-end)); */
 background:transparent;
  box-shadow: var(--mi-shadow), 0 2px 6px rgba(0,0,0,0.12);
  -webkit-backdrop-filter: blur(6px); /* para glassy feel */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms, filter 220ms;
  will-change: transform;
  user-select: none;
  outline: none;
}

/* Icon and label */
.mi-icon{
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  display: block;
  fill: currentColor;
  opacity: 0.98;
}

.menu-label{
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.2px;
}

/* Hover / focus / active */
.menu-item:hover,
.menu-item:focus{
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 36px rgba(2,6,23,0.22), 0 2px 10px rgba(0,0,0,0.12);
  filter: saturate(1.06);
}

/* foco acessível visível (keyboard) */
.menu-item:focus-visible{
  box-shadow: 0 0 0 3px rgba(0,123,255,0.18), 0 12px 28px rgba(2,6,23,0.16);
}

/* Estado ativo (pode ser toggled por JS) */
.menu-item.active{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(2,6,23,0.22);
  border: 1px solid rgba(255,255,255,0.12);
}

/* Pequeno brilho superior (rim) */
.menu-item::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
  mix-blend-mode: overlay;
}

/* Responsividade: em telas pequenas ajustar largura */
@media (max-width: 420px){
  :root{ --mi-width: 130px; --mi-height: 110px; }
  .mi-icon{ width: 34px; height: 34px; }
  .menu-label{ font-size: 13px; }
}

/* Preferência por redução de movimento */
@media (prefers-reduced-motion: reduce){
  .menu-item, .menu-item:hover, .menu-item:focus{ transition: none; transform: none; }
}

/*LOADER*/
.app-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .2s ease;
}

.app-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top: 6px solid #2c3e50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/*/modulo pesquisa*/
.grid-pesquisa {

	flex-wrap: wrap;
	display: flex;
    justify-content: flex-start; /* começa do topo */
    align-items: center;   

	/*    display: grid;*/
    /*grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));*/
    gap: 12px;
    padding: 10px;
	max-height:400px;
	   transition: opacity .2s ease;
}

.item-pesquisa {
	
	width:120px;
	height:80px;
	font-size:10px;
	
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.item-pesquisa:hover {
    background: #f5f7fa;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.item-pesquisa-imagem { width:60px; height:60px;
	
}

.menu-letras {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 5px;
    margin-bottom: 15px;

    background: linear-gradient(135deg, #5f2c82, #49a09d);
    border-radius: 10px;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.menu-letras::-webkit-scrollbar {
    height: 6px;
}

.menu-letras::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 10px;
}

.letra {
    position: relative;
    min-width: 36px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;

    background: rgba(255,255,255,0.15);
    color: white;
    font-weight: bold;
    cursor: pointer;

    transition: all .2s ease;
}

.letra:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.letra.ativa {
    background: white;
    color: #5f2c82;
}

.contador-letra {
    position: absolute;
    bottom: -8px;
    right: -6px;

    background: #ff9800;
    color: white;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 10px;
}

.app-loader{
    pointer-events:none;
}

.item-pesquisa{
    background: transparent;
    cursor: pointer;
}

.item-pesquisa.selecionado{
    background: orange;
}


/*styles do c_ent_psq.php */
/* layout base */
* { box-sizing: border-box; }
.campo{ 
    border-radius:8px;
    display:inline-block;
    vertical-align:top;
    margin:1px;
    padding:1px;
	margin-top:-6px;
    box-sizing:border-box;
    /* largura controlada pelo inline style vindo do PHP (ex: width:120px; ou width:45%;) */
}

/* título do campo */
.titulo{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:10px;
    font-weight:700;
    width:100%;
    margin-bottom:1px;
}
.titulo_esquerdo{ cursor:pointer; }
.contador{
    cursor:pointer;
    margin-right:2px;
    color:darkorange;
    user-select:none;
    text-align:right;
    font-family:monospace;
    font-size:11px;
}

/* container do input + pesquisa */
.input-area{
    display:flex;
    width:100%;
    gap:0;
}

/* quando existir pesquisa, adicionamos classe has-pesquisa */
.input-area.has-pesquisa input,
.input-area.has-pesquisa select{
    border-radius:5px 0 0 5px;
    border-right: none;
}

/* input / select padrão ocupam todo o espaço */
.input-area input,
.input-area select{
    flex:1;
    width:100%;
    min-width:0;
    height:28px;
    border:1px solid #CCC;
    border-radius:5px;
}

/* pequeno ajuste para inputs que serão alinhados à direita (money) */
input.money, select.money { text-align:right; }

/* botão/painel de pesquisa (ícone) */
.pesquisa{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:28px;
    border:1px solid #CCC;
    border-left:none;
    border-radius:0 5px 5px 0;
    cursor:pointer;
    background:#F6F6F6;
    user-select:none;
    font-size:14px;
}

/* estado hover */
.pesquisa:hover{ background:#EFEFEF; }
.input-area input:focus,
.input-area select:focus{ border-color:#888; }

/* toolbar */
.tools{ display:flex; gap:2px; margin-top:2px; }
.tool-btn{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(6px);
    border:none;
    border-radius:10px;
    padding:6px 8px;
    cursor:pointer;
    color:#060;
    font-size:12px;
    transition:all .18s ease;
}
.tool-btn img{ margin-bottom:4px; }
.tool-btn:hover{ transform:translateY(-3px); background:rgba(255,255,255,0.12); }
.tool-btn:active{ transform:scale(.97); }

/* responsividade mínima */
@media (max-width:480px){
    .campo{ width:100% !important; }
    .input-area input, .input-area select{ height:36px; }
    .pesquisa{ width:40px; }
}

